Chromium Code Reviews| Index: LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html |
| diff --git a/LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html b/LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..019f649a532532b06962c1722cc22713bcad6cbb |
| --- /dev/null |
| +++ b/LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html |
| @@ -0,0 +1,16 @@ |
| +<body id=container> |
| + <p>This test checks that adding a new grid item before an already existing item wrapped by an anonymous block does not crash under ASAN.</p> |
|
Manuel Rego
2014/06/25 20:13:11
Actually you don't need an ASAN build, but a regul
svillar
2014/06/26 09:45:52
Yeah but the issue was detected with ASAN, and the
|
| + <div style="display: grid;">X</div> |
| +</body> |
| +<script type="text/javascript"> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + document.addEventListener("DOMContentLoaded", crash, false); |
| + |
| + function crash() { |
| + document.designMode = 'on'; |
| + window.getSelection().selectAllChildren(container); |
|
Manuel Rego
2014/06/25 20:13:11
Nit: I guess it's enough with select the children
svillar
2014/06/26 09:45:52
Sure, I'll switch to selecting the grid children.
|
| + document.execCommand("Italic", null); |
| + } |
| +</script> |