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); |
} |
}); |