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

Side by Side Diff: tools/telemetry/telemetry/inspector_timeline_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 import os 4 import os
5 import unittest 5 import unittest
6 6
7 from telemetry import tab_test_case 7 from telemetry import tab_test_case
8 from telemetry import util 8 from telemetry import util
9 from telemetry.inspector_timeline import InspectorTimeline 9 from telemetry.inspector_timeline import InspectorTimeline
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 self._tab.ExecuteJavaScript( 116 self._tab.ExecuteJavaScript(
117 """ 117 """
118 var done = false; 118 var done = false;
119 window.webkitRequestAnimationFrame(function() { done = true; }); 119 window.webkitRequestAnimationFrame(function() { done = true; });
120 """) 120 """)
121 self._WaitForAnimationFrame() 121 self._WaitForAnimationFrame()
122 122
123 r = self._tab.timeline_model.GetAllOfName('FireAnimationFrame') 123 r = self._tab.timeline_model.GetAllOfName('FireAnimationFrame')
124 self.assertTrue(len(r) > 0) 124 self.assertTrue(len(r) > 0)
125 self.assertTrue(r[0].duration_ms > 0) 125 self.assertTrue(r[0].duration_ms > 0)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/inspector_timeline.py ('k') | tools/telemetry/telemetry/multi_page_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698