Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html b/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e40f97f54c1ab5498bf96e917b2c736d3a2983e4 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html |
| @@ -0,0 +1,17 @@ |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script> |
| +window.onload = function() { |
| + var frames = new Set(); |
| + var win = window; |
| + for (i = 0; i < 10; i++) { |
| + var frame = win.document.createElement('iframe'); |
| + win.document.body.appendChild(frame); |
| + frames.add(frame); |
| + win = win[0]; |
| + } |
| + test(function() { |
| + frames.forEach( function(value) { assert_not_equals(value.clientHeight, 0) } ) |
|
dcheng
2015/11/18 03:23:18
How come this can't use a check for contentDocumen
Xiaocheng
2015/11/18 10:26:00
TL;DR: For a nested frame created in this way, its
dcheng
2015/11/18 21:32:51
Hmm. I think there's some room for cleanup in the
|
| + }, "all nested about:blank iframes should be displayed correctly"); |
|
dcheng
2015/11/18 03:23:18
Nit: "nested about:blank iframes should not be blo
Xiaocheng
2015/11/18 10:26:00
Done.
|
| +} |
| +</script> |