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