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

Side by Side Diff: LayoutTests/fast/dom/shadow/style-scoped-not-enabled.html

Issue 58533003: Move fast/js/resources files to resources. (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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 if (window.internals) 6 if (window.internals)
7 window.internals.settings.setStyleScopedEnabled(false); 7 window.internals.settings.setStyleScopedEnabled(false);
8 </script> 8 </script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <div id="host"></div> 11 <div id="host"></div>
12 <span id='shouldNotBeApplied'>Should not be blue</span> 12 <span id='shouldNotBeApplied'>Should not be blue</span>
13 <div> 13 <div>
14 <style scoped> p { color: red; } </style> 14 <style scoped> p { color: red; } </style>
(...skipping 10 matching lines...) Expand all
25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped"); 25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped");
26 var insideScope = document.getElementById("insideScope"); 26 var insideScope = document.getElementById("insideScope");
27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'"); 27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'");
28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'"); 28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'");
29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'"); 29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'");
30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'") ; 30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'") ;
31 finishJSTest(); 31 finishJSTest();
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/style-of-distributed-node.html ('k') | LayoutTests/fast/dom/shadow/style-with-hat.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698