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

Side by Side Diff: tools/perf/core/stacktrace_unittest.py

Issue 1615173003: Reland mac symbol test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert desktop_browser_backend.py Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 4
5 from telemetry.core import exceptions 5 from telemetry.core import exceptions
6 from telemetry import decorators 6 from telemetry import decorators
7 from telemetry.testing import tab_test_case 7 from telemetry.testing import tab_test_case
8 8
9 class TabStackTraceTest(tab_test_case.TabTestCase): 9 class TabStackTraceTest(tab_test_case.TabTestCase):
10 10
11 # For now just work on a single platform (mac). 11 # For now just work on a single platform (mac).
12 @decorators.Enabled('mac') 12 @decorators.Enabled('mac')
13 # Stack traces do not currently work on 10.6, but they are also being 13 # Stack traces do not currently work on 10.6, but they are also being
14 # disabled shortly so just disable it for now. 14 # disabled shortly so just disable it for now.
15 @decorators.Disabled('snowleopard') 15 @decorators.Disabled('snowleopard')
16 def testStackTrace(self): 16 def testStackTrace(self):
17 try: 17 try:
18 self._tab.Navigate('chrome://crash', timeout=5) 18 self._tab.Navigate('chrome://crash', timeout=5)
19 except exceptions.DevtoolsTargetCrashException as e: 19 except exceptions.DevtoolsTargetCrashException as e:
20 self.assertIn('Thread 0 (crashed)', '\n'.join(e.stack_trace)) 20 self.assertIn('Thread 0 (crashed)', '\n'.join(e.stack_trace))
21 21
22 # Currently stack traces do not work on windows: http://crbug.com/476110 22 # Currently stack traces do not work on windows: http://crbug.com/476110
23 # Currently symbols do not work on swarming: http://crbug.com/563716
24 # Linux stack traces depends on fission support: http://crbug.com/405623 23 # Linux stack traces depends on fission support: http://crbug.com/405623
25 @decorators.Disabled('all') 24 @decorators.Enabled('mac')
25 @decorators.Disabled('snowleopard')
26 def testCrashSymbols(self): 26 def testCrashSymbols(self):
27 try: 27 try:
28 self._tab.Navigate('chrome://crash', timeout=5) 28 self._tab.Navigate('chrome://crash', timeout=5)
29 except exceptions.DevtoolsTargetCrashException as e: 29 except exceptions.DevtoolsTargetCrashException as e:
30 self.assertIn('CrashIntentionally', '\n'.join(e.stack_trace)) 30 self.assertIn('CrashIntentionally', '\n'.join(e.stack_trace))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698