| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 div { background: rgb(0, 0, 0); } | 3 div { background: rgb(0, 0, 0); } |
| 4 div:hover { background: rgb(255, 0, 0); } | 4 div:hover { background: rgb(255, 0, 0); } |
| 5 div:hover:active { background: rgb(255, 255, 0); } | 5 div:hover:active { background: rgb(255, 255, 0); } |
| 6 div:active { background: rgb(0, 255, 0); } | 6 div:active { background: rgb(0, 255, 0); } |
| 7 div { | 7 div { |
| 8 width: 100px; | 8 width: 100px; |
| 9 height: 100px; | 9 height: 100px; |
| 10 border: 2px solid rgb(0, 0, 255); | 10 border: 2px solid rgb(0, 0, 255); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 shouldHaveBackground(box, 'rgb(255, 0, 0)') | 42 shouldHaveBackground(box, 'rgb(255, 0, 0)') |
| 43 shouldHaveBackground(box2, 'rgb(0, 0, 0)') | 43 shouldHaveBackground(box2, 'rgb(0, 0, 0)') |
| 44 | 44 |
| 45 eventSender.mouseDown() | 45 eventSender.mouseDown() |
| 46 shouldHaveBackground(box, 'rgb(255, 255, 0)') | 46 shouldHaveBackground(box, 'rgb(255, 255, 0)') |
| 47 shouldHaveBackground(box2, 'rgb(0, 0, 0)') | 47 shouldHaveBackground(box2, 'rgb(0, 0, 0)') |
| 48 | 48 |
| 49 // With the mouse still down, move into the second box. | 49 // With the mouse still down, move into the second box. |
| 50 eventSender.mouseMoveTo(50, 150) | 50 eventSender.mouseMoveTo(50, 150) |
| 51 shouldHaveBackground(box, 'rgb(0, 255, 0)') | 51 shouldHaveBackground(box, 'rgb(0, 255, 0)') |
| 52 shouldHaveBackground(box2, 'rgb(0, 0, 0)') | 52 shouldHaveBackground(box2, 'rgb(255, 0, 0)') |
| 53 | 53 |
| 54 // Mouse still down, move outside of both boxes. | 54 // Mouse still down, move outside of both boxes. |
| 55 eventSender.mouseMoveTo(400, 50) | 55 eventSender.mouseMoveTo(400, 50) |
| 56 shouldHaveBackground(box, 'rgb(0, 255, 0)') | 56 shouldHaveBackground(box, 'rgb(0, 255, 0)') |
| 57 shouldHaveBackground(box2, 'rgb(0, 0, 0)') | 57 shouldHaveBackground(box2, 'rgb(0, 0, 0)') |
| 58 | 58 |
| 59 eventSender.mouseUp() | 59 eventSender.mouseUp() |
| 60 shouldHaveBackground(box, 'rgb(0, 0, 0)') | 60 shouldHaveBackground(box, 'rgb(0, 0, 0)') |
| 61 shouldHaveBackground(box2, 'rgb(0, 0, 0)') | 61 shouldHaveBackground(box2, 'rgb(0, 0, 0)') |
| 62 } | 62 } |
| 63 </script> | 63 </script> |
| OLD | NEW |