OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // is invoked. | 172 // is invoked. |
173 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_create_view) | 173 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_create_view) |
174 | 174 |
175 // If true, the test_shell will dump all changes to window.status. | 175 // If true, the test_shell will dump all changes to window.status. |
176 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_window_status_changes) | 176 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_window_status_changes) |
177 | 177 |
178 // If true, the test_shell will output descriptive test for spellcheck | 178 // If true, the test_shell will output descriptive test for spellcheck |
179 // execution. | 179 // execution. |
180 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_spell_check_callbacks) | 180 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_spell_check_callbacks) |
181 | 181 |
| 182 // If true, content_shell will output text for alert(), confirm(), prompt(), |
| 183 // etc. |
| 184 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_javascript_dialogs) |
| 185 |
182 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG | 186 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG |
183 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG | 187 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG |
184 | 188 |
185 // Reports whether recursing over child frames is necessary. | 189 // Reports whether recursing over child frames is necessary. |
186 bool dump_child_frames() const { | 190 bool dump_child_frames() const { |
187 if (dump_as_text()) | 191 if (dump_as_text()) |
188 return dump_child_frames_as_text(); | 192 return dump_child_frames_as_text(); |
189 else if (dump_as_markup()) | 193 else if (dump_as_markup()) |
190 return dump_child_frames_as_markup(); | 194 return dump_child_frames_as_markup(); |
191 else | 195 else |
192 return dump_child_frame_scroll_positions(); | 196 return dump_child_frame_scroll_positions(); |
193 } | 197 } |
194 | 198 |
195 private: | 199 private: |
196 TrackedDictionary dict_; | 200 TrackedDictionary dict_; |
197 | 201 |
198 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); | 202 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); |
199 }; | 203 }; |
200 | 204 |
201 } // namespace test_runner | 205 } // namespace test_runner |
202 | 206 |
203 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 207 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
OLD | NEW |