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

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

Issue 2272503002: [DevTools] Protocol version 1.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more experimental Created 4 years, 4 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 | « no previous file | chrome/test/data/extensions/api_test/debugger_extension/background.js » ('j') | 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 0ef1d71ee4150d8bc7f6df3a6ca545d1efe70ed6..7459fd7f4ec07a566ccfd6c8a30e4ff0359673cf 100644
--- a/chrome/test/data/extensions/api_test/debugger/background.js
+++ b/chrome/test/data/extensions/api_test/debugger/background.js
@@ -7,8 +7,10 @@ var fail = chrome.test.callbackFail;
var tabId;
var debuggee;
-var protocolVersion = "1.1";
-var protocolPreviousVersion = "1.0";
+var protocolVersion = "1.2";
+var protocolPreviousVersion = "1.1";
+var unsupportedMinorProtocolVersion = "1.5";
+var unsupportedMajorProtocolVersion = "100.0";
var SILENT_FLAG_REQUIRED = "Cannot attach to this target unless " +
"'silent-debugger-extension-api' flag is enabled.";
@@ -24,15 +26,17 @@ chrome.test.runTests([
function attachUnsupportedMinorVersion() {
chrome.tabs.getSelected(null, function(tab) {
- chrome.debugger.attach({tabId: tab.id}, "1.5",
- fail("Requested protocol version is not supported: 1.5."));
+ chrome.debugger.attach({tabId: tab.id}, unsupportedMinorProtocolVersion,
+ fail("Requested protocol version is not supported: " +
+ unsupportedMinorProtocolVersion + "."));
});
},
function attachUnsupportedVersion() {
chrome.tabs.getSelected(null, function(tab) {
- chrome.debugger.attach({tabId: tab.id}, "100.0",
- fail("Requested protocol version is not supported: 100.0."));
+ chrome.debugger.attach({tabId: tab.id}, unsupportedMajorProtocolVersion,
+ fail("Requested protocol version is not supported: " +
+ unsupportedMajorProtocolVersion + "."));
});
},
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/debugger_extension/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698