mirror of
https://github.com/servo/servo.git
synced 2025-08-30 17:48:20 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -0,0 +1,6 @@
|
|||
<script>
|
||||
const w = new Worker("./WorkerLocation.js");
|
||||
w.onmessage = e => {
|
||||
parent.postMessage(e.data, "*");
|
||||
}
|
||||
</script>
|
|
@ -1,6 +1,7 @@
|
|||
var obj = new Object();
|
||||
obj.location = location.toString();
|
||||
obj.href = location.href;
|
||||
obj.origin = location.origin;
|
||||
obj.protocol = location.protocol;
|
||||
obj.host = location.host;
|
||||
obj.hostname = location.hostname;
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
|
||||
var name = "something else";
|
||||
|
||||
// This just makes the test name not "Untitled"
|
||||
test(() => { }, "Declaring name as an accidental global must not cause a harness error");
|
||||
|
||||
done();
|
|
@ -6,4 +6,13 @@ test(() => {
|
|||
assert_equals(self.name, "my name")
|
||||
}, `name property value for ${self.constructor.name}`);
|
||||
|
||||
test(() => {
|
||||
self.name = "something new";
|
||||
const propDesc = Object.getOwnPropertyDescriptor(self, "name");
|
||||
assert_equals(propDesc.value, "something new", "value");
|
||||
assert_true(propDesc.configurable, "configurable");
|
||||
assert_true(propDesc.writable, "writable");
|
||||
assert_true(propDesc.enumerable, "enumerable");
|
||||
}, `name property is replaceable for ${self.constructor.name}`);
|
||||
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue