Index: third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js |
index ee479c7d6ad860d6838ecb7d27c2634a0273e13c..28171bda405f3f83f5253aec5f0be8362544d25a 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js |
@@ -21,7 +21,7 @@ function check_PointerEvent(event, testNamePrefix) { |
if (expectedPointerType != null) { |
test(function () { |
- assert_equals(event.pointerType, expectedPointerType, "pointerType should be the same as the requested device."); |
+ assert_equals(event.pointerType, expectedPointerType, "pointerType should be the one specified in the test page."); |
}, pointerTestName + " event pointerType is correct."); |
} |
@@ -201,6 +201,7 @@ function rPointerCapture(e) { |
var globalPointerEventTest = null; |
var expectedPointerType = null; |
+const ALL_POINTERS = ['mouse', 'touch', 'pen']; |
const HOVERABLE_POINTERS = ['mouse', 'pen']; |
const NOHOVER_POINTERS = ['touch']; |
@@ -240,5 +241,9 @@ MultiPointerTypeTest.prototype.createNextTest = function() { |
function setup_pointerevent_test(testName, supportedPointerTypes) { |
- return globalPointerEventTest = new MultiPointerTypeTest(testName, supportedPointerTypes); |
+ return globalPointerEventTest = new MultiPointerTypeTest(testName, supportedPointerTypes); |
+} |
+ |
+function checkPointerEventType(event) { |
+ assert_equals(event.pointerType, expectedPointerType, "pointerType should be the same as the requested device."); |
} |