Chromium Code Reviews| 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(); |