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 5from telemetry.page.actions import navigate 6from telemetry.unittest import tab_test_case 7 8 9class 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') 16