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

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

Issue 694533007: Add 'setProperties' to InternetOptionsHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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
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 c3e8b622e658be9e776d70fe357f463940353040..99c528d9db32a670662e8c5975a4adb1422d3377 100644
--- a/chrome/test/data/extensions/api_test/networking/test.js
+++ b/chrome/test/data/extensions/api_test/networking/test.js
@@ -380,16 +380,21 @@ var availableTests = [
network_guid,
callbackPass(function(result) {
assertEq(network_guid, result.GUID);
- result.WiFi.Security = "WEP-PSK";
+ var new_properties = {};
pneubeck (no reviews) 2014/11/13 17:38:56 wouldn't var new_properties = { Priority: 1, W
stevenjb 2014/11/13 22:25:41 Yeah, probably. What can i say, I'm still a C++ pr
pneubeck (no reviews) 2014/11/14 08:17:02 :-)
+ new_properties['Priority'] = 1;
+ var wifi = {};
+ wifi['AutoConnect']= true;
+ new_properties['WiFi'] = wifi;
chrome.networkingPrivate.setProperties(
network_guid,
- result,
+ new_properties,
callbackPass(function() {
chrome.networkingPrivate.getProperties(
network_guid,
callbackPass(function(result) {
- // Ensure that the property was set.
- assertEq("WEP-PSK", result.WiFi.Security);
+ // Ensure that the properties were set.
+ assertEq(1, result['Priority']);
+ assertEq(true, result['WiFi']['AutoConnect']);
// Ensure that the GUID doesn't change.
assertEq(network_guid, result.GUID);
done();

Powered by Google App Engine
This is Rietveld 408576698