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

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: Patch for landing Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7d77de9f305419c654ae1b553f3a11105cc869df
--- /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; grid-auto-flow: stack;">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(grid);
+ document.execCommand("Italic", null);
+ }
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698