UNPKG

updraft

Version:

Javascript ORM-like storage in SQLite (WebSQL or other), synced to the cloud

90 lines (77 loc) 2.46 kB
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Mocha Test Runner</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css"> <script> // polyfill Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) { obj.__proto__ = proto; return obj; } // disable enum freezing in phantomjs to prevent error: // TypeError: 'undefined' is not a function (evaluating 'getPropertyValue.bind(null, o[key])') Object.isFrozen = null; </script> </head> <body> <div id="mocha"></div> <script src="../node_modules/es5-shim/es5-shim.js"></script> <script src="../node_modules/es6-shim/es6-shim.js"></script> <script src="../node_modules/mocha/mocha.js"></script> <script src="../node_modules/chai/chai.js"></script> <script src="../node_modules/chai-datetime/chai-datetime.js"></script> <script> mocha.setup('bdd'); mocha.reporter('html'); </script> <script> module = {}; exports = {}; function EnumValue(i, key) { this.value = i; this.key = key; } EnumValue.prototype.toString = function() { return this.key; } // enum-2.2.0.js isn't exposing a global Enum :() function Enum(values) { var _this = this; values.forEach(function(value, i) { _this[values[i]] = _this[i] = new EnumValue(i, values[i]); }); this["get"] = function(value) { return this[value]; } } function require(script) { switch (script) { case "clone": return clone; case "chai": return chai; case "chai-datetime": return function() {}; case "enum": return Enum; case "./updraft_loader": return {}; default: console.error("unknown module: " + script); } } </script> <!--<script src="../node_modules/enum/enum-2.2.0.js"></script>--> <script src="../node_modules/clone/clone.js"></script> <script src="../dist/updraft.js"></script> <script type="text/typescript" src="update.test.ts"></script> <script type="text/typescript" src="table.test.ts"></script> <script type="text/typescript"> if (window.mochaPhantomJS) { mochaPhantomJS.run(); } else { mocha.run(); } </script> <script src="../node_modules/typescript/lib/typescriptServices.js"></script> <script src="scripts/transpiler.js"></script> </body> </html>