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

Side by Side Diff: chrome/test/data/extensions/api_test/networking/test.js

Issue 571123002: Fix some properties on the settings page read from ONC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var callbackPass = chrome.test.callbackPass; 5 var callbackPass = chrome.test.callbackPass;
6 var callbackFail = chrome.test.callbackFail; 6 var callbackFail = chrome.test.callbackFail;
7 var assertTrue = chrome.test.assertTrue; 7 var assertTrue = chrome.test.assertTrue;
8 var assertFalse = chrome.test.assertFalse; 8 var assertFalse = chrome.test.assertFalse;
9 var assertEq = chrome.test.assertEq; 9 var assertEq = chrome.test.assertEq;
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 }, result); 289 }, result);
290 })); 290 }));
291 }, 291 },
292 function getPropertiesCellular() { 292 function getPropertiesCellular() {
293 chrome.networkingPrivate.getProperties( 293 chrome.networkingPrivate.getProperties(
294 "stub_cellular1_guid", 294 "stub_cellular1_guid",
295 callbackPass(function(result) { 295 callbackPass(function(result) {
296 assertEq({ "Cellular": { 296 assertEq({ "Cellular": {
297 "ActivationState": "NotActivated", 297 "ActivationState": "NotActivated",
298 "AllowRoaming": false, 298 "AllowRoaming": false,
299 "AutoConnect": true,
299 "Carrier": "Cellular1_Carrier", 300 "Carrier": "Cellular1_Carrier",
300 "HomeProvider": { 301 "HomeProvider": {
301 "country": "us", 302 "country": "us",
302 "name": "Cellular1_Provider" 303 "name": "Cellular1_Provider"
303 }, 304 },
304 "NetworkTechnology": "GSM", 305 "NetworkTechnology": "GSM",
305 "RoamingState": "Home" 306 "RoamingState": "Home"
306 }, 307 },
307 "ConnectionState": "NotConnected", 308 "ConnectionState": "NotConnected",
308 "GUID": "stub_cellular1_guid", 309 "GUID": "stub_cellular1_guid",
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 new privateHelpers.watchForCaptivePortalState( 495 new privateHelpers.watchForCaptivePortalState(
495 'wifi_guid', 'Online', done); 496 'wifi_guid', 'Online', done);
496 chrome.test.sendMessage('notifyPortalDetectorObservers'); 497 chrome.test.sendMessage('notifyPortalDetectorObservers');
497 }, 498 },
498 ]; 499 ];
499 500
500 var testToRun = window.location.search.substring(1); 501 var testToRun = window.location.search.substring(1);
501 chrome.test.runTests(availableTests.filter(function(op) { 502 chrome.test.runTests(availableTests.filter(function(op) {
502 return op.name == testToRun; 503 return op.name == testToRun;
503 })); 504 }));
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/internet_detail.js ('k') | chromeos/network/onc/onc_signature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698