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 efa8dc588204de440ba0f0e58c235ba89e5d5578..6af97db5dfc32e475606f5f62bba9c3c896ba37b 100644 |
--- a/chrome/test/data/extensions/api_test/networking/test.js |
+++ b/chrome/test/data/extensions/api_test/networking/test.js |
@@ -285,14 +285,19 @@ var availableTests = [ |
assertEq({ "Connectable": true, |
"ConnectionState": "Connected", |
"GUID": "stub_wifi1_guid", |
- "MacAddress": "00:11:22:AA:BB:CC", |
"IPConfigs": [{ |
"Gateway": "0.0.0.1", |
"IPAddress": "0.0.0.0", |
"RoutingPrefix": 0, |
"Type": "IPv4" |
}], |
+ "IPConfigType": "Static", |
+ "MacAddress": "00:11:22:AA:BB:CC", |
"Name": "wifi1", |
+ "StaticIPConfig": { |
+ "IPAddress": "1.2.3.4", |
+ "Type": "IPv4" |
+ }, |
"Type": "WiFi", |
"WiFi": { |
"Frequency": 2400, |
@@ -384,6 +389,10 @@ var availableTests = [ |
Priority: 1, |
WiFi: { |
AutoConnect: true |
+ }, |
+ IPConfigType: 'Static', |
pneubeck (no reviews)
2014/12/05 09:47:46
should this have been 'DHCP' to test that case als
stevenjb
2015/01/08 00:44:39
The above tests getting, this tests setting. The S
|
+ StaticIPConfig: { |
+ IPAddress: '1.2.3.4' |
} |
}; |
chrome.networkingPrivate.setProperties( |
@@ -393,13 +402,16 @@ var availableTests = [ |
chrome.networkingPrivate.getProperties( |
network_guid, |
callbackPass(function(result) { |
+ // Ensure that the GUID doesn't change. |
+ assertEq(network_guid, result.GUID); |
// Ensure that the properties were set. |
assertEq(1, result['Priority']); |
assertTrue('WiFi' in result); |
assertTrue('AutoConnect' in result['WiFi']); |
assertEq(true, result['WiFi']['AutoConnect']); |
- // Ensure that the GUID doesn't change. |
- assertEq(network_guid, result.GUID); |
+ assertTrue('StaticIPConfig' in result); |
+ assertEq('1.2.3.4', |
+ result['StaticIPConfig']['IPAddress']); |
done(); |
})); |
})); |
@@ -425,7 +437,6 @@ var availableTests = [ |
chrome.networkingPrivate.getProperties( |
network_guid, |
callbackPass(function(result) { |
- console.log('Result: ' + JSON.stringify(result)); |
// Ensure that the properties were set. |
assertEq(1, result['Priority']); |
assertTrue('VPN' in result); |