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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 @media all { #test { color: green; } } 4 @media all { #test { color: green; } }
5 </style> 5 </style>
6 <script src="../../js/resources/js-test-pre.js"></script> 6 <script src="../../js/resources/js-test-pre.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <div id="test"></div> 9 <div id="test"></div>
10 <script> 10 <script>
11 description("Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. " + 11 description("Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. " +
12 "This is surprising behavior, but it's a very rare situation, and the behavior a ctually matches " + 12 "This is surprising behavior, but it's a very rare situation, and the behavior a ctually matches " +
13 "what both WebKit and Gecko do for DOM nodes in detached subtrees."); 13 "what both WebKit and Gecko do for DOM nodes in detached subtrees.");
14 14
15 shouldBe('getMatchedCSSRules(document.getElementById("test")).length', '1'); 15 shouldBe('getMatchedCSSRules(document.getElementById("test")).length', '1');
16 rule = getMatchedCSSRules(document.getElementById("test")).item(0); 16 rule = getMatchedCSSRules(document.getElementById("test")).item(0);
17 debug("Removing &lt;style>..."); 17 debug("Removing &lt;style>...");
18 document.head.removeChild(document.getElementsByTagName("style")[0]); 18 document.head.removeChild(document.getElementsByTagName("style")[0]);
19 shouldBe("rule.parentRule", "null"); 19 shouldBe("rule.parentRule", "null");
20 shouldBe('getMatchedCSSRules(document.getElementById("test"))', 'null'); 20 shouldBe('getMatchedCSSRules(document.getElementById("test"))', 'null');
21 </script> 21 </script>
22 <script src="../../js/resources/js-test-post.js"></script>
23 </body> 22 </body>
24 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/StyleSheet/css-medialist-item.html ('k') | LayoutTests/fast/dom/StyleSheet/detached-shadow-style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698