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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html

Issue 1772853002: Block the HTML parser on external stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified parser blocking logic Created 4 years, 9 months 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/link-load-utilities.js"></script> 4 <script src="resources/link-load-utilities.js"></script>
5 <script> 5 <script>
6 function checkResult() 6 function checkResult()
7 { 7 {
8 testPassed("Fired Load event."); 8 testPassed("Fired Load event.");
9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test") , "rgb(0, 0, 255)" /* blue */); 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test") , "rgb(0, 0, 255)" /* blue */);
10 testFinished(); 10 testFinished();
11 } 11 }
12 </script> 12 </script>
13 <link rel="stylesheet" href="resources/stylesheet-with-import.css" onload="check Result()" onerror="testFailed('Fired Error event. Should have fired Load event.' )">
14 </head> 13 </head>
15 <body> 14 <body>
16 <p>This tests that a Load event is fired at an HTML Link element once all @impor t'ed stylesheets are loaded by a style sheet. This test PASSED if there are only PASS messages below. Otherwise, it FAILED.</p> 15 <p>This tests that a Load event is fired at an HTML Link element once all @impor t'ed stylesheets are loaded by a style sheet. This test PASSED if there are only PASS messages below. Otherwise, it FAILED.</p>
17 <h1 id="test"><!-- Test element --></h1> 16 <h1 id="test"><!-- Test element --></h1>
18 <pre id="console"></pre> 17 <pre id="console"></pre>
18 <link rel="stylesheet" href="resources/stylesheet-with-import.css" onload="check Result()" onerror="testFailed('Fired Error event. Should have fired Load event.' )">
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698