Index: chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js |
diff --git a/chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js b/chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js |
index c0c65505e522aef830ab6b16686905af28799053..58acb6351d9ac5ced5d008989239901f6bbe520b 100644 |
--- a/chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js |
+++ b/chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js |
@@ -6,7 +6,8 @@ function createTestFunction(expected_message) { |
return function(tab) { |
function onDebuggerEvent(debuggee, method, params) { |
if (debuggee.tabId == tab.id && method == 'Runtime.exceptionThrown') { |
- if (params.exception.value.indexOf(expected_message) > -1) { |
+ var exception = params.exceptionDetails.exception; |
+ if (exception.value.indexOf(expected_message) > -1) { |
chrome.debugger.onEvent.removeListener(onDebuggerEvent); |
chrome.test.succeed(); |
} |