Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html

Issue 131113003: Fix DOMWindow::isCurrentlyDisplayedInFrame to return false when detached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ScreenOrientation + test window.open. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script src="resources/window-property-collector.js"></script>
5 <script>
6 var childWindow;
7 var propertiesToVerify = [];
8
9 function insertExpectedResult(path, expected)
10 {
11 var propertyPath = path.join('.');
12 propertiesToVerify.push({'property': "childWindow." + propertyPath, 'expecte d': expected});
13 }
14
15 function runTest()
16 {
17 description("Tests property access on a cached DOMWindow after the associate d frame is no longer in a web page. Test should not crash and properties should be set to sane defaults.");
18 var frame = document.getElementById("frame");
19 childWindow = frame.contentWindow;
20 collectProperties();
21 frame.parentNode.removeChild(frame);
22 for (var i = 0; i < propertiesToVerify.length; ++i)
23 shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected) ;
24 }
25 </script>
26 </head>
27 <body>
28 <iframe id="frame" src="about:blank" onload="runTest()"></iframe>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698