OLD | NEW |
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 Loading... |
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 Loading... |
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 })); |
OLD | NEW |