mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision 78f764c05c229883e87ad135c7153051a66e2851
This commit is contained in:
parent
55347aa39f
commit
bf84a079f9
1983 changed files with 58006 additions and 31437 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue