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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js

Issue 2456773002: Clear the custom element's reaction queue if upgrade fails. (Closed)
Patch Set: Created 4 years, 2 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/custom-elements/spec/resources/custom-elements-helpers.js
diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js b/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js
index 50fe9722bcf7216a69e1243fe57c666f01e4720d..44871eebc43604f643334e41d47565b3f60a97e3 100644
--- a/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js
+++ b/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js
@@ -65,7 +65,7 @@ function assert_reports(w, expected_error, func, description) {
} finally {
w.onerror = old_onerror;
}
- assert_equals(1, errors.length);
+ assert_equals(errors.length, 1, 'only one error should have been reported');
// assert_throws has an error expectation matcher that can only be
// accessed by throwing the error
assert_throws(expected_error, () => { throw errors[0]; });

Powered by Google App Engine
This is Rietveld 408576698