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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-element.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 </head> 5 </head>
6 <body> 6 <body>
7 <div> 7 <div>
8 <shadow id="shadow"></shadow> 8 <shadow id="shadow"></shadow>
9 </div> 9 </div>
10 <script> 10 <script>
11 description("This test ensures that the shadow element is available.") 11 description("This test ensures that the shadow element is available.")
12 var shadow = document.getElementById("shadow"); 12 var shadow = document.getElementById("shadow");
13 shouldBe("shadow.nodeName", "'SHADOW'"); 13 shouldBe("shadow.nodeName", "'SHADOW'");
14 shouldBeTrue("0 <= shadow.constructor.toString().indexOf('HTMLShadowElement')"); 14 shouldBeTrue("0 <= shadow.constructor.toString().indexOf('HTMLShadowElement')");
15 shouldBe("window.HTMLShadowElement", "shadow.constructor"); 15 shouldBe("window.HTMLShadowElement", "shadow.constructor");
16 16
17 </script> 17 </script>
18 </body> 18 </body>
19 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698