Adam Barth bdf6f5c3e6 Add Module and Application interfaces
These interfaces are currently unused by the engine, but they are
constructable.  See apis.md for details.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/697873007
2014-11-10 14:16:56 -08:00

19 lines
550 B
Plaintext

<html>
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Module', function() {
it('should be constructable', function() {
var doc1 = new Document();
var app = new Application(doc1, "http://www.example.com/app");
var doc2 = new Document();
var module = new Module(app, doc2, "http://www.example.com/module");
assert.equal(module.application, app);
assert.equal(module.document, doc2);
assert.equal(module.url, "http://www.example.com/module");
});
});
</script>
</html>