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

Side by Side Diff: tools/telemetry/telemetry/click_element_action_unittest.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import os 4 import os
5 5
6 from telemetry import click_element_action 6 from telemetry import click_element_action
7 from telemetry import tab_test_case 7 from telemetry import tab_test_case
8 8
9 class ClickElementActionTest(tab_test_case.TabTestCase): 9 class ClickElementActionTest(tab_test_case.TabTestCase):
10 def testClickWithSelectorWaitForNavigation(self): 10 def testClickWithSelectorWaitForNavigation(self):
(...skipping 26 matching lines...) Expand all
37 self._tab.EvaluateJavaScript('document.location.pathname;'), 37 self._tab.EvaluateJavaScript('document.location.pathname;'),
38 '/page_with_link.html') 38 '/page_with_link.html')
39 39
40 data = {'text': 'Click me', 'wait_for_href_change': True} 40 data = {'text': 'Click me', 'wait_for_href_change': True}
41 i = click_element_action.ClickElementAction(data) 41 i = click_element_action.ClickElementAction(data)
42 i.RunAction(None, self._tab, None) 42 i.RunAction(None, self._tab, None)
43 43
44 self.assertEquals( 44 self.assertEquals(
45 self._tab.EvaluateJavaScript('document.location.pathname;'), 45 self._tab.EvaluateJavaScript('document.location.pathname;'),
46 '/blank.html') 46 '/blank.html')
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/click_element_action.py ('k') | tools/telemetry/telemetry/compound_action.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698