4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
15 container2
.appendChild(elem
);
20 container1
= document
.getElementById("newcontainer1");
21 container2
= document
.getElementById("newcontainer2");
23 if (!window
.eventSender
)
26 var rect
= document
.getElementById("trigger").getBoundingClientRect();
27 eventSender
.mouseMoveTo(rect
.left
+ rect
.width
/ 2, rect
.top
+ rect
.height
/ 2);
28 eventSender
.mouseDown();
29 eventSender
.mouseUp();
34 elem
= document
.getElementById("subcontainer1");
35 document
.getElementById("sub1").focus();
38 container1
.appendChild(elem
);
39 container1
.removeChild(elem
);
45 if (this.GCController
)
46 GCController
.collect();
48 for (var i
= 0; i
< 10000; ++i
) {
53 document
.body
.removeChild(container2
);
55 if (window
.testRunner
)
56 testRunner
.notifyDone();
62 <body onload=
"onload()">
63 <p>Tests for proper handling of DOM changes during a blur event. If the test doesn't crash, it passed.
64 <div id=
"subcontainer1">
65 <textarea id=
"sub1" onblur=
"handler2()"></textarea>
68 <input id=
"trigger" type=
"button" name=
"Press" value=
"press" onclick=
"onpress()">
69 <div id=
"newcontainer1"></div>
70 <div id=
"newcontainer2"></div>