| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <!-- This test should be integrated into web-platform-test when the pinch-zoom | 3 <!-- This test should be integrated into web-platform-test when the pinch-zoom |
| 4 is accepted into the specification. | 4 is accepted into the specification. |
| 5 See https://github.com/w3c/pointerevents/issues/29 --> | 5 See https://github.com/w3c/pointerevents/issues/29 --> |
| 6 <head> | 6 <head> |
| 7 <title>touch-action: pinch-zoom</title> | 7 <title>touch-action: pinch-zoom</title> |
| 8 <meta name="assert" content="TA15.4 - With `touch-action: pinch-zoom` on
a swiped or click/dragged element, only pinch zoom and two finger pan should be
possible."> | 8 <meta name="assert" content="TA15.4 - With `touch-action: pinch-zoom` on
a swiped or click/dragged element, only pinch zoom and two finger pan should be
possible."> |
| 9 <meta name="viewport" content="width=device-width"> | 9 <meta name="viewport" content="width=device-width"> |
| 10 <link rel="stylesheet" type="text/css" href="../../../imported/wpt/point
erevents/pointerevent_styles.css"> | 10 <link rel="stylesheet" type="text/css" href="../../../imported/wpt/point
erevents/pointerevent_styles.css"> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 <div id="complete-notice"> | 111 <div id="complete-notice"> |
| 112 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> | 112 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> |
| 113 </div> | 113 </div> |
| 114 <div id="log"></div> | 114 <div id="log"></div> |
| 115 | 115 |
| 116 <script> | 116 <script> |
| 117 function inject_input() { | 117 function inject_input() { |
| 118 return touchScrollInTarget('#target0', 'down').then(function() { | 118 return touchScrollInTarget('#target0', 'down').then(function() { |
| 119 return pinchZoomInTarget('#target0', 3.0); | 119 return pinchZoomInTarget('#target0', 3.0); |
| 120 }).then(function() { | 120 }).then(function() { |
| 121 return touchTapInTarget('#btnComplete'); | 121 document.getElementById("btnComplete").click(); |
| 122 }); | 122 }); |
| 123 } | 123 } |
| 124 </script> | 124 </script> |
| 125 <script src='../../../imported/wpt_automation/pointerevents/pointerevent
_common_input.js'></script> | 125 <script src='../../../imported/wpt_automation/pointerevents/pointerevent
_common_input.js'></script> |
| 126 </body> | 126 </body> |
| 127 </html> | 127 </html> |
| OLD | NEW |