OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 | 4 |
5 from telemetry import decorators | 5 from telemetry import decorators |
6 from telemetry.internal.actions import action_runner as action_runner_module | 6 from telemetry.internal.actions import action_runner as action_runner_module |
7 from telemetry.testing import tab_test_case | 7 from telemetry.testing import tab_test_case |
8 | 8 |
9 | 9 |
10 class AndroidActionRunnerInteractionTest(tab_test_case.TabTestCase): | 10 class AndroidActionRunnerInteractionTest(tab_test_case.TabTestCase): |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 action_runner = action_runner_module.ActionRunner(self._tab, | 65 action_runner = action_runner_module.ActionRunner(self._tab, |
66 skip_waits=True) | 66 skip_waits=True) |
67 platform = action_runner.tab.browser.platform | 67 platform = action_runner.tab.browser.platform |
68 platform.android_action_runner.InputText('Input spaces') | 68 platform.android_action_runner.InputText('Input spaces') |
69 platform.android_action_runner.InputText(', even multiple spaces') | 69 platform.android_action_runner.InputText(', even multiple spaces') |
70 | 70 |
71 # Check that the contents of the textarea is correct. It might take some | 71 # Check that the contents of the textarea is correct. It might take some |
72 # time until keystrokes are handled on Android. | 72 # time until keystrokes are handled on Android. |
73 self._tab.WaitForJavaScriptCondition( | 73 self._tab.WaitForJavaScriptCondition( |
74 ('document.querySelector("textarea").value === ' | 74 ('document.querySelector("textarea").value === '\ |
75 '"Input spaces, even multiple spaces"'), | 75 '"Input spaces, even multiple spaces"'), |
76 timeout=5) | 76 timeout=5) |
OLD | NEW |