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..2d6211d8611945f470466bc98f5a207dff0b9a34 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html |
| @@ -0,0 +1,16 @@ |
| +<body> |
| + <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> |
| + <div id=grid style="display: grid;">X</div> |
|
Manuel Rego
2014/07/01 13:05:11
After https://codereview.chromium.org/333563003/ y
Julien - ping for review
2014/07/07 17:34:41
It's fine to land this change and test case to ens
|
| +</body> |
| +<script type="text/javascript"> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + document.addEventListener("DOMContentLoaded", crash, false); |
| + |
| + function crash() { |
| + document.designMode = 'on'; |
| + window.getSelection().selectAllChildren(grid); |
| + document.execCommand("Italic", null); |
| + } |
| +</script> |