secure-connection-start-non-zero.https.html (669B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>secureConnectionStart non-zero value test</title> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 </head> 9 <body> 10 <h1>Description</h1> 11 <p>The tests that secureConnectionStart has a non-zero value.</p> 12 <script> 13 window.onload = () => { 14 test(t => { 15 const entry = performance.getEntriesByType("navigation")[0]; 16 assert_greater_than(entry.secureConnectionStart, 0, "secureConnectionStart is non-zero"); 17 }, "Test that secureConnectionStart is not zero"); 18 }; 19 20 </script> 21 </body> 22 </html>