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

Side by Side Diff: tools/telemetry/telemetry/inspector_runtime_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
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 from telemetry import inspector_runtime 4 from telemetry import inspector_runtime
5 from telemetry import tab_test_case 5 from telemetry import tab_test_case
6 6
7 class InspectorRuntimeTest(tab_test_case.TabTestCase): 7 class InspectorRuntimeTest(tab_test_case.TabTestCase):
8 def testRuntimeEvaluateSimple(self): 8 def testRuntimeEvaluateSimple(self):
9 res = self._tab.EvaluateJavaScript('1+1') 9 res = self._tab.EvaluateJavaScript('1+1')
10 assert res == 2 10 assert res == 2
(...skipping 11 matching lines...) Expand all
22 for (var i = 0; i < 1000; i++) { 22 for (var i = 0; i < 1000; i++) {
23 next = {}; 23 next = {};
24 cur.next = next; 24 cur.next = next;
25 cur = next; 25 cur = next;
26 } 26 }
27 root;""") 27 root;""")
28 self.assertRaises(inspector_runtime.EvaluateException, test) 28 self.assertRaises(inspector_runtime.EvaluateException, test)
29 29
30 def testRuntimeExecuteOfSomethingThatCantJSONize(self): 30 def testRuntimeExecuteOfSomethingThatCantJSONize(self):
31 self._tab.ExecuteJavaScript('window') 31 self._tab.ExecuteJavaScript('window')
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/inspector_runtime.py ('k') | tools/telemetry/telemetry/inspector_timeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698