Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_support.js

Issue 2572333003: Import wpt@4970d7334aaf8977c5b617075aa48be1b6e482c7 (Closed)
Patch Set: Update TestExpectations Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.");
}

Powered by Google App Engine
This is Rietveld 408576698