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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_server_redirect.html

Issue 2676573004: Import wpt@6010f54a979d242f657b284bae53c2b218c533f4 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 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
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <title>window.performance.timing.redirect attributes on a same-origin se rver redirected navigation</title>
6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navig ation-timing-interface"/>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script src="resources/webperftestharness.js"></script>
11
12 <script>
13 function onload_test()
14 {
15 test_namespace('navigation');
16 if (performanceNamespace === undefined)
17 {
18 // avoid script errors
19 done();
20 return;
21 }
22
23 performanceNamespace = document.getElementById("frameContext").c ontentWindow.performance;
24 test_equals(performanceNamespace.navigation.type,
25 performanceNamespace.navigation.TYPE_NAVIGATE,
26 'timing.navigation.type is TYPE_NAVIGATE');
27 test_equals(performanceNamespace.navigation.redirectCount, 1, 'n avigation.redirectCount == 1 on an server redirected navigation');
28
29 test_timing_greater_than('navigationStart', 0);
30
31 test_timing_order('redirectStart', 'navigationStart');
32 test_timing_order('redirectEnd', 'redirectStart');
33 test_timing_order('fetchStart', 'redirectEnd');
34 }
35 </script>
36
37 </head>
38 <body>
39 <h1>Description</h1>
40 <p>This test validates the values of the window.performance.redirectCoun t and the
41 window.performance.timing.redirectStart/End times for a same-origin s erver side redirect navigation.</p>
42
43 <div id="log"></div>
44 <br />
45 <iframe id="frameContext" onload="onload_test();" src="/common/redirect. py?location=/navigation-timing/resources/blank_page_green.html" style="width: 25 0px; height: 250px;"></iframe>
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698