Chromium Code Reviews| Index: LayoutTests/fast/block/float/float-not-removed-crash2.html |
| diff --git a/LayoutTests/fast/block/float/float-not-removed-crash2.html b/LayoutTests/fast/block/float/float-not-removed-crash2.html |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..a875985e15c96745563f05469d2a5cd283ee83ea |
| --- /dev/null |
| +++ b/LayoutTests/fast/block/float/float-not-removed-crash2.html |
| @@ -0,0 +1,40 @@ |
| +<body style="display: -webkit-flex; "> |
| +<foobar> |
| +<figure> ]V 8[</figure><row><source id=test style="float: right; -webkit-padding-before: 238px; ">></foobar>>>>><listing style="-webkit-logical-height: 188; "> |
|
Julien - ping for review
2013/05/07 00:51:22
Can't we reduce this test case even more?
Some di
|
| +<style> |
| +.class1 { |
| + -webkit-logical-width: 51667px; |
| +} |
| +</style><script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| +function reference(domNode) { |
| + this.domNode = domNode; |
| +} |
| + |
| +function walk(a, currentPrefix, index, domNode) { |
| + if (domNode == null) |
| + return; |
| + newPrefix = currentPrefix + "_" + index; |
| + walk(a, currentPrefix, index + 1, domNode.nextSibling); |
| + walk(a, newPrefix, 0, domNode.firstChild); |
| + a[newPrefix] = new reference(domNode); |
| +} |
| + |
| +function clear() { |
| + var a = new Array(); |
| + walk(a, "", 0, document.documentElement); |
| + for(key in a) { |
| + a[key].domNode.parentNode.removeChild(a[key].domNode); |
| + if (document.documentElement) |
| + document.documentElement.offsetTop; |
| + } |
| +} |
| + |
| +document.documentElement.offsetTop; |
| +test.setAttribute("class", "class1"); |
| +document.documentElement.offsetTop; |
| +clear(); |
| +alert("PASS. WebKit didn't crash."); |
| +</script> |