| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 sockets: true, | 114 sockets: true, |
| 115 spdy: true, | 115 spdy: true, |
| 116 httpPipeline: false, | 116 httpPipeline: false, |
| 117 httpCache: true, | 117 httpCache: true, |
| 118 serviceProviders: cr.isWindows, | 118 serviceProviders: cr.isWindows, |
| 119 tests: false, | 119 tests: false, |
| 120 hsts: false, | 120 hsts: false, |
| 121 logs: false, | 121 logs: false, |
| 122 prerender: true, | 122 prerender: true, |
| 123 bandwidth: true, | 123 bandwidth: true, |
| 124 chromeos: false | 124 chromeos: false, |
| 125 mobile: false |
| 125 }; | 126 }; |
| 126 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); | 127 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, false); |
| 127 } | 128 } |
| 128 | 129 |
| 129 function checkPrivacyStripping(expectedValue) { | 130 function checkPrivacyStripping(expectedValue) { |
| 130 expectEquals(expectedValue, | 131 expectEquals(expectedValue, |
| 131 SourceTracker.getInstance().getPrivacyStripping()); | 132 SourceTracker.getInstance().getPrivacyStripping()); |
| 132 } | 133 } |
| 133 | 134 |
| 134 /** | 135 /** |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 taskQueue.addFunctionTask(checkPrivacyStripping.bind(null, true)); | 209 taskQueue.addFunctionTask(checkPrivacyStripping.bind(null, true)); |
| 209 taskQueue.addTask(new CreateAndLoadLogTask('Detailed explanation.')); | 210 taskQueue.addTask(new CreateAndLoadLogTask('Detailed explanation.')); |
| 210 taskQueue.addFunctionTask(checkViewsAfterLogLoaded); | 211 taskQueue.addFunctionTask(checkViewsAfterLogLoaded); |
| 211 taskQueue.run(); | 212 taskQueue.run(); |
| 212 | 213 |
| 213 // Simulate a click on the stop capturing button. | 214 // Simulate a click on the stop capturing button. |
| 214 $(CaptureStatusView.STOP_BUTTON_ID).click(); | 215 $(CaptureStatusView.STOP_BUTTON_ID).click(); |
| 215 }); | 216 }); |
| 216 | 217 |
| 217 })(); // Anonymous namespace | 218 })(); // Anonymous namespace |
| OLD | NEW |