OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title>Clicking with primary vs non-primary buttons</title> | 5 <title>Clicking with primary vs non-primary buttons</title> |
6 <link rel="help" href="https://wicg.github.io/auxclick/"> | 6 <link rel="help" href="https://wicg.github.io/auxclick/"> |
7 <script src="/resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
8 <script src="/resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
9 <style> | 9 <style> |
10 #target { | 10 #target { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 assert_array_equals(events, ['mousedown', 'mouseup', 'auxclick',
'mousedown', 'mouseup', 'auxclick'], | 56 assert_array_equals(events, ['mousedown', 'mouseup', 'auxclick',
'mousedown', 'mouseup', 'auxclick'], |
57 'There should be two auxclick events for a non-primary butto
n double click each preceded by one mousemove and one mouseup'); | 57 'There should be two auxclick events for a non-primary butto
n double click each preceded by one mousemove and one mouseup'); |
58 assert_equals(event.detail, click_count, 'detail attribute of au
xclick should be the click count.'); | 58 assert_equals(event.detail, click_count, 'detail attribute of au
xclick should be the click count.'); |
59 }); | 59 }); |
60 test_auxclick.done(); | 60 test_auxclick.done(); |
61 } | 61 } |
62 }); | 62 }); |
63 </script> | 63 </script> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |