diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html b/tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html index 27697d62087..ce97a628a0e 100644 --- a/tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html +++ b/tests/wpt/web-platform-tests/secure-contexts/shared-worker-secure-first.https.html @@ -46,15 +46,15 @@ // one in the popup or in our subframe. if (data.fromPopup) { t3.step(function() { - assert_false(data.exception); - assert_true(data.error); + assert_false(data.exception, "No exception should be present."); + assert_true(data.error, "SharedWorker connection should error out."); }); t3.done(); } else { t1.step(function() { - assert_false(data.exception); - assert_false(data.error); - assert_true(data.isSecureContext); + assert_false(data.exception, "SharedWorker should not throw an exception."); + assert_false(data.error, "SharedWorker connection should not generate an error."); + assert_true(data.isSecureContext, "SharedWorker is a secure context"); }); t1.done(); } @@ -63,15 +63,15 @@ // check whether it's the one in the popup or in our subframe. if (data.fromPopup) { t4.step(function() { - assert_false(data.exception); - assert_true(data.error); + assert_false(data.exception, "No exception should be present."); + assert_true(data.error, "SharedWorker connection should error out."); }); t4.done(); } else { t2.step(function() { - assert_false(data.exception); - assert_false(data.error); - assert_true(data.isSecureContext); + assert_false(data.exception, "SharedWorker should not throw an exception."); + assert_false(data.error, "SharedWorker connection should not generate an error."); + assert_true(data.isSecureContext, "SharedWorker is a secure context"); }); t2.done(); } |