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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-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 passed() 6 function passed()
7 { 7 {
8 testPassed("Fired Error event."); 8 testPassed("Fired Error event.");
9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test") , "rgb(255, 255, 0)" /* yellow */); 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test") , "rgb(255, 255, 0)" /* yellow */);
10 testFinished(); 10 testFinished();
11 } 11 }
12 </script> 12 </script>
13 <link rel="stylesheet" href="resources/stylesheet-with-non-existent-import.css" onload="testFailedAndNotifyDone('Fired Load event. Should have fired Error event .')" onerror="passed()">
14 </head> 13 </head>
15 <body> 14 <body>
16 <p>This tests that an Error event is fired at an HTML Link element when its styl e sheet fails to load an @import'ed style sheet. This test PASSED if there are o nly PASS messages below. Otherwise, it FAILED.</p> 15 <p>This tests that an Error event is fired at an HTML Link element when its styl e sheet fails to load an @import'ed style sheet. This test PASSED if there are o nly 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-non-existent-import.css" onload="testFailedAndNotifyDone('Fired Load event. Should have fired Error event .')" onerror="passed()">
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698