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

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: Add tst 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..2415138c7d1e25b2a5ebe203ea695cb394946b99
--- /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>
+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 {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
Nate Chapin 2014/05/10 02:16:40 I'd put this at the top of the <script> tag, it's
bashi 2014/05/10 02:41:07 Done.
+
+ 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