4 <p>This test passes if middle mouse clicking in the rectangle below does not crash.
</p>
5 <iframe id=
"iframe" src='resources/selection-paste-crash.html'
></iframe>
7 var iframe
= document
.getElementById("iframe");
9 function removeIframe()
11 document
.body
.removeChild(iframe
);
14 window
.onload = function() {
15 if (!window
.testRunner
|| !window
.eventSender
)
17 testRunner
.dumpAsText();
19 var x
= iframe
.offsetLeft
+ iframe
.offsetWidth
/ 2;
20 var y
= iframe
.offsetTop
+ iframe
.offsetHeight
/ 2;
21 eventSender
.mouseMoveTo(x
, y
);
22 eventSender
.mouseDown(1);
23 eventSender
.mouseUp(1);