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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/preloader/style-base.html
diff --git a/third_party/WebKit/LayoutTests/fast/preloader/style.html b/third_party/WebKit/LayoutTests/fast/preloader/style-base.html
similarity index 50%
copy from third_party/WebKit/LayoutTests/fast/preloader/style.html
copy to third_party/WebKit/LayoutTests/fast/preloader/style-base.html
index 1da7f392a6d670acb3ab037797b8e8589ec76e92..8819581e0732f2c23abc64fba343ae228d4808ac 100644
--- a/third_party/WebKit/LayoutTests/fast/preloader/style.html
+++ b/third_party/WebKit/LayoutTests/fast/preloader/style-base.html
@@ -5,26 +5,17 @@ if (window.testRunner)
window.addEventListener('DOMContentLoaded', function() {
if (window.internals) {
- var success = internals.isPreloaded("resources/style1.css") && !internals.isPreloaded("resources/fail.css");
+ var success = internals.isPreloaded("resources/style1.css");
console.log(success ? "PASS" : "FAIL");
}
}, false);
</script>
-This test requires DumpRenderTree to see the log of what resources are loaded.
-<script src=resources/non-existant.js></script>
+This test requires content_shell --run-layout-test to see the log of what resources are loaded.
+<script src=non-existant.js></script>
<script>document.write("<plaintext>");</script>
+<base href="resources/foo.html">
<style>
@charset "ascii";
/* */
-@import "resources/style1.css";
-em {
- @import "resources/fail.css";
-}
-@import "resources/fail.css";
-</style>
-<style>
-@media print {
- @import "resources/fail.css";
-}
-@import "resources/fail.css";
+@import "style1.css";
</style>
« 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