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

Side by Side Diff: chrome/test/functional/test_basic.py

Issue 10692067: Convert PyAuto's NavigateToURL, GetActiveTabIndex, Refresh, RefreshActiveTab, and AppendTab to the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed GetActiveTabIndex from the SWIG interface file. Created 8 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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()
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698