mirror of
https://github.com/servo/servo.git
synced 2025-09-11 07:28:19 +01:00
Update web-platform-tests to revision 2ade7dc478df87727880d849a76ee4b5be058f63
This commit is contained in:
parent
7c043f1bd8
commit
2966715d10
71 changed files with 893 additions and 241 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>KV Storage: should not work in non-secure contexts when included via import()</title>
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
test(() => {
|
||||
assert_false(self.isSecureContext, "This test must run in a non-secure context");
|
||||
}, "Prerequisite check");
|
||||
|
||||
promise_test(t => {
|
||||
return promise_rejects(t, "SecurityError", import("std:kv-storage"));
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue