Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -0,0 +1,6 @@
<script>
const w = new Worker("./WorkerLocation.js");
w.onmessage = e => {
parent.postMessage(e.data, "*");
}
</script>

View file

@ -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;

View file

@ -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();

View file

@ -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();