OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src='../../../resources/testharness.js'></script> | 2 <script src='../../../resources/testharness.js'></script> |
3 <script src='../../../resources/testharnessreport.js'></script> | 3 <script src='../../../resources/testharnessreport.js'></script> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 #box { | 5 #box { |
6 width: 600px; | 6 width: 600px; |
7 height: 600px; | 7 height: 600px; |
8 touch-action: none; | 8 touch-action: none; |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 }); | 42 }); |
43 testTouchMove.done(); | 43 testTouchMove.done(); |
44 } | 44 } |
45 | 45 |
46 function testMultiPointerMoveSuppressionInSlopRegion() { | 46 function testMultiPointerMoveSuppressionInSlopRegion() { |
47 if (window.chrome && chrome.gpuBenchmarking) { | 47 if (window.chrome && chrome.gpuBenchmarking) { |
48 var pointerActions = | 48 var pointerActions = |
49 [{source: "touch", | 49 [{source: "touch", |
50 actions: [ | 50 actions: [ |
51 { name: "pointerDown", x: x, y: y }, | 51 { name: "pointerDown", x: x, y: y }, |
52 { name: "pointerMove", x: x, y: y + 10 }, | 52 { name: "pointerMove", x: x, y: y + 1 }, |
53 { name: "pause" }, | 53 { name: "pause" }, |
54 { name: "pause" }, | 54 { name: "pause" }, |
55 { name: "pause" }, | 55 { name: "pause" }, |
56 { name: "pointerMove", x: x, y: y + 6 }, | 56 { name: "pointerMove", x: x, y: y + 2 }, |
57 { name: "pointerUp" }]}, | 57 { name: "pointerUp" }]}, |
58 {source: "touch", | 58 {source: "touch", |
59 actions: [ | 59 actions: [ |
60 { name: "pause" }, | 60 { name: "pause" }, |
61 { name: "pause" }, | 61 { name: "pause" }, |
62 { name: "pointerDown", x: x, y: y }, | 62 { name: "pointerDown", x: x, y: y }, |
63 { name: "pointerMove", x: x, y: y + 10 }, | 63 { name: "pointerMove", x: x, y: y + 1 }, |
64 { name: "pointerUp"}]}]; | 64 { name: "pointerUp"}]}]; |
65 chrome.gpuBenchmarking.pointerActionSequence(pointerActions, callbackVal
idMoveCount); | 65 chrome.gpuBenchmarking.pointerActionSequence(pointerActions, callbackVal
idMoveCount); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 var testTouchMove = async_test('Tests that TouchMoves are not suppressed if a se
condary pointer is present during any movement.'); | 69 var testTouchMove = async_test('Tests that TouchMoves are not suppressed if a se
condary pointer is present during any movement.'); |
70 box.addEventListener('touchmove', validTouchMoveResult); | 70 box.addEventListener('touchmove', validTouchMoveResult); |
71 box.addEventListener('pointermove', validPointerMoveResult); | 71 box.addEventListener('pointermove', validPointerMoveResult); |
72 testMultiPointerMoveSuppressionInSlopRegion(); | 72 testMultiPointerMoveSuppressionInSlopRegion(); |
73 | 73 |
74 </script> | 74 </script> |
OLD | NEW |