| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 </script> | 5 </script> |
| 6 <script src="../../js-test-resources/js-test-pre.js"></script> | 6 <script src="../../js-test-resources/js-test-pre.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <p id="description"></p> | 9 <p id="description"></p> |
| 10 <div id="console"></div> | 10 <div id="console"></div> |
| 11 <script> | 11 <script> |
| 12 description("This test checks that Web Timing reports secureConnectionStart corr
ectly and has reasonable values for connectStart and connectEnd. Note that DumpR
enderTree doesn't set secureConnectionStart."); | 12 description("This test checks that Web Timing reports secureConnectionStart corr
ectly and has reasonable values for connectStart and connectEnd. Note that DumpR
enderTree doesn't set secureConnectionStart."); |
| 13 | 13 |
| 14 window.performance = window.performance || {}; | 14 window.performance = window.performance || {}; |
| 15 var navigation = performance.navigation || {}; | 15 var navigation = performance.navigation || {}; |
| 16 var timing = performance.timing || {}; | 16 var timing = performance.timing || {}; |
| 17 | 17 |
| 18 shouldBeGreaterThanOrEqual("timing.connectStart", "timing.navigationStart"); | 18 shouldBeGreaterThanOrEqual("timing.connectStart", "timing.navigationStart"); |
| 19 shouldBeGreaterThanOrEqual("timing.secureConnectionStart", "timing.connectStart"
); | 19 shouldBeGreaterThanOrEqual("timing.secureConnectionStart", "timing.connectStart"
); |
| 20 shouldBeGreaterThanOrEqual("timing.connectEnd", "timing.secureConnectionStart"); | 20 shouldBeGreaterThanOrEqual("timing.connectEnd", "timing.secureConnectionStart"); |
| 21 | 21 |
| 22 </script> | 22 </script> |
| 23 <script src="../../js-test-resources/js-test-post.js"></script> | |
| 24 </body> | 23 </body> |
| 25 </html> | 24 </html> |
| OLD | NEW |