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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // If true, the test_shell will print out the child frame scroll offsets as | 71 // If true, the test_shell will print out the child frame scroll offsets as |
72 // well. | 72 // well. |
73 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_child_frame_scroll_positions) | 73 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_child_frame_scroll_positions) |
74 | 74 |
75 // If true, layout is to target printed pages. | 75 // If true, layout is to target printed pages. |
76 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(is_printing) | 76 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(is_printing) |
77 | 77 |
78 // If true, don't dump output until notifyDone is called. | 78 // If true, don't dump output until notifyDone is called. |
79 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(wait_until_done) | 79 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(wait_until_done) |
80 | 80 |
| 81 // If true, ends the test when a URL is loaded externally via |
| 82 // WebFrameClient::loadURLExternally(). |
| 83 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(wait_until_external_url_load) |
| 84 |
81 // Causes navigation actions just printout the intended navigation instead | 85 // Causes navigation actions just printout the intended navigation instead |
82 // of taking you to the page. This is used for cases like mailto, where you | 86 // of taking you to the page. This is used for cases like mailto, where you |
83 // don't actually want to open the mail program. | 87 // don't actually want to open the mail program. |
84 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_enabled) | 88 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_enabled) |
85 | 89 |
86 // Toggles the behavior of the policy delegate. If true, then navigations | 90 // Toggles the behavior of the policy delegate. If true, then navigations |
87 // will be allowed. Otherwise, they will be ignored (dropped). | 91 // will be allowed. Otherwise, they will be ignored (dropped). |
88 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_is_permissive) | 92 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_is_permissive) |
89 | 93 |
90 // If true, the policy delegate will signal layout test completion. | 94 // If true, the policy delegate will signal layout test completion. |
(...skipping 13 matching lines...) Expand all Loading... |
104 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(images_allowed) | 108 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(images_allowed) |
105 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(media_allowed) | 109 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(media_allowed) |
106 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(scripts_allowed) | 110 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(scripts_allowed) |
107 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(storage_allowed) | 111 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(storage_allowed) |
108 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(plugins_allowed) | 112 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(plugins_allowed) |
109 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(displaying_insecure_content_allowed) | 113 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(displaying_insecure_content_allowed) |
110 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(running_insecure_content_allowed) | 114 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(running_insecure_content_allowed) |
111 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( | 115 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( |
112 dump_web_content_settings_client_callbacks) | 116 dump_web_content_settings_client_callbacks) |
113 | 117 |
| 118 // If true, the test_shell will write a descriptive line for each editing |
| 119 // command. |
| 120 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_editting_callbacks) |
| 121 |
| 122 // If true, the test_shell will output a descriptive line for each frame |
| 123 // load callback. |
| 124 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_frame_load_callbacks) |
| 125 |
| 126 // If true, the test_shell will output a descriptive line for each |
| 127 // PingLoader dispatched. |
| 128 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_ping_loader_callbacks) |
| 129 |
| 130 // If true, the test_shell will output a line of the user gesture status |
| 131 // text for some frame load callbacks. |
| 132 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( |
| 133 dump_user_gesture_in_frame_load_callbacks) |
| 134 |
| 135 // If true, the test_shell will output a descriptive line for each resource |
| 136 // load callback. |
| 137 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_resource_load_callbacks) |
| 138 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_resource_priorities) |
| 139 |
| 140 // If true, the test_shell will output the MIME type for each resource that |
| 141 // was loaded. |
| 142 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_resource_response_mime_types) |
| 143 |
| 144 // If true, content_shell will dump the default navigation policy passed to |
| 145 // WebFrameClient::decidePolicyForNavigation. |
| 146 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_navigation_policy) |
| 147 |
| 148 // Bound variable to set whether postMessages should be intercepted or not |
| 149 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(intercept_post_message) |
| 150 |
| 151 // If true, output a message when the page title is changed. |
| 152 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_title_changes) |
| 153 |
| 154 // If true, the test_shell will print out the icon change notifications. |
| 155 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_icon_changes) |
| 156 |
| 157 // Desired return value of WebFrameClient::runModalBeforeUnloadDialog. |
| 158 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( |
| 159 stay_on_page_after_handling_before_unload) |
| 160 |
114 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG | 161 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG |
115 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG | 162 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG |
116 | 163 |
117 // Reports whether recursing over child frames is necessary. | 164 // Reports whether recursing over child frames is necessary. |
118 bool dump_child_frames() const { | 165 bool dump_child_frames() const { |
119 if (dump_as_text()) | 166 if (dump_as_text()) |
120 return dump_child_frames_as_text(); | 167 return dump_child_frames_as_text(); |
121 else if (dump_as_markup()) | 168 else if (dump_as_markup()) |
122 return dump_child_frames_as_markup(); | 169 return dump_child_frames_as_markup(); |
123 else | 170 else |
124 return dump_child_frame_scroll_positions(); | 171 return dump_child_frame_scroll_positions(); |
125 } | 172 } |
126 | 173 |
127 private: | 174 private: |
128 TrackedDictionary dict_; | 175 TrackedDictionary dict_; |
129 | 176 |
130 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); | 177 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); |
131 }; | 178 }; |
132 | 179 |
133 } // namespace test_runner | 180 } // namespace test_runner |
134 | 181 |
135 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 182 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
OLD | NEW |