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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 callbackPass(function(result) { | 317 callbackPass(function(result) { |
318 assertEq({ | 318 assertEq({ |
319 "Connectable": true, | 319 "Connectable": true, |
320 "ConnectionState": "NotConnected", | 320 "ConnectionState": "NotConnected", |
321 "GUID": "stub_wifi2", | 321 "GUID": "stub_wifi2", |
322 "Name": { | 322 "Name": { |
323 "Active": "wifi2_PSK", | 323 "Active": "wifi2_PSK", |
324 "Effective": "UserPolicy", | 324 "Effective": "UserPolicy", |
325 "UserPolicy": "My WiFi Network" | 325 "UserPolicy": "My WiFi Network" |
326 }, | 326 }, |
| 327 "Source": "UserPolicy", |
327 "Type": { | 328 "Type": { |
328 "Active": "WiFi", | 329 "Active": "WiFi", |
329 "Effective": "UserPolicy", | 330 "Effective": "UserPolicy", |
330 "UserPolicy": "WiFi" | 331 "UserPolicy": "WiFi" |
331 }, | 332 }, |
332 "WiFi": { | 333 "WiFi": { |
333 "AutoConnect": { | 334 "AutoConnect": { |
334 "Active": false, | 335 "Active": false, |
335 "UserEditable": true | 336 "UserEditable": true |
336 }, | 337 }, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 new privateHelpers.watchForCaptivePortalState( | 494 new privateHelpers.watchForCaptivePortalState( |
494 'wifi_guid', 'Online', done); | 495 'wifi_guid', 'Online', done); |
495 chrome.test.sendMessage('notifyPortalDetectorObservers'); | 496 chrome.test.sendMessage('notifyPortalDetectorObservers'); |
496 }, | 497 }, |
497 ]; | 498 ]; |
498 | 499 |
499 var testToRun = window.location.search.substring(1); | 500 var testToRun = window.location.search.substring(1); |
500 chrome.test.runTests(availableTests.filter(function(op) { | 501 chrome.test.runTests(availableTests.filter(function(op) { |
501 return op.name == testToRun; | 502 return op.name == testToRun; |
502 })); | 503 })); |
OLD | NEW |