| Index: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js
|
| index 0a744b364fce22fd5199d2ff37161892d6241a57..fa479a9603fcb9ae98cc7b7721f296d883e50e7a 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js
|
| @@ -123,6 +123,21 @@ function touchScrollInTarget(targetSelector, direction) {
|
| });
|
| }
|
|
|
| +function pinchZoomInTarget(targetSelector, scale) {
|
| + return new Promise(function(resolve, reject) {
|
| + if (window.chrome && chrome.gpuBenchmarking) {
|
| + scrollPageIfNeeded(targetSelector);
|
| + var target = document.querySelector(targetSelector);
|
| + var targetRect = target.getBoundingClientRect();
|
| + chrome.gpuBenchmarking.pinchBy(scale, targetRect.left + (targetRect.width/2), targetRect.top + (targetRect.height/2), function() {
|
| + resolve();
|
| + });
|
| + } else {
|
| + reject();
|
| + }
|
| + });
|
| +}
|
| +
|
| // Pen inputs.
|
| function penMoveToDocument() {
|
| return new Promise(function(resolve, reject) {
|
|
|