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

Unified Diff: tools/telemetry/telemetry/core/chrome/inspector_timeline_unittest.py

Issue 23072018: [telemetry] Move telemetry/core/chrome/ to telemetry/core/backends/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix perf smoothness_unittest. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/chrome/inspector_timeline_unittest.py
diff --git a/tools/telemetry/telemetry/core/chrome/inspector_timeline_unittest.py b/tools/telemetry/telemetry/core/chrome/inspector_timeline_unittest.py
deleted file mode 100644
index 67c61374cef474c7be92de3ec4bef836421359b2..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/chrome/inspector_timeline_unittest.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from telemetry.core import util
-from telemetry.core.chrome import inspector_timeline
-from telemetry.unittest import tab_test_case
-
-class InspectorTimelineTabTest(tab_test_case.TabTestCase):
- def _StartServer(self):
- self._browser.SetHTTPServerDirectories(util.GetUnittestDataDir())
-
- def _WaitForAnimationFrame(self):
- def _IsDone():
- js_is_done = """done"""
- return bool(self._tab.EvaluateJavaScript(js_is_done))
- util.WaitFor(_IsDone, 5)
-
- def testGotTimeline(self):
- with inspector_timeline.InspectorTimeline.Recorder(self._tab):
- self._tab.ExecuteJavaScript(
-"""
-var done = false;
-function sleep(ms) {
- var endTime = (new Date().getTime()) + ms;
- while ((new Date().getTime()) < endTime);
-}
-window.webkitRequestAnimationFrame(function() { sleep(10); done = true; });
-""")
- self._WaitForAnimationFrame()
-
- r = self._tab.timeline_model.GetAllEventsOfName('FireAnimationFrame')
- self.assertTrue(len(r) > 0)
- self.assertTrue(r[0].duration > 0)

Powered by Google App Engine
This is Rietveld 408576698