mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-11 00:41:24 +00:00
almost everything works!
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
-->
|
||||
<script src="../../tools/chai/chai.js"></script>
|
||||
<script src="../../tools/htmltest.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<a></a><script>
|
||||
@@ -19,6 +18,8 @@ var wrap = ShadowDOMPolyfill.wrap;
|
||||
var a = document.querySelector('a');
|
||||
document.write('<script><' + '/script>');
|
||||
wrap(document).write('<b></b>');
|
||||
|
||||
test('document write works with shadowdom', function() {
|
||||
assert.equal(a.nextSibling.localName, 'script');
|
||||
assert.equal(a.nextSibling.nextSibling.localName, 'script');
|
||||
assert.equal(a.nextSibling.nextSibling.nextSibling.localName, 'b');
|
||||
@@ -26,6 +27,6 @@ assert.equal(a.nextSibling.nextSibling.nextSibling.localName, 'b');
|
||||
var all = document.querySelectorAll('*');
|
||||
var last = all[all.length - 1];
|
||||
assert.equal(last.localName, 'b');
|
||||
});
|
||||
|
||||
done();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user