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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_timing_allow_cross_origin_resource_request.html

Issue 1912233003: Remove superfluous "*-expected.txt" files in LayoutTests/http/tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8" /> 4 <meta charset="utf-8" />
5 <title>resource timing information for cross-origin resource request wit h timing-allow-origin</title> 5 <title>This test validates the values in resource timing for a timing-al low-origin cross-origin resource request.</title>
6 <link rel="author" title="Intel" href="http://www.intel.com/" /> 6 <link rel="author" title="Intel" href="http://www.intel.com/" />
7 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/> 7 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/>
8 <script src="/w3c/resources/testharness.js"></script> 8 <script src="/w3c/resources/testharness.js"></script>
9 <script src="/w3c/resources/testharnessreport.js"></script> 9 <script src="/w3c/resources/testharnessreport.js"></script>
10 <script src="/w3c/webperf/resources/webperftestharness.js"></script> 10 <script src="/w3c/webperf/resources/webperftestharness.js"></script>
11 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript> 11 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript>
12 <script> 12 <script>
13 13
14 setup({explicit_done: true}); 14 setup({explicit_done: true});
15 15
(...skipping 16 matching lines...) Expand all
32 test_equals(entry.secureConnectionStart, 0, "secureConnectionSta rt should be 0 in cross-origin request since no ssl!"); 32 test_equals(entry.secureConnectionStart, 0, "secureConnectionSta rt should be 0 in cross-origin request since no ssl!");
33 test_greater_than(entry.fetchStart, 0, "fetchStart should not be 0 in timing-allow cross-origin request!"); 33 test_greater_than(entry.fetchStart, 0, "fetchStart should not be 0 in timing-allow cross-origin request!");
34 test_greater_than(entry.responseEnd, 0, "responseEnd should not be 0 in timing-allow cross-origin request!"); 34 test_greater_than(entry.responseEnd, 0, "responseEnd should not be 0 in timing-allow cross-origin request!");
35 done(); 35 done();
36 } 36 }
37 37
38 </script> 38 </script>
39 39
40 </head> 40 </head>
41 <body> 41 <body>
42 <h1>Description</h1>
43 <p>This test validates the values in resource timing for a timing-allow- origin cross-origin resource request.</p>
44
45 <br />
46 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></ iframe> 42 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></ iframe>
47 <script> 43 <script>
48 test_equals(document.location.host, pageOrigin, 'Starting document.l ocation.hostname is correct (' + pageOrigin + ')'); 44 test_equals(document.location.host, pageOrigin, 'Starting document.l ocation.hostname is correct (' + pageOrigin + ')');
49 45
50 var requestUrl = 'http://' + crossOrigin + '/w3c/webperf/resources/b lank_page_green_with_allow_timing.php'; 46 var requestUrl = 'http://' + crossOrigin + '/w3c/webperf/resources/b lank_page_green_with_allow_timing.php';
51 requestUrl += '?origin=http://' + pageOrigin; 47 requestUrl += '?origin=http://' + pageOrigin;
52 48
53 var frameContext = document.getElementById("frameContext"); 49 var frameContext = document.getElementById("frameContext");
54 frameContext.onload = onload_test; 50 frameContext.onload = onload_test;
55 frameContext.src = requestUrl; 51 frameContext.src = requestUrl;
56 </script> 52 </script>
57 </body> 53 </body>
58 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698