Skip to content

Commit

Permalink
Merge pull request web-platform-tests#883 from Stryfe/Stryfe/currentS…
Browse files Browse the repository at this point in the history
…cript-in-shadowRoot

shadow dom: no entry corresponding to the test in specification
  • Loading branch information
hayatoito committed May 28, 2014
2 parents 581754f + e43f4fa commit 064788d
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,31 +161,6 @@
'document\'s getElementsByName() method.'
);

var currentScriptTest = async_test(
'<script> element in a shadow tree should not be accessible from ' +
'owner document\'s "currentScript" attribute, even if it is running.'
);

currentScriptTest.step(function () {
var div = document.createElement('div');
div.style.display = 'none';
document.body.appendChild(div);
var shadowRoot = div.createShadowRoot();
var script = document.createElement('script');
script.className = 'shadow';
script.text = [
'currentScriptTest.step(function () {',
' assert_true(document.currentScript === null ||',
' document.currentScript.className !== "shadow",',
' "<script> element in a shadow tree is exposed " +',
' "to document.currentScript");',
'});'
].join('\n');
shadowRoot.appendChild(script);
document.body.removeChild(div);
currentScriptTest.done();
});

// ----------------------------------------------------------------------------
// Tests for obsolete accessors

Expand Down

0 comments on commit 064788d

Please sign in to comment.