flutter_flutter/tests/lowlevel/create-document.sky
Elliott Sprehn 11b2b24722 Remove DOMImplementation.
Expose a Document constructor instead. This also exposes that
the TemplateBinding library might need more control over the
registration context for custom elements. For now we make all
documents share the same registration context.

R=ojan@chromium.org, abarth@chromium.org

Review URL: https://codereview.chromium.org/697363002
2014-11-03 23:18:39 -08:00

16 lines
393 B
Plaintext

<html>
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Document', function() {
it('should have a constructor', function() {
var doc = new Document();
assert.isNotNull(doc);
assert.doesNotThrow(function() {
doc.registerElement('x-foo');
}, 'new document should have a registration context');
});
});
</script>
</html>