Index: LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html |
diff --git a/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html b/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html |
index 1435f40c43ada733357107e96c2d23c3c3ad9930..3228ef4b39255873099657b91d26b2c939567a2f 100644 |
--- a/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html |
+++ b/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html |
@@ -1,58 +1,58 @@ |
-<!DOCTYPE HTML> |
-<html> |
- <head> |
- <meta charset="utf-8" /> |
- <title>resource timing information for cross-origin resource request with timing-allow-origin</title> |
- <link rel="author" title="Intel" href="http://www.intel.com/" /> |
- <link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/> |
- <script src="/w3c/resources/testharness.js"></script> |
- <script src="/w3c/resources/testharnessreport.js"></script> |
- <script src="/w3c/webperf/resources/webperftestharness.js"></script> |
- <script src="/w3c/webperf/resources/webperftestharnessextension.js"></script> |
- <script> |
- |
- setup({explicit_done: true}); |
- |
- var pageOrigin = "127.0.0.1:8000"; |
- var crossOrigin = "localhost:8000"; |
- |
- function onload_test() |
- { |
- var context = new PerformanceContext(performance); |
- var entry = context.getEntriesByName(document.getElementById("frameContext").src, "resource")[0]; |
- |
- test_equals(entry.redirectStart, 0, "redirectStart should be 0 in cross-origin request since no redirect!"); |
- test_equals(entry.redirectEnd, 0, "redirectEnd should be 0 in cross-origin request since no redirect!"); |
- test_greater_than(entry.domainLookupStart, 0, "domainLookupStart should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.domainLookupEnd, 0, "domainLookupEnd should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.connectStart, 0, "connectStart should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.connectEnd, 0, "connectEnd should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.requestStart, 0, "requestStart should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.responseStart, 0, "responseStart should not be 0 in timing-allow cross-origin request!"); |
- test_equals(entry.secureConnectionStart, 0, "secureConnectionStart should be 0 in cross-origin request since no ssl!"); |
- test_greater_than(entry.fetchStart, 0, "fetchStart should not be 0 in timing-allow cross-origin request!"); |
- test_greater_than(entry.responseEnd, 0, "responseEnd should not be 0 in timing-allow cross-origin request!"); |
- done(); |
- } |
- |
- </script> |
- |
- </head> |
- <body> |
- <h1>Description</h1> |
- <p>This test validates the values in resource timing for a timing-allow-origin cross-origin resource request.</p> |
- |
- <br /> |
- <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe> |
- <script> |
- test_equals(document.location.host, pageOrigin, 'Starting document.location.hostname is correct (' + pageOrigin + ')'); |
- |
- var requestUrl = 'http://' + crossOrigin + '/w3c/webperf/resources/blank_page_green_with_allow_timing.php'; |
- requestUrl += '?origin=http://' + pageOrigin; |
- |
- var frameContext = document.getElementById("frameContext"); |
- frameContext.onload = onload_test; |
- frameContext.src = requestUrl; |
- </script> |
- </body> |
-</html> |
+<!DOCTYPE HTML> |
+<html> |
+ <head> |
+ <meta charset="utf-8" /> |
+ <title>resource timing information for cross-origin resource request with timing-allow-origin</title> |
+ <link rel="author" title="Intel" href="http://www.intel.com/" /> |
+ <link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/> |
+ <script src="/w3c/resources/testharness.js"></script> |
+ <script src="/w3c/resources/testharnessreport.js"></script> |
+ <script src="/w3c/webperf/resources/webperftestharness.js"></script> |
+ <script src="/w3c/webperf/resources/webperftestharnessextension.js"></script> |
+ <script> |
+ |
+ setup({explicit_done: true}); |
+ |
+ var pageOrigin = "127.0.0.1:8000"; |
+ var crossOrigin = "localhost:8000"; |
+ |
+ function onload_test() |
+ { |
+ var context = new PerformanceContext(performance); |
+ var entry = context.getEntriesByName(document.getElementById("frameContext").src, "resource")[0]; |
+ |
+ test_equals(entry.redirectStart, 0, "redirectStart should be 0 in cross-origin request since no redirect!"); |
+ test_equals(entry.redirectEnd, 0, "redirectEnd should be 0 in cross-origin request since no redirect!"); |
+ test_greater_than(entry.domainLookupStart, 0, "domainLookupStart should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.domainLookupEnd, 0, "domainLookupEnd should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.connectStart, 0, "connectStart should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.connectEnd, 0, "connectEnd should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.requestStart, 0, "requestStart should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.responseStart, 0, "responseStart should not be 0 in timing-allow cross-origin request!"); |
+ test_equals(entry.secureConnectionStart, 0, "secureConnectionStart should be 0 in cross-origin request since no ssl!"); |
+ test_greater_than(entry.fetchStart, 0, "fetchStart should not be 0 in timing-allow cross-origin request!"); |
+ test_greater_than(entry.responseEnd, 0, "responseEnd should not be 0 in timing-allow cross-origin request!"); |
+ done(); |
+ } |
+ |
+ </script> |
+ |
+ </head> |
+ <body> |
+ <h1>Description</h1> |
+ <p>This test validates the values in resource timing for a timing-allow-origin cross-origin resource request.</p> |
+ |
+ <br /> |
+ <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe> |
+ <script> |
+ test_equals(document.location.host, pageOrigin, 'Starting document.location.hostname is correct (' + pageOrigin + ')'); |
+ |
+ var requestUrl = 'http://' + crossOrigin + '/w3c/webperf/resources/blank_page_green_with_allow_timing.php'; |
+ requestUrl += '?origin=http://' + pageOrigin; |
+ |
+ var frameContext = document.getElementById("frameContext"); |
+ frameContext.onload = onload_test; |
+ frameContext.src = requestUrl; |
+ </script> |
+ </body> |
+</html> |