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

Side by Side Diff: LayoutTests/fast/events/button-mouse-active.html

Issue 291563009: Don't repaint button when its click() method is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline on mac Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/events/button-mouse-active-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6
7 window.onload = function() {
8 if (window.eventSender) {
9 var button = document.getElementById('button');
10 eventSender.mouseMoveTo(button.offsetLeft + button.offsetWidth / 2,
11 button.offsetTop + button.offsetTop / 2);
12
13 eventSender.mouseDown();
14 shouldBeEqualToString('getComputedStyle(button).backgroundColor', 'rgb(0 , 255, 0)');
15
16 eventSender.mouseUp();
17 shouldBeEqualToString('getComputedStyle(button).backgroundColor', 'rgb(0 , 0, 255)');
18 }
19 };
20 </script>
21 <style>
22 button { background-color: rgb(0, 0, 255); }
23 button:active { background-color: rgb(0, 255, 0); }
24 </style>
25 <button id="button">button</button>
26 <div id="console"></div>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/events/button-mouse-active-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698