diff options
author | stanleyw@chromium.org <stanleyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 22:40:47 +0000 |
---|---|---|
committer | stanleyw@chromium.org <stanleyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 22:40:47 +0000 |
commit | a33d47444b116fdd63d47bb2f0712420c6345bde (patch) | |
tree | ce0e2e879ff179a841fbb3dc7c1d40753f65e1b9 /chrome/test/functional/chromeos_wifi_sanity.py | |
parent | 72e07fa93c4b41694b53ff2f10c799d8b29fadb7 (diff) | |
download | chromium_src-a33d47444b116fdd63d47bb2f0712420c6345bde.zip chromium_src-a33d47444b116fdd63d47bb2f0712420c6345bde.tar.gz chromium_src-a33d47444b116fdd63d47bb2f0712420c6345bde.tar.bz2 |
Adding more detailed checks for connecting to hidden wifi test.
Connecting to wifi networks has an additional error code ERROR_NO_ERROR
which is an empty string (This is a bug crosbug.com/21394). Even though we fail
to connect to the wifi network, the test thinks otherwise.
Test has been updated to avoid this confusion.
BUG=NONE
TEST=run testConnectToNonExistentWiFiNetwork
Change-Id: I9db8f4de5dc10e2b1ac568bd4968183c71f6a77e
Review URL: http://codereview.chromium.org/8194007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional/chromeos_wifi_sanity.py')
-rw-r--r-- | chrome/test/functional/chromeos_wifi_sanity.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/test/functional/chromeos_wifi_sanity.py b/chrome/test/functional/chromeos_wifi_sanity.py index 020f7f5..d708369 100644 --- a/chrome/test/functional/chromeos_wifi_sanity.py +++ b/chrome/test/functional/chromeos_wifi_sanity.py @@ -46,8 +46,10 @@ class ChromeosWifiSanity(chromeos_network.PyNetworkUITest): """ ssid = 'ThisIsANonExistentNetwork' error = self.ConnectToHiddenWifiNetwork(ssid, 'SECURITY_NONE') - self.assertTrue(error, msg='Device connected to a non-existent ' + self.assertTrue(error is not None, msg='Device connected to a non-existent ' 'network "%s".' % ssid) + self.assertTrue(error != '', msg='Device had a connection error but no ' + 'error message.') def testForgetWifiNetwork(self): """Basic test to verify there are no problems calling ForgetWifiNetwork.""" |