| Index: LayoutTests/http/tests/security/resources/cross-frame-access.js
|
| diff --git a/LayoutTests/http/tests/security/resources/cross-frame-access.js b/LayoutTests/http/tests/security/resources/cross-frame-access.js
|
| index c8063edb4e3e764e53db63026b5a2749815c33f8..3b48f8c82569f19b9d5add97ab4e14d3631d2430 100644
|
| --- a/LayoutTests/http/tests/security/resources/cross-frame-access.js
|
| +++ b/LayoutTests/http/tests/security/resources/cross-frame-access.js
|
| @@ -58,6 +58,17 @@ function canGet(keyPath)
|
| }
|
| }
|
|
|
| +function shouldThrowException(a) {
|
| + try {
|
| + var evalA = eval(e);
|
| + log("FAIL: " + a + " should have thrown an exception, but instead returned " + evalA + ".");
|
| + return false;
|
| + } catch (e) {
|
| + log("PASS: " + a + " should have thrown an exception, and did.");
|
| + return true;
|
| + }
|
| +}
|
| +
|
| function accessThrowsException(keyPath) {
|
| try {
|
| eval("window." + keyPath);
|
|
|