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

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

Issue 14301016: Fix a couple of bugs relating to sending Tab info with chrome.runtime.connect and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add key to app1/manifest.json Created 7 years, 8 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 a878c0669e96538b194e18e0eae90388d21d9d4e..d46d5ebfe543813c84c57f0e5a7700c740f7d0ab 100644
--- a/chrome/renderer/resources/extensions/test_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/test_custom_bindings.js
@@ -11,6 +11,7 @@ var chrome = requireNative('chrome').GetChrome();
var GetExtensionAPIDefinitions =
requireNative('apiDefinitions').GetExtensionAPIDefinitions;
var GetAvailability = requireNative('v8_context').GetAvailability;
+var json = require('json');
binding.registerCustomHook(function(api) {
var chromeTest = api.compiledApi;
@@ -181,8 +182,8 @@ binding.registerCustomHook(function(api) {
if (typeof(expected) == 'object') {
if (!chromeTest.checkDeepEq(expected, actual)) {
chromeTest.fail(error_msg +
- "\nActual: " + JSON.stringify(actual) +
- "\nExpected: " + JSON.stringify(expected));
+ "\nActual: " + json.stringify(actual) +
+ "\nExpected: " + json.stringify(expected));
}
return;
}

Powered by Google App Engine
This is Rietveld 408576698