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

Unified Diff: LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html

Issue 271083002: Resource Timing: Use original Timing-Allow-Origin for cache validating (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/css/resource-timing-details-for-revalidation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html
diff --git a/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html b/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..7951903b3cdd011a2cfd88a53bb8c4ed92de733f
--- /dev/null
+++ b/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="/js-test-resources/js-test.js"></script>
+<style>
+@font-face {
+ font-family: ahem;
+ src: url(http://localhost:8080/css/resources/cors-ahem.php);
+}
+</style>
+
+<div style="font-family: ahem;">This fetches ahem font.<div>
+
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+var entry;
+if (location.hash == '#check') {
+ document.fonts.ready().then(function() {
+ entry = performance.getEntriesByName('http://localhost:8080/css/resources/cors-ahem.php')[0];
+ shouldBeTrue('entry.domainLookupStart > 0');
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+} else {
+ document.fonts.ready().then(function() {
+ location.hash = 'check';
+ location.reload();
+ });
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/css/resource-timing-details-for-revalidation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698