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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharness.js

Issue 1962003002: Import web-platform-tests@41d6911b288a9624c249a406b9bf51607a2dd04d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip submit-entity-body.html Created 4 years, 7 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/imported/web-platform-tests/resources/testharness.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharness.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharness.js
index b2198b0f1b2cb8170bd51ef3f82789520114a5c9..52b65ddf19c8aabe4115304bcf80f70e2cf942c1 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharness.js
@@ -540,9 +540,9 @@ policies and contribution forms [3].
});
}
- function promise_rejects(test, expected, promise) {
- return promise.then(test.unreached_func("Should have rejected.")).catch(function(e) {
- assert_throws(expected, function() { throw e });
+ function promise_rejects(test, expected, promise, description) {
+ return promise.then(test.unreached_func("Should have rejected: " + description)).catch(function(e) {
+ assert_throws(expected, function() { throw e }, description);
});
}

Powered by Google App Engine
This is Rietveld 408576698