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

Side by Side Diff: tools/telemetry/telemetry/tab_test_case.py

Issue 11360172: Added Tab.SnapshotContent and MapsGL example to telemetry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing feedback, moved maps test to different CL Created 8 years, 1 month 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import unittest 4 import unittest
5 5
6 from telemetry import browser_finder 6 from telemetry import browser_finder
7 from telemetry import options_for_unittests 7 from telemetry import options_for_unittests
8 8
9 class TabTestCase(unittest.TestCase): 9 class TabTestCase(unittest.TestCase):
10 def setUp(self): 10 def setUp(self):
11 self._browser = None 11 self._browser = None
12 self._tab = None 12 self._tab = None
13 options = options_for_unittests.Get() 13 options = options_for_unittests.Get()
14 options.extra_browser_args.append('--enable-gpu-benchmarking')
nduca 2012/11/12 19:53:26 dont love this.... can you make the specific scree
14 browser_to_create = browser_finder.FindBrowser(options) 15 browser_to_create = browser_finder.FindBrowser(options)
15 if not browser_to_create: 16 if not browser_to_create:
16 raise Exception('No browser found, cannot continue test.') 17 raise Exception('No browser found, cannot continue test.')
17 try: 18 try:
18 self._browser = browser_to_create.Create() 19 self._browser = browser_to_create.Create()
19 self._tab = self._browser.ConnectToNthTab(0) 20 self._tab = self._browser.ConnectToNthTab(0)
20 except: 21 except:
21 self.tearDown() 22 self.tearDown()
22 raise 23 raise
23 24
24 def tearDown(self): 25 def tearDown(self):
25 if self._tab: 26 if self._tab:
26 self._tab.Close() 27 self._tab.Close()
27 if self._browser: 28 if self._browser:
28 self._browser.Close() 29 self._browser.Close()
29 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698