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 /** | 5 /** |
6 * @fileoverview This file contains tests for creating and loading log files. | 6 * @fileoverview This file contains tests for creating and loading log files. |
7 * It also tests the stop capturing button, since it both creates and then loads | 7 * It also tests the stop capturing button, since it both creates and then loads |
8 * a log dump. | 8 * a log dump. |
9 */ | 9 */ |
10 | 10 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 spdy: true, | 168 spdy: true, |
169 quic: true, | 169 quic: true, |
170 httpCache: true, | 170 httpCache: true, |
171 modules: true, | 171 modules: true, |
172 tests: false, | 172 tests: false, |
173 hsts: false, | 173 hsts: false, |
174 logs: false, | 174 logs: false, |
175 prerender: true, | 175 prerender: true, |
176 bandwidth: false, | 176 bandwidth: false, |
177 chromeos: false, | 177 chromeos: false, |
178 visualizer: false | 178 visualizer: false, |
| 179 sdch: true, |
179 }; | 180 }; |
180 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); | 181 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); |
181 } | 182 } |
182 | 183 |
183 /** | 184 /** |
184 * Checks the visibility of each view after loading a log dump created by the | 185 * Checks the visibility of each view after loading a log dump created by the |
185 * NetLogLogger. Also checks that the BrowserBridge is disabled. | 186 * NetLogLogger. Also checks that the BrowserBridge is disabled. |
186 */ | 187 */ |
187 function checkViewsAfterNetLogLoggerLogLoaded() { | 188 function checkViewsAfterNetLogLoggerLogLoaded() { |
188 expectTrue(g_browser.isDisabled()); | 189 expectTrue(g_browser.isDisabled()); |
(...skipping 10 matching lines...) Expand all Loading... |
199 spdy: false, | 200 spdy: false, |
200 quic: false, | 201 quic: false, |
201 httpCache: false, | 202 httpCache: false, |
202 modules: false, | 203 modules: false, |
203 tests: false, | 204 tests: false, |
204 hsts: false, | 205 hsts: false, |
205 logs: false, | 206 logs: false, |
206 prerender: false, | 207 prerender: false, |
207 bandwidth: false, | 208 bandwidth: false, |
208 chromeos: false, | 209 chromeos: false, |
209 visualizer: false | 210 visualizer: false, |
| 211 sdch: false |
210 }; | 212 }; |
211 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); | 213 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); |
212 } | 214 } |
213 | 215 |
214 function checkPrivacyStripping(expectedValue) { | 216 function checkPrivacyStripping(expectedValue) { |
215 expectEquals(expectedValue, | 217 expectEquals(expectedValue, |
216 SourceTracker.getInstance().getPrivacyStripping()); | 218 SourceTracker.getInstance().getPrivacyStripping()); |
217 } | 219 } |
218 | 220 |
219 /** | 221 /** |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 taskQueue.addFunctionTask(checkPrivacyStripping.bind(null, true)); | 317 taskQueue.addFunctionTask(checkPrivacyStripping.bind(null, true)); |
316 taskQueue.addTask(new CreateAndLoadLogTask('Detailed explanation.')); | 318 taskQueue.addTask(new CreateAndLoadLogTask('Detailed explanation.')); |
317 taskQueue.addFunctionTask(checkViewsAfterLogLoaded); | 319 taskQueue.addFunctionTask(checkViewsAfterLogLoaded); |
318 taskQueue.run(); | 320 taskQueue.run(); |
319 | 321 |
320 // Simulate clicking the stop button. | 322 // Simulate clicking the stop button. |
321 $(CaptureView.STOP_BUTTON_ID).click(); | 323 $(CaptureView.STOP_BUTTON_ID).click(); |
322 }); | 324 }); |
323 | 325 |
324 })(); // Anonymous namespace | 326 })(); // Anonymous namespace |
OLD | NEW |