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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py

Issue 151003003: Fix navigation to unittest files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert changes in memory_cache_http_unittest.py Created 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py b/tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
index a87722da94cb9f16d9f6627e7a2ceddafb80f9a8..41e0541619b7bf9330596a54251cb01810249d2b 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
@@ -2,25 +2,18 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from telemetry import test
-from telemetry.core import util
from telemetry.unittest import tab_test_case
class InspectorMemoryTest(tab_test_case.TabTestCase):
- @test.Disabled('chromeos')
def testGetDOMStats(self):
- self._browser.SetHTTPServerDirectories(util.GetUnittestDataDir())
-
# Due to an issue with CrOS, we create a new tab here rather than
- # using self._tab to get a consistent starting page on all platforms
- tab = self._browser.tabs.New()
+ # using the existing tab to get a consistent starting page on all platforms.
+ self._tab = self._browser.tabs.New()
- tab.Navigate(
- self._browser.http_server.UrlOf('dom_counter_sample.html'))
- tab.WaitForDocumentReadyStateToBeComplete()
+ self.Navigate('dom_counter_sample.html')
- counts = tab.dom_stats
+ counts = self._tab.dom_stats
self.assertEqual(counts['document_count'], 2)
self.assertEqual(counts['node_count'], 18)
self.assertEqual(counts['event_listener_count'], 2)

Powered by Google App Engine
This is Rietveld 408576698