OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import unittest | 6 import unittest |
7 | 7 |
8 import pyauto_functional | 8 import pyauto_functional |
9 import pyauto | 9 import pyauto |
10 | 10 |
11 | 11 |
12 class SimpleTest(pyauto.PyUITest): | 12 class SimpleTest(pyauto.PyUITest): |
13 | 13 |
14 def testCanOpenGoogle(self): | 14 def testCanOpenGoogle(self): |
15 """Navigate to Google.""" | 15 """Navigate to Google.""" |
16 self.NavigateToURL('http://www.google.com') | 16 self.NavigateToURL('http://www.google.com') |
17 | 17 |
18 def testHTTP(self): | 18 def testHTTP(self): |
19 """Basic test over local http server.""" | 19 """Basic test over local http server.""" |
20 url = self.GetHttpURLForDataPath('english_page.html') | 20 url = self.GetHttpURLForDataPath('english_page.html') |
21 self.NavigateToURL(url) | 21 self.NavigateToURL(url) |
22 self.assertEqual('This page is in English', self.GetActiveTabTitle()) | 22 self.assertEqual('This page is in English', self.GetActiveTabTitle()) |
23 | 23 |
24 | |
dennis_jeffrey
2012/07/03 00:47:04
why was this removed?
craigdh
2012/07/03 16:48:08
Done.
| |
25 if __name__ == '__main__': | 24 if __name__ == '__main__': |
26 pyauto_functional.Main() | 25 pyauto_functional.Main() |
OLD | NEW |