Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: LayoutTests/fast/dom/StyleSheet/detached-stylesheet-without-wrapper.html

Issue 5601001: Merge 72924 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css" type="text/cs s" title="js-test-style"> 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css" type="text/cs s" title="js-test-style">
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. " + 10 description("Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. " +
11 "This is surprising behavior, but it's a very rare situation, and the behavior a ctually matches " + 11 "This is surprising behavior, but it's a very rare situation, and the behavior a ctually matches " +
12 "what both WebKit and Gecko do for DOM nodes in detached subtrees."); 12 "what both WebKit and Gecko do for DOM nodes in detached subtrees.");
13 13
14 rule = getMatchedCSSRules(document.getElementsByTagName("div")[0]).item(0); 14 rule = getMatchedCSSRules(document.getElementsByTagName("div")[0]).item(0);
15 document.documentElement.removeChild(document.head); 15 document.documentElement.removeChild(document.head);
16 shouldBe("rule.parentStyleSheet", "null"); 16 shouldBe("rule.parentStyleSheet", "null");
17 17
18 var successfullyParsed = true; 18 var successfullyParsed = true;
19 </script> 19 </script>
20 <script src="../../js/resources/js-test-post.js"></script> 20 <script src="../../js/resources/js-test-post.js"></script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698