Update web-platform-tests to revision 78f764c05c229883e87ad135c7153051a66e2851

This commit is contained in:
WPT Sync Bot 2019-03-06 20:32:15 -05:00
parent 55347aa39f
commit bf84a079f9
1983 changed files with 58006 additions and 31437 deletions

View file

@ -13,5 +13,27 @@ test(function() {
assert_equals(document.location, location);
}, "document.location equals window.location");
</script>
test(function() {
var desc1 = Object.getOwnPropertyDescriptor(new Document(), "location");
assert_not_equals(desc1, undefined);
assert_equals(typeof desc1.get, "function");
var desc2 = Object.getOwnPropertyDescriptor(new Document(), "location");
assert_not_equals(desc2, undefined);
assert_equals(typeof desc2.get, "function");
assert_equals(desc1.get, desc2.get);
}, "Attribute getter deduplication");
test(function() {
var desc1 = Object.getOwnPropertyDescriptor(new Document(), "location");
assert_not_equals(desc1, undefined);
assert_equals(typeof desc1.set, "function");
var desc2 = Object.getOwnPropertyDescriptor(new Document(), "location");
assert_not_equals(desc2, undefined);
assert_equals(typeof desc2.set, "function");
assert_equals(desc1.set, desc2.set);
}, "Attribute setter deduplication");
</script>