diff --git a/testing/web-platform/tests/resource-timing/resource_connection_reuse.html b/testing/web-platform/tests/resource-timing/resource_connection_reuse.html index 74c7c10821e8..7a31a7e1ab31 100644 --- a/testing/web-platform/tests/resource-timing/resource_connection_reuse.html +++ b/testing/web-platform/tests/resource-timing/resource_connection_reuse.html @@ -21,7 +21,6 @@ test_namespace('getEntriesByType'); function setup_iframe() { iframe = document.getElementById('frameContext'); d = iframe.contentWindow.document; - iframeBody = d.body; iframe.addEventListener('load', onload_test, false); } @@ -41,10 +40,11 @@ function onload_test() { const entry = entries[1]; test_equals(entry.fetchStart, entry.connectStart, 'connectStart and fetchStart should be the same'); test_equals(entry.fetchStart, entry.connectEnd, 'connectEnd and fetchStart should be the same'); - test_equals(entry.fetchStart, entry.secureConnectionStart, 'secureConnectStart and fetchStart should be the same'); + if(!window.isSecureConnection) { + test_equals(entry.secureConnectionStart, 0, 'secureConnectStart should be zero'); + } test_equals(entry.fetchStart, entry.domainLookupStart, 'domainLookupStart and fetchStart should be the same') test_equals(entry.fetchStart, entry.domainLookupEnd, 'domainLookupEnd and fetchStart should be the same') - } done(); diff --git a/testing/web-platform/tests/resource-timing/resource_connection_reuse.https.html b/testing/web-platform/tests/resource-timing/resource_connection_reuse.https.html new file mode 100644 index 000000000000..bc79a8519b20 --- /dev/null +++ b/testing/web-platform/tests/resource-timing/resource_connection_reuse.https.html @@ -0,0 +1,60 @@ + + +
+ +This test validates that connectStart and connectEnd are the same when a connection is reused (e.g. when a persistent connection is used).
+ + + +