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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/preloader/style-base.html

Issue 1493253002: CSSPreloadScanner should handle <base> adjusted URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ensure init pointers at c-tor Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/preloader/style-base-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 window.addEventListener('DOMContentLoaded', function() { 6 window.addEventListener('DOMContentLoaded', function() {
7 if (window.internals) { 7 if (window.internals) {
8 var success = internals.isPreloaded("resources/style1.css") && !internal s.isPreloaded("resources/fail.css"); 8 var success = internals.isPreloaded("resources/style1.css");
9 console.log(success ? "PASS" : "FAIL"); 9 console.log(success ? "PASS" : "FAIL");
10 } 10 }
11 }, false); 11 }, false);
12 </script> 12 </script>
13 This test requires DumpRenderTree to see the log of what resources are loaded. 13 This test requires content_shell --run-layout-test to see the log of what resour ces are loaded.
14 <script src=resources/non-existant.js></script> 14 <script src=non-existant.js></script>
15 <script>document.write("<plaintext>");</script> 15 <script>document.write("<plaintext>");</script>
16 <base href="resources/foo.html">
16 <style> 17 <style>
17 @charset "ascii"; 18 @charset "ascii";
18 /* */ 19 /* */
19 @import "resources/style1.css"; 20 @import "style1.css";
20 em {
21 @import "resources/fail.css";
22 }
23 @import "resources/fail.css";
24 </style> 21 </style>
25 <style>
26 @media print {
27 @import "resources/fail.css";
28 }
29 @import "resources/fail.css";
30 </style>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/preloader/style-base-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698