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

Unified Diff: chrome/test/data/extensions/api_test/networking/test.js

Issue 14566009: Add NetworkConnectionHandler class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert Associating Stub change for test Created 7 years, 7 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/chrome_browser_chromeos.gypi ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/networking/test.js
diff --git a/chrome/test/data/extensions/api_test/networking/test.js b/chrome/test/data/extensions/api_test/networking/test.js
index 609ae86fc1ed9935dd42ad734e789cd2012402ce..36940fc39245362604bf817b4cd0f23215532dbf 100644
--- a/chrome/test/data/extensions/api_test/networking/test.js
+++ b/chrome/test/data/extensions/api_test/networking/test.js
@@ -60,17 +60,21 @@ var availableTests = [
chrome.networkingPrivate.startConnect("stub_wifi2", callbackPass());
},
function startDisconnect() {
- chrome.networkingPrivate.startDisconnect("stub_wifi2", callbackPass());
+ // Must connect to a network before we can disconnect from it.
+ chrome.networkingPrivate.startConnect("stub_wifi2", callbackPass(
+ function() {
+ chrome.networkingPrivate.startDisconnect("stub_wifi2", callbackPass());
+ }));
},
function startConnectNonexistent() {
chrome.networkingPrivate.startConnect(
"nonexistent_path",
- callbackFail("Error.InvalidService"));
+ callbackFail("not-found"));
},
function startDisconnectNonexistent() {
chrome.networkingPrivate.startDisconnect(
"nonexistent_path",
- callbackFail("Error.InvalidService"));
+ callbackFail("not-found"));
},
function startGetPropertiesNonexistent() {
chrome.networkingPrivate.getProperties(
@@ -276,7 +280,7 @@ var availableTests = [
function onNetworksChangedEventConnect() {
var network = "stub_wifi2";
var done = chrome.test.callbackAdded();
- var expectedStates = ["Connected", "Connecting"];
+ var expectedStates = ["Connected"];
var listener =
new privateHelpers.watchForStateChanges(network, expectedStates, done);
chrome.networkingPrivate.startConnect(network, callbackPass());
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698