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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html

Issue 1801513003: Cross origin requests to same origin should match Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing CORS tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html b/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
index 2f99a13ccd8de801d86fae3099b9f9a808008442..3b8ed9a909ae52deb33a40aba9cda98c9465a4d6 100644
--- a/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
+++ b/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
@@ -8,7 +8,8 @@
<link rel=preload href="../resources/dummy.css" as=style>
<link rel=preload href="../resources/square.png" as=image>
<link rel=preload href="../resources/square.png?background" as=image>
-<link rel=preload href="../resources/Ahem.ttf" as=font crossorigin>
+<link rel=preload href="../resources/Ahem.ttf" as=font>
+<link rel=preload href="http://crossorigin.test:8000/security/resources/cors-font.php" as=font crossorigin>
<link rel=preload href="../resources/test.mp4" as=media>
<link rel=preload href="../resources/test.oga" as=media>
<link rel=preload href="../security/resources/captions.vtt" as=track>
@@ -25,7 +26,12 @@
font-family:ahem;
src: url(../resources/Ahem.ttf);
}
- span { font-family: ahem, Arial; }
+ @font-face {
+ font-family:corsahem;
+ src: url(http://crossorigin.test:8000/security/resources/cors-font.php);
+ }
+ #ahem { font-family: ahem, Arial; }
+ #cors { font-family: corsahem, Arial; }
</style>
<link rel="stylesheet" href="../resources/dummy.css">
<script src="../resources/dummy.js"></script>
@@ -43,8 +49,8 @@
window.addEventListener("load", t.step_func(function() {
// Audio and video show 2 extra requests as the main request is followed by a range request
- assert_equals(performance.getEntriesByType("resource").length, 14);
+ assert_equals(performance.getEntriesByType("resource").length, 15);
t.done();
}));
</script>
-<span>PASS - this text is here just so that the browser will download the font.</span
+<span id=ahem>PASS - this text is here just so that the browser will download the font.</span><span id=cors>and the other font.</span

Powered by Google App Engine
This is Rietveld 408576698