~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/dom-manipulation-on-resize.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head><style>
 
3
body { overflow: hidden; }
 
4
</style>
 
5
<script>
 
6
window.onresize = function() {
 
7
    var tbody = document.createElement("TBODY")
 
8
 
 
9
    var m = (document.getElementsByTagName("TABLE"))[0]
 
10
    if(m.hasChildNodes()) m.removeChild(m.lastChild)
 
11
 
 
12
    var tr = tbody.appendChild(document.createElement("TR"))
 
13
 
 
14
    m.appendChild(tbody)
 
15
}
 
16
</script>
 
17
</head>
 
18
<body onload="setTimeout('window.resizeTo(500,500)', 0)">
 
19
<table></table>
 
20
<p>
 
21
<b>BUG ID: <a href="http://bugs.webkit.org/show_bug.cgi?id=8739">Bugzilla bug 8739</a></b>
 
22
Crash in RenderTableSection::paint due to manipulating DOM on resize
 
23
</p>
 
24
<p id="success" style="background-color:palegreen; padding:3px;">
 
25
><b>TEST PASS:</b> You got here without crashing, which means test PASS. It is normal for the
 
26
window to have resized.
 
27
</p>
 
28
</body></html>