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

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

Issue 2675133002: Import wpt@97e16bef6d6599ae805521e2007a9430a12aa144 (Closed)
Patch Set: Revert change to W3CImportExpectations Created 3 years, 10 months 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/external/wpt/pointerevents/pointerevent_support.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_support.js b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_support.js
index 03332b6a7b1f504dfdb8c5f43806ffcd1ef35f61..b56670a4e68aaf2aa6649a585a0031854d2d73ed 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_support.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_support.js
@@ -213,6 +213,10 @@ function MultiPointerTypeTest(testName, types) {
this.createNextTest();
}
+MultiPointerTypeTest.prototype.step = function(op) {
+ this.currentTest.step(op);
+}
+
MultiPointerTypeTest.prototype.skip = function() {
var prevTest = this.currentTest;
this.createNextTest();
@@ -220,10 +224,12 @@ MultiPointerTypeTest.prototype.skip = function() {
}
MultiPointerTypeTest.prototype.done = function() {
- var prevTest = this.currentTest;
- this.createNextTest();
- if (prevTest != null)
- prevTest.done();
+ if (this.currentTest.status != 1) {
+ var prevTest = this.currentTest;
+ this.createNextTest();
+ if (prevTest != null)
+ prevTest.done();
+ }
}
MultiPointerTypeTest.prototype.step = function(stepFunction) {
@@ -243,7 +249,6 @@ MultiPointerTypeTest.prototype.createNextTest = function() {
resetTestState();
}
-
function setup_pointerevent_test(testName, supportedPointerTypes) {
return globalPointerEventTest = new MultiPointerTypeTest(testName, supportedPointerTypes);
}

Powered by Google App Engine
This is Rietveld 408576698