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

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

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « tools/telemetry/telemetry/util.py ('k') | tools/telemetry/telemetry/wait_action.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 util 6 from telemetry import util
7 7
8 class TestWait(unittest.TestCase): 8 class TestWait(unittest.TestCase):
9 @staticmethod 9 @staticmethod
10 def testNonTimeout(): 10 def testNonTimeout():
11 def test(): 11 def test():
12 return True 12 return True
13 util.WaitFor(test, 0.1) 13 util.WaitFor(test, 0.1)
14 14
15 def testTimeout(self): 15 def testTimeout(self):
16 def test(): 16 def test():
17 return False 17 return False
18 self.assertRaises(util.TimeoutException, lambda: util.WaitFor(test, 0.1)) 18 self.assertRaises(util.TimeoutException, lambda: util.WaitFor(test, 0.1))
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/util.py ('k') | tools/telemetry/telemetry/wait_action.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698