| Index: third_party/WebKit/LayoutTests/fast/dom/Window/resources/property-access-in-closure-after-navigation-child.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/property-access-in-closure-after-navigation-child.html b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/property-access-in-closure-after-navigation-child.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c951920a97d191712152a82cfe4ef28b425f97a5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/property-access-in-closure-after-navigation-child.html
|
| @@ -0,0 +1,34 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| +function startTest()
|
| +{
|
| + t = window.top;
|
| + t.shouldBe("window", "self");
|
| + t.shouldBe("window", "frames");
|
| + t.shouldBe("parent", "top");
|
| + t.savedClosure = function()
|
| + {
|
| + // The normal shouldBeNull() helpers don't work well here, since they don't eval
|
| + //in the right context.
|
| + function testProperty(value, name)
|
| + {
|
| + if (value === null)
|
| + t.testPassed(name + " is null.");
|
| + else
|
| + t.testFailed(name + " is not null!");
|
| + }
|
| + testProperty(window, "window");
|
| + testProperty(self, "self");
|
| + testProperty(frames, "frames");
|
| + testProperty(parent, "parent");
|
| + testProperty(top, "top");
|
| + };
|
| + location = 'data:text/html,<body>Testing...</body>';
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="startTest()">
|
| +</body>
|
| +</html>
|
|
|