| <!doctype html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>Mocha</title> |
| <link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css"> |
| </head> |
| <body> |
| <div id="mocha"></div> |
| <script> |
| (function () { |
| 'use strict'; |
| // minimal Function.prototype.bind polyfill for ES3. |
| // We need to declare this before mocha, |
| // because mocha relies on it. |
| if (window.location.search.indexOf('es5Shim') !== -1 && |
| !Function.prototype.bind) { |
| Function.prototype.bind = function (oThis) { |
| if (typeof this !== "function") { |
| // closest thing possible to the ECMAScript 5 |
| // internal IsCallable function |
| throw new TypeError("Function.prototype.bind - what " + |
| "is trying to be bound is not callable"); |
| } |
| |
| var aArgs = Array.prototype.slice.call(arguments, 1), |
| fToBind = this, |
| fNOP = function () {}, |
| fBound = function () { |
| return fToBind.apply(this instanceof fNOP && oThis |
| ? this |
| : oThis, |
| aArgs.concat(Array.prototype.slice.call(arguments))); |
| }; |
| |
| fNOP.prototype = this.prototype; |
| fBound.prototype = new fNOP(); |
| |
| return fBound; |
| }; |
| } |
| })(); |
| </script> |
| <script> |
| var val = window.location.search.match(/[&\?]es5shims?=([^&\?]+)/); |
| if (val && val[1] === 'true') { |
| document.write('<script src="../node_modules/es5-shim/es5-shim.js"></' + 'script>'); |
| } |
| </script> |
| <script src="../node_modules/mocha/mocha.js"></script> |
| <script src="../node_modules/chai/chai.js"></script> |
| <script> |
| mocha.setup({ |
| timeout:100000, |
| ui: 'bdd' |
| }); |
| var should = chai.should(); |
| </script> |
| <script src='deps/pouchdb-1.1.0-postfixed.js'></script> |
| <script src='deps/pouchdb-2.0.0-postfixed.js'></script> |
| <script src='deps/pouchdb-2.2.0-postfixed.js'></script> |
| <script src='utils.js'></script> |
| <script src='test.aa.setup.js'></script> |
| <script src='test.basics.js'></script> |
| <script src='test.constructor.js'></script> |
| <script src='test.changes.js'></script> |
| <script src='test.bulk_docs.js'></script> |
| <script src='test.all_docs.js'></script> |
| <script src='test.events.js'></script> |
| <script src='test.conflicts.js'></script> |
| <script src='test.revs_diff.js'></script> |
| <script src='test.replication.js'></script> |
| <script src='test.sync.js'></script> |
| <script src='test.views.js'></script> |
| <script src='test.taskqueue.js'></script> |
| <script src='test.design_docs.js'></script> |
| <script src='test.issue221.js'></script> |
| <script src='test.http.js'></script> |
| <script src='test.compaction.js'></script> |
| <script src='test.get.js'></script> |
| <script src='test.local_docs.js'></script> |
| <script src='test.attachments.js'></script> |
| <script src='browser.migration.js'></script> |
| <script src='test.uuids.js'></script> |
| <script src='test.slash_id.js'></script> |
| <script src='test.reserved.js'></script> |
| <script src='browser.worker.js'></script> |
| <script type="text/javascript" src="./webrunner.js"></script> |
| </body> |
| </html> |