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

Side by Side Diff: LayoutTests/fast/dom/shadow/style-insertion-crash.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 jsTestIsAsync = true; 6 jsTestIsAsync = true;
7 7
8 function runTest() { 8 function runTest() {
9 var host = document.getElementById('host'); 9 var host = document.getElementById('host');
10 var sr = host.createShadowRoot(); 10 var sr = host.createShadowRoot();
11 sr.innerHTML = '<style>@host { }</style><style></style>'; 11 sr.innerHTML = '<style>@host { }</style><style></style>';
12 var style = document.createElement('style'); 12 var style = document.createElement('style');
13 sr.insertBefore(style, sr.lastElementChild); 13 sr.insertBefore(style, sr.lastElementChild);
14 14
15 testPassed("unless crash"); 15 testPassed("unless crash");
16 finishJSTest(); 16 finishJSTest();
17 } 17 }
18 </script> 18 </script>
19 </head> 19 </head>
20 <body onload="runTest()"> 20 <body onload="runTest()">
21 <div id="host"></div> 21 <div id="host"></div>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/shadowroot-clonenode.html ('k') | LayoutTests/fast/dom/shadow/style-of-distributed-node.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698