tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / http / tests / misc / resources / webtiming-two-redirects.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description("This test checks that Web Timing reports redirectCount correctly and has reasonable values for redirectStart and redirectCount.");
11
12 var performance = window.performance || {};
13 var navigation = performance.navigation || {};
14 var timing = performance.timing || {};
15
16 shouldBeGreaterThanOrEqual("timing.redirectStart", "timing.navigationStart");
17 shouldBeGreaterThanOrEqual("timing.redirectEnd", "timing.redirectStart");
18 shouldBe("navigation.redirectCount", "2");
19
20 </script>
21 <script src="../../js-test-resources/js-test-post.js"></script>
22 </body>
23 </html>