https://github.com/web-platform-tests/wpt
Raw File
Tip revision: afa7bc960f2a72b911f5cf4ea83d4f272bed3270 authored by Manuel Rego Casasnovas on 30 November 2018, 22:57:59 UTC
[css-contain][css-grid] Support size containment on grid containers
Tip revision: afa7bc9
non-secure-context-import-statement.tentative.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async local storage: should not work in non-secure contexts when included via an import statement</title>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script>
"use strict";
setup({ allow_uncaught_exception: true });

test(() => {
  assert_false(self.isSecureContext, "This test must run in a non-secure context");
}, "Prerequisite check");

async_test(t => {
  window.addEventListener("error", t.step_func_done(errorEvent => {
    assert_equals(errorEvent.error.constructor, DOMException, "Must trigger a DOMException");
    assert_equals(errorEvent.error.name, "SecurityError",
      "The DOMException must be a \"SecurityError\"");
  }, { once: true }));
});
</script>

<script type="module">
import "std:async-local-storage";
</script>
back to top