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

Unified Diff: tools/telemetry/telemetry/page/actions/navigate_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/page/actions/navigate_unittest.py
diff --git a/tools/telemetry/telemetry/page/actions/navigate_unittest.py b/tools/telemetry/telemetry/page/actions/navigate_unittest.py
index 1adf152ef54300a7373ac58ad101d5e752b310b7..6e322fd307f26b8ebc2a1c3a05e8aaa3cfaffe7e 100644
--- a/tools/telemetry/telemetry/page/actions/navigate_unittest.py
+++ b/tools/telemetry/telemetry/page/actions/navigate_unittest.py
@@ -2,25 +2,20 @@
# 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.page import page as page_module
from telemetry.page.actions import navigate
from telemetry.unittest import tab_test_case
-from telemetry.unittest import test
class NavigateActionTest(tab_test_case.TabTestCase):
def CreatePageFromUnittestDataDir(self, filename):
- self._browser.SetHTTPServerDirectories(util.GetUnittestDataDir())
+ self.Navigate(filename)
return page_module.Page(
- self._browser.http_server.UrlOf(filename),
+ self._browser.http_server.UrlOf(self.test_file_path),
None # In this test, we don't need a page set.
)
- @test.Disabled('chromeos')
def testNavigateAction(self):
- self._browser.SetHTTPServerDirectories(util.GetUnittestDataDir())
-
page = self.CreatePageFromUnittestDataDir('blank.html')
i = navigate.NavigateAction()
i.RunAction(page, self._tab, None)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/loop_unittest.py ('k') | tools/telemetry/telemetry/page/actions/play_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698