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

Side by Side Diff: LayoutTests/fast/dom/custom/lifecycle-created-innerHTML.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 description("This test ensures that the lifecycle callback of a parser-made elem ent is visible in following script block.") 6 description("This test ensures that the lifecycle callback of a parser-made elem ent is visible in following script block.")
7 7
8 window.callbacksCalled = []; 8 window.callbacksCalled = [];
9 9
10 function trackingReadyCallback() 10 function trackingReadyCallback()
11 { 11 {
12 window.callbacksCalled.push(this.id); 12 window.callbacksCalled.push(this.id);
13 } 13 }
14 14
(...skipping 10 matching lines...) Expand all
25 container.innerHTML = "<x-foo id='a'></x-foo><div id='b' is='x-bar'></div><x-baz id='c'></x-baz>"; 25 container.innerHTML = "<x-foo id='a'></x-foo><div id='b' is='x-bar'></div><x-baz id='c'></x-baz>";
26 shouldBe("window.callbacksCalled", "['a', 'b', 'c']"); 26 shouldBe("window.callbacksCalled", "['a', 'b', 'c']");
27 27
28 // Testing nested elements 28 // Testing nested elements
29 window.callbacksCalled = []; 29 window.callbacksCalled = [];
30 container.innerHTML = "<x-foo id='a'><div id='b' is='x-bar'><x-baz id='c'></x-ba z></div></x-foo>"; 30 container.innerHTML = "<x-foo id='a'><div id='b' is='x-bar'><x-baz id='c'></x-ba z></div></x-foo>";
31 shouldBe("window.callbacksCalled", "['c', 'b', 'a']"); 31 shouldBe("window.callbacksCalled", "['c', 'b', 'a']");
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698