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

Unified Diff: LayoutTests/fast/frames/script-tests/frame-height-before-parent-layout.js

Issue 19272007: Update parent layout when child frame requests innerHeight/innerWidth. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/frames/script-tests/frame-height-before-parent-layout.js
diff --git a/LayoutTests/fast/frames/script-tests/frame-height-before-parent-layout.js b/LayoutTests/fast/frames/script-tests/frame-height-before-parent-layout.js
new file mode 100644
index 0000000000000000000000000000000000000000..d40e0cbfe27769c748db05fc81223a28188036bf
--- /dev/null
+++ b/LayoutTests/fast/frames/script-tests/frame-height-before-parent-layout.js
@@ -0,0 +1,10 @@
+description('Tests that querying innerHeight in an iframe returns the correct value even before the parent frame has had a layout');
+
+var iframe = document.createElement('iframe');
+document.body.appendChild(iframe);
+
esprehn 2013/07/16 00:49:41 Lets not add more of these script tests, can you j
+var heightBeforeLayout = iframe.contentWindow.innerHeight;
+var forceLayout = iframe.offsetHeight;
+var heightAfterLayout = iframe.contentWindow.innerHeight;
+
+shouldBe('heightBeforeLayout', 'heightAfterLayout');

Powered by Google App Engine
This is Rietveld 408576698