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

Side by Side Diff: chrome/test/functional/nacl_sdk.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 copy 6 import copy
7 import ctypes 7 import ctypes
8 from distutils import version 8 from distutils import version
9 import fnmatch 9 import fnmatch
10 import glob 10 import glob
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 self._CheckForCrashes() 256 self._CheckForCrashes()
257 257
258 # Verify all examples are working. 258 # Verify all examples are working.
259 for name, url in examples: 259 for name, url in examples:
260 self._VerifyAnExample(name, url, example_verify_funcs[name]) 260 self._VerifyAnExample(name, url, example_verify_funcs[name])
261 self._CheckForCrashes() 261 self._CheckForCrashes()
262 262
263 # Close each tab and check for crashes. 263 # Close each tab and check for crashes.
264 tab_count = self.GetTabCount() 264 tab_count = self.GetTabCount()
265 for index in xrange(tab_count - 1, 0, -1): 265 for index in xrange(tab_count - 1, 0, -1):
266 self.GetBrowserWindow(0).GetTab(index).Close(True) 266 self.CloseTab(index, 0)
267 self._CheckForCrashes() 267 self._CheckForCrashes()
268 268
269 def _VerifyAnExample(self, name, url, verify_func): 269 def _VerifyAnExample(self, name, url, verify_func):
270 """Verify NaCl example is working. 270 """Verify NaCl example is working.
271 271
272 Args: 272 Args:
273 name: A string name of the example. 273 name: A string name of the example.
274 url: A string url of the example. 274 url: A string url of the example.
275 verify_func: The function to verify the example. 275 verify_func: The function to verify the example.
276 Takes (tab_index, name, url) as parameters. 276 Takes (tab_index, name, url) as parameters.
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 """ 787 """
788 extra_chrome_flags = [ 788 extra_chrome_flags = [
789 '--enable-nacl', 789 '--enable-nacl',
790 '--enable-nacl-exception-handling', 790 '--enable-nacl-exception-handling',
791 '--nacl-gdb', 791 '--nacl-gdb',
792 ] 792 ]
793 return pyauto.PyUITest.ExtraChromeFlags(self) + extra_chrome_flags 793 return pyauto.PyUITest.ExtraChromeFlags(self) + extra_chrome_flags
794 794
795 if __name__ == '__main__': 795 if __name__ == '__main__':
796 pyauto_functional.Main() 796 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698