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) |