Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / page / actions / navigate_unittest.py
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from telemetry.page.actions import navigate
6 from telemetry.unittest import tab_test_case
7
8
9 class NavigateActionTest(tab_test_case.TabTestCase):
10   def testNavigateAction(self):
11     i = navigate.NavigateAction(url=self.UrlOfUnittestFile('blank.html'))
12     i.RunAction(self._tab)
13     self.assertEquals(
14         self._tab.EvaluateJavaScript('document.location.pathname;'),
15         '/blank.html')