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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html

Issue 2411333007: [css-grid] Avoid storing pointers to orthogonal grid items (Closed)
Patch Set: Patch for landing. Created 4 years, 2 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: third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..889a280ad8f49d2adfde9a316bdc8e47c8b4d276
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<link href="resources/grid.css" rel="stylesheet">
+<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+}
+</script>
+<script>
+function nullifyNodeProperties(node) {
+ for (var key in node) {
+ try {
+ var a = node[key];
+ node[key] = null;
+ } catch (e) {
+ }
+ }
+}
+
+function runTest() {
+ document.body.offsetLeft;
+
+ var element = document.getElementById("node");
+ nullifyNodeProperties(element);
+}
+</script>
+<body onload="runTest();">
+<p>This test passes if it does not crash.</p>
+<div class="grid verticalRL fit-content">
+ <div id="node" class="horizontalTB"></div>
+</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698