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

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

Issue 552113002: Add ONC 'Source' configuration property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9a
Patch Set: Rebase 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698