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

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

Issue 10830193: Remove SWIGged use of BrowserProxy and TabProxy from PyAuto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 os 6 import os
7 7
8 import pyauto_functional # must be imported before pyauto 8 import pyauto_functional # must be imported before pyauto
9 9
10 import chromeos.file_browser 10 import chromeos.file_browser
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 fname)) 52 fname))
53 file_browser = self._GetFullPageFileBrowser() 53 file_browser = self._GetFullPageFileBrowser()
54 self.assertTrue(file_browser, msg='File browser failed to initialize.') 54 self.assertTrue(file_browser, msg='File browser failed to initialize.')
55 self.assertTrue(file_browser.Select(fname), 55 self.assertTrue(file_browser.Select(fname),
56 msg='"%s" does not exist.' % fname) 56 msg='"%s" does not exist.' % fname)
57 file_browser.ExecuteDefaultTask() 57 file_browser.ExecuteDefaultTask()
58 self.assertTrue(self.WaitUntil(self.GetActiveTabTitle, 58 self.assertTrue(self.WaitUntil(self.GetActiveTabTitle,
59 expect_retval=fname), 59 expect_retval=fname),
60 msg='"%s" does not open.' % fname) 60 msg='"%s" does not open.' % fname)
61 # Close the document viewing tab after use. 61 # Close the document viewing tab after use.
62 self.GetBrowserWindow(0).GetTab(1).Close(True) 62 self.CloseTab(1, 0)
63 63
64 64
65 if __name__ == '__main__': 65 if __name__ == '__main__':
66 pyauto_functional.Main() 66 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698