OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>PointerEvent: Constructor test</title> | 4 <title>PointerEvent: Constructor test</title> |
5 <meta name="viewport" content="width=device-width"> | 5 <meta name="viewport" content="width=device-width"> |
6 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> | 6 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> |
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 <!-- Additional helper script for common checks across event types --> | 9 <!-- Additional helper script for common checks across event types --> |
10 <script type="text/javascript" src="pointerevent_support.js"></script> | 10 <script type="text/javascript" src="pointerevent_support.js"></script> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <h1>PointerEvent: Dispatch custom event</h1> | 13 <h1>PointerEvent: Dispatch custom event</h1> |
14 <h4>Test Description: This test checks if PointerEvent constructor works pro
perly using synthetic pointerover and pointerout events. For valid results, this
test must be run without generating real (trusted) pointerover or pointerout ev
ents on the black rectangle below.</h4> | 14 <h4>Test Description: This test checks if PointerEvent constructor works pro
perly using synthetic pointerover and pointerout events. For valid results, this
test must be run without generating real (trusted) pointerover or pointerout ev
ents on the black rectangle below.</h4> |
15 <div id="target0"></div> | 15 <div id="target0"></div> |
16 <script> | 16 <script> |
17 var detected_pointertypes = {}; | 17 var detected_pointertypes = {}; |
18 add_completion_callback(showPointerTypes); | 18 add_completion_callback(showPointerTypes); |
19 | 19 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 target0.dispatchEvent(pointerEventDefault); | 91 target0.dispatchEvent(pointerEventDefault); |
92 }, "PointerEvent constructor")); | 92 }, "PointerEvent constructor")); |
93 }) | 93 }) |
94 </script> | 94 </script> |
95 <div id="complete-notice"> | 95 <div id="complete-notice"> |
96 <p>The following pointer types were detected: <span id="pointertype-log"></s
pan>.</p> | 96 <p>The following pointer types were detected: <span id="pointertype-log"></s
pan>.</p> |
97 </div> | 97 </div> |
98 <div id="log"></div> | 98 <div id="log"></div> |
99 </body> | 99 </body> |
100 </html> | 100 </html> |
OLD | NEW |