OLD | NEW |
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>window.performance.navigation.redirectCount on a non-redirected n
avigation</title> | 5 <title>window.performance.navigation.redirectCount on a non-redirected n
avigation</title> |
6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> | 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"/> | 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navig
ation-timing-interface"/> |
8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/common/performance-timeline-utils.js"></script> |
10 <script src="resources/webperftestharness.js"></script> | 11 <script src="resources/webperftestharness.js"></script> |
11 </head> | 12 </head> |
12 <body> | 13 <body> |
13 <h1>Description</h1> | 14 <h1>Description</h1> |
14 <p>This test validates that the value of the window.performance.navigati
on.redirectCount attribute, as well as the window.performance.timing.redirectSta
rt and redirectEnd attributes on a non-redirected navigation.</p> | 15 <p>This test validates that the value of the window.performance.navigati
on.redirectCount attribute, as well as the window.performance.timing.redirectSta
rt and redirectEnd attributes on a non-redirected navigation.</p> |
15 | 16 |
16 <div id="log"></div> | 17 <div id="log"></div> |
17 | 18 |
18 <script> | 19 <script> |
19 test_namespace('navigation'); | 20 test_namespace('navigation'); |
20 | 21 |
21 if (performanceNamespace !== undefined) | 22 if (performanceNamespace !== undefined) |
22 { | 23 { |
23 test_equals(performanceNamespace.timing.redirectStart, 0, 'timing.re
directStart on an non-redirected navigation'); | 24 test_equals(performanceNamespace.timing.redirectStart, 0, 'timing.re
directStart on an non-redirected navigation'); |
24 test_equals(performanceNamespace.timing.redirectEnd, 0, 'timing.redi
rectEnd on an non-redirected navigation'); | 25 test_equals(performanceNamespace.timing.redirectEnd, 0, 'timing.redi
rectEnd on an non-redirected navigation'); |
25 test_equals(performanceNamespace.navigation.redirectCount, 0, 'navig
ation.redirectCount on an non-redirected navigation',{help:"http://www.w3.org/TR
/navigation-timing/#sec-navigation-info-interface"}); | 26 test_equals(performanceNamespace.navigation.redirectCount, 0, 'navig
ation.redirectCount on an non-redirected navigation',{help:"http://www.w3.org/TR
/navigation-timing/#sec-navigation-info-interface"}); |
26 } | 27 } |
27 </script> | 28 </script> |
28 </body> | 29 </body> |
29 </html> | 30 </html> |
OLD | NEW |