mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision 000905d008db2538360020335bc2dbba16d322b5.
This commit is contained in:
parent
53d2432c90
commit
2d49203b9c
100 changed files with 3807 additions and 201 deletions
|
@ -42,7 +42,7 @@ var unforgeableAttributes = [
|
|||
"top"
|
||||
];
|
||||
|
||||
var replacableAttributes = [
|
||||
var replaceableAttributes = [
|
||||
"self",
|
||||
"locationbar",
|
||||
"menubar",
|
||||
|
@ -51,7 +51,23 @@ var replacableAttributes = [
|
|||
"statusbar",
|
||||
"toolbar",
|
||||
"frames",
|
||||
"length"
|
||||
"parent",
|
||||
"external",
|
||||
"length",
|
||||
|
||||
// CSSOM-View
|
||||
"screen",
|
||||
"scrollX",
|
||||
"scrollY",
|
||||
"pageXOffset",
|
||||
"pageYOffset",
|
||||
"innerWidth",
|
||||
"innerHeight",
|
||||
"screenX",
|
||||
"screenY",
|
||||
"outerWidth",
|
||||
"outerHeight",
|
||||
"devicePixelRatio",
|
||||
];
|
||||
|
||||
var methods = [
|
||||
|
@ -98,10 +114,8 @@ if ("showModalDialog" in window) {
|
|||
|
||||
var readonlyAttributes = [
|
||||
"history",
|
||||
"parent",
|
||||
"frameElement",
|
||||
"navigator",
|
||||
"external",
|
||||
"applicationCache",
|
||||
|
||||
// WindowSessionStorage
|
||||
|
@ -109,19 +123,6 @@ var readonlyAttributes = [
|
|||
|
||||
// WindowLocalStorage
|
||||
"localStorage",
|
||||
|
||||
// CSSOM-View
|
||||
"screen",
|
||||
"innerWidth",
|
||||
"innerHeight",
|
||||
"scrollX",
|
||||
"pageXOffset",
|
||||
"scrollY",
|
||||
"pageYOffset",
|
||||
"screenX",
|
||||
"screenY",
|
||||
"outerWidth",
|
||||
"outerHeight"
|
||||
];
|
||||
|
||||
var writableAttributes = [
|
||||
|
@ -259,8 +260,7 @@ test(function() {
|
|||
assert_equals(window[id], EventTargetProto[id]);
|
||||
assert_data_propdesc(Object.getOwnPropertyDescriptor(EventTargetProto, id),
|
||||
true, true, true);
|
||||
assert_data_propdesc(Object.getOwnPropertyDescriptor(window, id),
|
||||
true, true, true);
|
||||
assert_equals(Object.getOwnPropertyDescriptor(window, id), undefined);
|
||||
}, "EventTarget method: " + id);
|
||||
});
|
||||
}, "EventTarget interface");
|
||||
|
@ -303,7 +303,7 @@ test(function() {
|
|||
id === "location", true, false);
|
||||
}, "Window unforgeable attribute: " + id);
|
||||
});
|
||||
replacableAttributes.forEach(function(id) {
|
||||
replaceableAttributes.forEach(function(id) {
|
||||
test(function() {
|
||||
var WindowProto = Window.prototype;
|
||||
assert_true(id in window, id + " in window");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue