| 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>
|
|
|