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

Unified Diff: chrome/renderer/resources/extensions/test_custom_bindings.js

Issue 23478003: Check and canonicalize CSS selectors before registering PageStateMatchers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: chrome/renderer/resources/extensions/test_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/test_custom_bindings.js b/chrome/renderer/resources/extensions/test_custom_bindings.js
index cc2681e8683e3a9be957e7001dc271efdb35ca60..080714b57deb58ec073e889dd6a614880c432674 100644
--- a/chrome/renderer/resources/extensions/test_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/test_custom_bindings.js
@@ -235,7 +235,7 @@ binding.registerCustomHook(function(api) {
fn.apply(self, args);
chromeTest.fail('Did not throw error: ' + fn);
} catch (e) {
- if (message !== undefined)
+ if (e !== failureException && message !== undefined)
Jeffrey Yasskin 2013/08/26 22:35:19 This is a drive-by fix to improve test failure mes
not at google - send to devlin 2013/08/27 01:46:14 All this !== comparing to failureException is rath
Jeffrey Yasskin 2013/08/29 03:39:39 Do you object to the !==, or is it ok to be consis
not at google - send to devlin 2013/08/29 15:20:25 Yeah, use != rather than !==. This file is inconsi
Jeffrey Yasskin 2013/08/29 21:46:43 Done.
chromeTest.assertEq(message, e.message);
}
});

Powered by Google App Engine
This is Rietveld 408576698