Chromium Code Reviews| 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'); |