summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/navigation-timing/resources/secure-connection-test.html
blob: 63a80e062bfad190cf036fccb976b53fe472d342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<script>
const entries =  performance.getEntriesByType("navigation");
if (!entries) {
  window.top.postMessage("FAIL - not supported", "*");
}
const entry = entries[0];
if (entry.secureConnectionStart != entry.fetchStart) {
  window.top.postMessage("FAIL - unexpected secureConnectionStart value of " +
    entry.secureConnectionStart + " does not equal " + entry.fetchStart, "*");
}
window.top.postMessage("PASS", "*");
</script>