6 if (!window
.testRunner
)
7 document
.writeln("This crash test needs to be ran inside DumpRenderTree");
11 function startTest() {
12 if (!window
.testRunner
)
15 testRunner
.dumpAsText();
17 function mouseMoveToCenterOfElement(element
) {
18 eventSender
.mouseMoveTo(element
.offsetLeft
+ element
.offsetWidth
/ 2, element
.offsetTop
+ element
.offsetHeight
/ 2);
21 var src
= document
.getElementById('src');
22 mouseMoveToCenterOfElement(src
);
23 eventSender
.mouseDown();
24 eventSender
.leapForward(200);
26 target
= document
.getElementById('target');
27 eventSender
.mouseMoveTo(target
.offsetLeft
+ 5, target
.offsetTop
+ 5);
28 eventSender
.mouseUp();
30 document
.body
.innerHTML
= "PASS. DRT didn't crash."
34 document
.body
.removeChild(target
);
36 if (window
.GCController
)
37 GCController
.collect();
41 <img id=
"src" src=
"resources/abe.png" onload=
"startTest()" draggable=
"true" ondrag=
"trigger();">
42 <textarea id=
"target" style=
"width: 500px; height: 500px;">Dropzone
</textarea>