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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html

Issue 358673003: [CSS Grid Layout] Avoid inserting grid items twice in the grid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/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>

Powered by Google App Engine
This is Rietveld 408576698