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

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

Issue 1920633002: 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, 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 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 redirect</title> 5 <title>This test validates the values in resource timing for a cross-ori gin redirect.</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 12
13 <script> 13 <script>
14 14
15 setup({explicit_done: true}); 15 setup({explicit_done: true});
(...skipping 14 matching lines...) Expand all
30 test_equals(entry.responseStart, 0, "responseStart should be 0 i n cross-origin redirect!"); 30 test_equals(entry.responseStart, 0, "responseStart should be 0 i n cross-origin redirect!");
31 test_equals(entry.secureConnectionStart, 0, "secureConnectionSta rt should be 0 in cross-origin redirect!"); 31 test_equals(entry.secureConnectionStart, 0, "secureConnectionSta rt should be 0 in cross-origin redirect!");
32 test_greater_than(entry.fetchStart, 0, "fetchStart should be gre ater than 0 in cross-origin redirect!"); 32 test_greater_than(entry.fetchStart, 0, "fetchStart should be gre ater than 0 in cross-origin redirect!");
33 test_greater_than(entry.responseEnd, 0, "responseEnd should be g reater than 0 in cross-origin redirect!"); 33 test_greater_than(entry.responseEnd, 0, "responseEnd should be g reater than 0 in cross-origin redirect!");
34 done(); 34 done();
35 } 35 }
36 </script> 36 </script>
37 37
38 </head> 38 </head>
39 <body> 39 <body>
40 <h1>Description</h1>
41 <p>This test validates the values in resource timing for a cross-origin redirect.</p>
42 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></ iframe> 40 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></ iframe>
43 <script> 41 <script>
44 test_equals(document.location.host, pageOrigin, 'Starting document.l ocation.hostname is correct (' + pageOrigin + ')'); 42 test_equals(document.location.host, pageOrigin, 'Starting document.l ocation.hostname is correct (' + pageOrigin + ')');
45 43
46 var destUrl = 'http://' + pageOrigin + '/w3c/webperf/resources/redir ect.php'; 44 var destUrl = 'http://' + pageOrigin + '/w3c/webperf/resources/redir ect.php';
47 destUrl += '?location=http://' + crossOrigin + "/w3c/webperf/resourc es/blank_page_green.htm"; 45 destUrl += '?location=http://' + crossOrigin + "/w3c/webperf/resourc es/blank_page_green.htm";
48 46
49 var frameContext = document.getElementById("frameContext"); 47 var frameContext = document.getElementById("frameContext");
50 frameContext.onload = onload_test; 48 frameContext.onload = onload_test;
51 frameContext.src = destUrl; 49 frameContext.src = destUrl;
52 </script> 50 </script>
53 </body> 51 </body>
54 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698