| Index: third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
| index 19e23b5c2a937a7e566ab9f51fbec95c50c58e31..58c362a0a543a5971622dbf65c5ce64e76fd93d3 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
| @@ -71,8 +71,12 @@ addTest(function() {
|
| * Also tests for [[GetOwnProperty]] and [[HasOwnProperty]] behavior.
|
| */
|
|
|
| +var whitelistedWindowIndices = ['0', '1'];
|
| var whitelistedWindowProps = ['location', 'postMessage', 'window', 'frames', 'self', 'top', 'parent',
|
| 'opener', 'closed', 'close', 'blur', 'focus', 'length'];
|
| +whitelistedWindowProps = whitelistedWindowProps.concat(whitelistedWindowIndices);
|
| +whitelistedWindowProps.sort();
|
| +
|
| addTest(function() {
|
| for (var prop in window) {
|
| if (whitelistedWindowProps.indexOf(prop) != -1) {
|
| @@ -244,7 +248,7 @@ addTest(function() {
|
| */
|
|
|
| addTest(function() {
|
| - assert_array_equals(whitelistedWindowProps.sort(), Object.getOwnPropertyNames(C).sort(),
|
| + assert_array_equals(Object.getOwnPropertyNames(C).sort(), whitelistedWindowProps.sort(),
|
| "Object.getOwnPropertyNames() gives the right answer for cross-origin Window");
|
| assert_array_equals(Object.getOwnPropertyNames(C.location).sort(), ['href', 'replace'],
|
| "Object.getOwnPropertyNames() gives the right answer for cross-origin Location");
|
|
|