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

Unified Diff: third_party/WebKit/LayoutTests/resources/js-test.js

Issue 2487443002: Raise timeouts on smooth scroll layout tests. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/resources/js-test.js
diff --git a/third_party/WebKit/LayoutTests/resources/js-test.js b/third_party/WebKit/LayoutTests/resources/js-test.js
index 77b85c369afad00928e5247f88baeb045c307412..9483c358c28ca4bd0d139f98aa8e78b366679191 100644
--- a/third_party/WebKit/LayoutTests/resources/js-test.js
+++ b/third_party/WebKit/LayoutTests/resources/js-test.js
@@ -15,10 +15,10 @@ if (self.testRunner) {
var isJsTest = true;
var description, debug, successfullyParsed, getOrCreateTestElement;
-
var expectingError; // set by shouldHaveError()
var expectedErrorMessage; // set by onerror when expectingError is true
var unexpectedErrorMessage; // set by onerror when expectingError is not true
+var defaultTimeoutForShouldBecome = self.defaultTimeoutForShouldBecome || 500;
(function() {
@@ -280,7 +280,7 @@ function shouldBecomeEqual(_a, _b, _completionHandler, _timeout)
debug("WARN: shouldBecomeEqual() expects string arguments");
if (_timeout === undefined)
- _timeout = 500;
+ _timeout = defaultTimeoutForShouldBecome;
var _bv;
var _condition = function() {
@@ -413,7 +413,7 @@ function shouldBecomeDifferent(_a, _b, _completionHandler, _timeout)
if (typeof _a != "string" || typeof _b != "string")
debug("WARN: shouldBecomeDifferent() expects string arguments");
if (_timeout === undefined)
- _timeout = 500;
+ _timeout = defaultTimeoutForShouldBecome;
var _bv;
var _condition = function() {

Powered by Google App Engine
This is Rietveld 408576698