Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: LayoutTests/fast/events/script-tests/mouse-click-events.js

Issue 3325025: Merge 67261 - Make middle clicks not fire DOM onclick events.... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/events/mouse-click-events-expected.txt ('k') | WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 description("This tests what mouse events we send."); 1 description("This tests what mouse events we send.");
2 2
3 var div = document.createElement("div"); 3 var div = document.createElement("div");
4 div.style.width = "100px"; 4 div.style.width = "100px";
5 div.style.height = "100px"; 5 div.style.height = "100px";
6 div.style.backgroundColor = "blue"; 6 div.style.backgroundColor = "blue";
7 7
8 var eventLog = ""; 8 var eventLog = "";
9 9
10 function appendEventLog() { 10 function appendEventLog() {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 function testEvents(description, button, expectedString) { 43 function testEvents(description, button, expectedString) {
44 debug(description); 44 debug(description);
45 sendEvents(button); 45 sendEvents(button);
46 shouldBeEqualToString("eventLog", expectedString); 46 shouldBeEqualToString("eventLog", expectedString);
47 clearEventLog(); 47 clearEventLog();
48 } 48 }
49 49
50 if (window.eventSender) { 50 if (window.eventSender) {
51 testEvents("Left Mouse Button", 0, "mousedown(0) mouseup(0) click(0) mousedo wn(0) mouseup(0) click(0) dblclick(0) "); 51 testEvents("Left Mouse Button", 0, "mousedown(0) mouseup(0) click(0) mousedo wn(0) mouseup(0) click(0) dblclick(0) ");
52 testEvents("Middle Mouse Button", 1, "mousedown(1) mouseup(1) click(1) mouse down(1) mouseup(1) click(1) dblclick(1) "); 52 testEvents("Middle Mouse Button", 1, "mousedown(1) mouseup(1) mousedown(1) m ouseup(1) ");
53 testEvents("Right Mouse Button", 2, "mousedown(2) mouseup(2) mousedown(2) mo useup(2) "); 53 testEvents("Right Mouse Button", 2, "mousedown(2) mouseup(2) mousedown(2) mo useup(2) ");
54 testEvents("4th Mouse Button", 3, "mousedown(1) mouseup(1) click(1) mousedow n(1) mouseup(1) click(1) dblclick(1) "); 54 testEvents("4th Mouse Button", 3, "mousedown(1) mouseup(1) mousedown(1) mous eup(1) ");
55 } 55 }
56 56
57 var successfullyParsed = true; 57 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/mouse-click-events-expected.txt ('k') | WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698