author | Jeremy Roman <jbroman@chromium.org> |
Tue, 12 Feb 2019 14:08:21 +0000 | |
changeset 459248 | db8d4d86141b3ea9d2c41a9911c92c474a0645b5 |
parent 459247 | 3475e4caac77437f16b92461383d7d312c8de4f9 |
child 459249 | 22dec3239fde52948b03b4bf7e7dab3eb825d910 |
push id | 35557 |
push user | dvarga@mozilla.com |
push date | Fri, 15 Feb 2019 01:42:08 +0000 |
treeherder | mozilla-central@426ca85d2303 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1526405, 15173, 916310, 1447030, 627932 |
milestone | 67.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/portals/portals-activate-no-browsing-context.html | file | annotate | diff | comparison | revisions |
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/portals/portals-activate-no-browsing-context.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> +promise_test(async () => { + let activatePromise = document.createElement('portal').activate(); + await activatePromise.then(() => assert_unreached(), e => { + assert_true(e instanceof DOMException); + assert_equals(e.name, 'InvalidStateError'); + }); +}, "A portal with nothing in it cannot be activated"); +</script>