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

Unified Diff: chrome/test/data/extensions/api_test/debugger/background.js

Issue 10947037: DevTools: provide the debugger detach reason in chrome.debugger.onDetach extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments addressed. Created 8 years, 3 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
« no previous file with comments | « chrome/common/extensions/api/debugger.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/debugger/background.js
diff --git a/chrome/test/data/extensions/api_test/debugger/background.js b/chrome/test/data/extensions/api_test/debugger/background.js
index 06f3b7df4150efb99164d8a1e8e0373d137a926e..2711837b4d5d5a28a19e01834cb3f132651a826a 100644
--- a/chrome/test/data/extensions/api_test/debugger/background.js
+++ b/chrome/test/data/extensions/api_test/debugger/background.js
@@ -69,8 +69,9 @@ chrome.test.runTests([
function closeTab() {
chrome.tabs.create({url:"inspected.html"}, function(tab) {
- function onDetach(debuggee) {
+ function onDetach(debuggee, reason) {
chrome.test.assertEq(tab.id, debuggee.tabId);
+ chrome.test.assertEq("target_closed", reason);
chrome.debugger.onDetach.removeListener(onDetach);
chrome.test.succeed();
}
« no previous file with comments | « chrome/common/extensions/api/debugger.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698