mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -21,6 +21,27 @@ test(() => {
|
|||
base + "/import-meta-dependent.js");
|
||||
}, "import.meta.url in a dependent external script");
|
||||
|
||||
test(() => {
|
||||
assert_equals(typeof importMetaOnRootModule, "object");
|
||||
assert_not_equals(importMetaOnRootModule, null);
|
||||
}, "import.meta is an object");
|
||||
|
||||
test(() => {
|
||||
importMetaOnRootModule.newProperty = 1;
|
||||
assert_true(Object.isExtensible(importMetaOnRootModule));
|
||||
}, "import.meta is extensible");
|
||||
|
||||
test(() => {
|
||||
let names = new Set(Reflect.ownKeys(importMetaOnRootModule));
|
||||
for (name of names) {
|
||||
var desc = Object.getOwnPropertyDescriptor(importMetaOnRootModule, name);
|
||||
assert_equals(desc.writable, true);
|
||||
assert_equals(desc.enumerable, true);
|
||||
assert_equals(desc.configurable, true);
|
||||
}
|
||||
}, "import.meta's properties are writable, configurable, and enumerable");
|
||||
|
||||
|
||||
import { importMetaOnRootModule as hashedImportMetaOnRootModule1,
|
||||
importMetaOnDependentModule as hashedImportMetaOnDependentModule1 }
|
||||
from "./import-meta-root.js#1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue