flutter_flutter/tests/lowlevel/dom-implementation-create-document.html
2014-10-23 11:17:19 -07:00

16 lines
501 B
HTML

<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<script>
describe('DOMImplementation', function() {
it('should let you create a document', function() {
var doc = document.implementation.createDocument();
assert.isNotNull(doc, 'createDocument should return a value');
assert.doesNotThrow(function() {
doc.registerElement('x-foo');
}, 'new document should have a registration context');
});
});
</script>
</html>