Commit 8256e85a authored by inferno@chromium.org's avatar inferno@chromium.org

2011-01-31 Cris Neckar <cdn@chromium.org>

        Reviewed by Eric Seidel.

        Tests for crash when cloning elements that reference counter nodes.
        https://bugs.webkit.org/show_bug.cgi?id=53344

        * http/tests/css/counter-crash-expected.txt: Added.
        * http/tests/css/counter-crash.html: Added.
        * http/tests/css/resources/counter-crash-frame-src.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ef3259eb
2011-01-31 Cris Neckar <cdn@chromium.org>
Reviewed by Eric Seidel.
Tests for crash when cloning elements that reference counter nodes.
https://bugs.webkit.org/show_bug.cgi?id=53344
* http/tests/css/counter-crash-expected.txt: Added.
* http/tests/css/counter-crash.html: Added.
* http/tests/css/resources/counter-crash-frame-src.html: Added.
2011-01-27 Abhishek Arya <inferno@chromium.org>
Reviewed by Dave Hyatt.
PASS: rendered counter nodes without crashing.
<html>
<script>
window.onload = function()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
document.getElementById('content').innerHTML = "PASS: rendered counter nodes without crashing.";
}
</script>
<iframe src='resources/counter-crash-frame-src.html'>
</iframe>
<div id='content'>
FAIL
</div>
</html>
<script>
function boom() {
var p = document.getElementById('p').cloneNode(false);
document.getElementById('fig').appendChild(p);
var count = document.getElementById('count').cloneNode(false);
document.getElementById('multi').appendChild(count);
document.location.reload();
}
</script>
<body onload="boom();">
<spacer id='count' style='counter-increment: aaa 1;'>
<fig id='fig'>
</spacer>
<acronym>
<spacer style='counter-increment: aaa 1;'></spacer>
</acronym>
<multicol id='multi'></multicol>
<p id='p'></p>
</body>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment