mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
16 lines
393 B
Plaintext
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>
|