Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <link href="resources/grid.css" rel="stylesheet"> | |
| 3 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet"> | |
| 4 <script> | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 } | |
| 8 </script> | |
| 9 <script> | |
|
Manuel Rego
2016/10/17 09:13:41
Nit: You don't need to close the <script> tag
and
jfernandez
2016/10/17 09:21:42
Acknowledged.
| |
| 10 function domfuzz_crawlNode(node) { | |
|
svillar
2016/10/17 08:28:19
Nit: weird function name, likely coming from the f
jfernandez
2016/10/17 09:21:42
Acknowledged.
| |
| 11 for (var key in node) { | |
| 12 try { | |
| 13 var a = node[key]; | |
| 14 node[key] = null; | |
| 15 } catch (e) { | |
|
svillar
2016/10/17 08:28:19
I guess you can remove the try-catch as you are no
jfernandez
2016/10/17 09:21:42
Acknowledged.
jfernandez
2016/10/17 12:37:37
Actually we can't remove the try-catch, since some
| |
| 16 } | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 function runTest() { | |
| 21 document.body.offsetLeft; | |
| 22 | |
| 23 var element = document.getElementById("node"); | |
| 24 domfuzz_crawlNode(element); | |
| 25 } | |
| 26 </script> | |
| 27 <body onload="runTest();"> | |
| 28 <p>This test passes if it does not crash.</p> | |
| 29 <div class="grid verticalRL fit-content"> | |
| 30 <div id="node" class="firstRowFirstColumn horizontalTB"></div> | |
|
Manuel Rego
2016/10/17 09:13:41
Nit: I guess all those classes are needed to repro
jfernandez
2016/10/17 09:21:42
We indeed need fit-content, because we only clear
| |
| 31 </div> | |
| 32 </body> | |
| OLD | NEW |