| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * Test fixture for sync internals WebUI testing. | 6 * Test fixture for sync internals WebUI testing. |
| 7 * @constructor | 7 * @constructor |
| 8 * @extends {testing.Test} | 8 * @extends {testing.Test} |
| 9 */ | 9 */ |
| 10 function SyncInternalsWebUITest() {} | 10 function SyncInternalsWebUITest() {} |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 "UNIQUE_BOOKMARK_TAG": "", | 161 "UNIQUE_BOOKMARK_TAG": "", |
| 162 "UNIQUE_CLIENT_TAG": "J28uWKpXPuQwR3SJKbuLqzYGOcM=", | 162 "UNIQUE_CLIENT_TAG": "J28uWKpXPuQwR3SJKbuLqzYGOcM=", |
| 163 "UNIQUE_POSITION": "INVALID[]", | 163 "UNIQUE_POSITION": "INVALID[]", |
| 164 "UNIQUE_SERVER_TAG": "", | 164 "UNIQUE_SERVER_TAG": "", |
| 165 "isDirty": false, | 165 "isDirty": false, |
| 166 "serverModelType": "Typed URLs" | 166 "serverModelType": "Typed URLs" |
| 167 } | 167 } |
| 168 ]; | 168 ]; |
| 169 | 169 |
| 170 /** | 170 /** |
| 171 * Constant hard-coded value to return from mock getAboutInfo. | 171 * A value to return in mock onReceivedUpdatedAboutInfo event. |
| 172 * @const | 172 * @const |
| 173 */ | 173 */ |
| 174 HARD_CODED_ABOUT_INFO = { | 174 HARD_CODED_ABOUT_INFO = { |
| 175 "actionable_error": [ | 175 "actionable_error": [ |
| 176 { | 176 { |
| 177 "is_valid": false, | 177 "is_valid": false, |
| 178 "stat_name": "Error Type", | 178 "stat_name": "Error Type", |
| 179 "stat_value": "Uninitialized" | 179 "stat_value": "Uninitialized" |
| 180 }, | 180 }, |
| 181 { | 181 { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 // Click the dump-to-text button. | 359 // Click the dump-to-text button. |
| 360 $('dump-to-text').click(); | 360 $('dump-to-text').click(); |
| 361 | 361 |
| 362 // Verify our event is among the results. | 362 // Verify our event is among the results. |
| 363 var eventDumpText = $('data-dump').textContent; | 363 var eventDumpText = $('data-dump').textContent; |
| 364 | 364 |
| 365 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0); | 365 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0); |
| 366 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0); | 366 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0); |
| 367 }); | 367 }); |
| OLD | NEW |