OLD | NEW |
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 | 4 |
5 from telemetry import all_page_actions | 5 from telemetry import all_page_actions |
6 from telemetry import compound_action | 6 from telemetry import compound_action |
7 from telemetry import page_action | 7 from telemetry import page_action |
8 from telemetry import tab_test_case | 8 from telemetry import tab_test_case |
9 | 9 |
10 class AppendAction(page_action.PageAction): | 10 class AppendAction(page_action.PageAction): |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 { | 70 { |
71 'action': 'compound_action', | 71 'action': 'compound_action', |
72 'actions': [ | 72 'actions': [ |
73 { 'action': 'wrap_append', 'var': action_list } | 73 { 'action': 'wrap_append', 'var': action_list } |
74 ] | 74 ] |
75 } | 75 } |
76 ] | 76 ] |
77 }) | 77 }) |
78 action.RunAction(None, self._tab, None) | 78 action.RunAction(None, self._tab, None) |
79 self.assertEqual(action_list, ['before', True, 'after']) | 79 self.assertEqual(action_list, ['before', True, 'after']) |
OLD | NEW |