3 <script src=
"../../resources/js-test.js"></script>
8 <a href=
"http://code.google.com/p/chromium/issues/detail?id=87473">cr
87473</a>,
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=64882">64882</a>.
10 <p id=
"description"></p>
11 <iframe style='height:
50; width:
50; top:
100;left:
100; position:absolute; border-width:
0' src='resources/mouseover-button-iframe.html'
13 <div id=
"console"></div>
18 document
.saveWhere
= null;
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
23 testRunner
.waitUntilDone();
25 eventSender
.mouseMoveTo(1,1);
26 eventSender
.mouseDown();
27 eventSender
.mouseUp();
31 eventSender
.mouseMoveTo(125, 125);
34 eventSender
.mouseDown(0);
35 eventSender
.mouseMoveTo(300, 300);
37 eventSender
.mouseMoveTo(125, 125);
39 eventSender
.mouseMoveTo(1, 1);
40 eventSender
.mouseUp();
43 eventSender
.mouseMoveTo(125, 125);
46 eventSender
.mouseDown(1);
47 eventSender
.mouseMoveTo(300, 300);
48 eventSender
.mouseMoveTo(125, 125);
50 eventSender
.mouseUp(1);
52 eventSender
.mouseMoveTo(1, 1);
54 window
.setTimeout('finish()', 0);
60 document
.saveWhere
= name
;
61 document
.events
[name
] = null;
66 shouldBe("document.events['A-no-press'].which", "0");
67 shouldBe("document.events['B-left'].which", "1");
68 shouldBe("document.events['C-no-press'].which", "0");
69 shouldBe("document.events['D-middle'].which", "2");
71 testRunner
.notifyDone()
74 description("This test verifies that we get the correct button on mouseover events in .which when entering a document.");
76 window
.onload = function()