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

Unified Diff: tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py
diff --git a/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py b/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py
deleted file mode 100644
index 18fa3b1889a8e2498be97897a124dc1fdb524247..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 2013 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.
-
-import re
-import StringIO
-
-from telemetry.core import util
-from telemetry.testing import tab_test_case
-
-
-class TabConsoleTest(tab_test_case.TabTestCase):
- def testConsoleOutputStream(self):
- stream = StringIO.StringIO()
- self._tab.message_output_stream = stream
-
- self.Navigate('page_that_logs_to_console.html')
-
- initial = self._tab.EvaluateJavaScript('window.__logCount')
- def GotLog():
- current = self._tab.EvaluateJavaScript('window.__logCount')
- return current > initial
- util.WaitFor(GotLog, 5)
-
- lines = [l for l in stream.getvalue().split('\n') if len(l)]
-
- self.assertTrue(len(lines) >= 1)
- for line in lines:
- prefix = 'http://(.+)/page_that_logs_to_console.html:9'
- expected_line = 'At %s: Hello, world' % prefix
- self.assertTrue(re.match(expected_line, line))

Powered by Google App Engine
This is Rietveld 408576698