| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 'usage_timestamp': [] | 95 'usage_timestamp': [] |
| 96 } | 96 } |
| 97 }, | 97 }, |
| 98 'SYNCING': false, | 98 'SYNCING': false, |
| 99 'TRANSACTION_VERSION': '1', | 99 'TRANSACTION_VERSION': '1', |
| 100 'UNIQUE_BOOKMARK_TAG': '', | 100 'UNIQUE_BOOKMARK_TAG': '', |
| 101 'UNIQUE_CLIENT_TAG': '', | 101 'UNIQUE_CLIENT_TAG': '', |
| 102 'UNIQUE_POSITION': 'INVALID[]', | 102 'UNIQUE_POSITION': 'INVALID[]', |
| 103 'UNIQUE_SERVER_TAG': 'google_chrome_autofill', | 103 'UNIQUE_SERVER_TAG': 'google_chrome_autofill', |
| 104 'isDirty': false, | 104 'isDirty': false, |
| 105 'serverModelType': 'Autofill' | 105 'modelType': 'Autofill' |
| 106 }, { | 106 }, { |
| 107 'ATTACHMENT_METADATA': '', | 107 'ATTACHMENT_METADATA': '', |
| 108 'BASE_SERVER_SPECIFICS': {}, | 108 'BASE_SERVER_SPECIFICS': {}, |
| 109 'BASE_VERSION': '1394241139528639', | 109 'BASE_VERSION': '1394241139528639', |
| 110 'CTIME': 'Friday, March 7, 2014 5:12:19 PM', | 110 'CTIME': 'Friday, March 7, 2014 5:12:19 PM', |
| 111 'ID': 'sZ:ADqtAZwzc/ol1iaz+yNLjjWak9PBE0o/hATzpqJsyq/HX2xzV2f88' + | 111 'ID': 'sZ:ADqtAZwzc/ol1iaz+yNLjjWak9PBE0o/hATzpqJsyq/HX2xzV2f88' + |
| 112 'FaOrT7HDE4tyn7zx2LWgkAFvZfCA5mOy4p0XFgiY0L+mw==', | 112 'FaOrT7HDE4tyn7zx2LWgkAFvZfCA5mOy4p0XFgiY0L+mw==', |
| 113 'IS_DEL': false, | 113 'IS_DEL': false, |
| 114 'IS_DIR': false, | 114 'IS_DIR': false, |
| 115 'IS_UNAPPLIED_UPDATE': false, | 115 'IS_UNAPPLIED_UPDATE': false, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 143 'value': 'rlsynctet2' | 143 'value': 'rlsynctet2' |
| 144 } | 144 } |
| 145 }, | 145 }, |
| 146 'SYNCING': false, | 146 'SYNCING': false, |
| 147 'TRANSACTION_VERSION': '1', | 147 'TRANSACTION_VERSION': '1', |
| 148 'UNIQUE_BOOKMARK_TAG': '', | 148 'UNIQUE_BOOKMARK_TAG': '', |
| 149 'UNIQUE_CLIENT_TAG': 'EvliorKUf1rLjT+BGkNZp586Tsk=', | 149 'UNIQUE_CLIENT_TAG': 'EvliorKUf1rLjT+BGkNZp586Tsk=', |
| 150 'UNIQUE_POSITION': 'INVALID[]', | 150 'UNIQUE_POSITION': 'INVALID[]', |
| 151 'UNIQUE_SERVER_TAG': '', | 151 'UNIQUE_SERVER_TAG': '', |
| 152 'isDirty': false, | 152 'isDirty': false, |
| 153 'serverModelType': 'Autofill' | 153 'modelType': 'Autofill' |
| 154 }], | 154 }], |
| 155 'type': 'Autofill' | 155 'type': 'Autofill' |
| 156 }]; | 156 }]; |
| 157 | 157 |
| 158 /** | 158 /** |
| 159 * A value to return in mock onReceivedUpdatedAboutInfo event. | 159 * A value to return in mock onReceivedUpdatedAboutInfo event. |
| 160 * @const | 160 * @const |
| 161 */ | 161 */ |
| 162 HARD_CODED_ABOUT_INFO = { | 162 HARD_CODED_ABOUT_INFO = { |
| 163 'actionable_error': [ | 163 'actionable_error': [ |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 // Click the dump-to-text button. | 395 // Click the dump-to-text button. |
| 396 $('dump-to-text').click(); | 396 $('dump-to-text').click(); |
| 397 | 397 |
| 398 // Verify our event is among the results. | 398 // Verify our event is among the results. |
| 399 var eventDumpText = $('data-dump').textContent; | 399 var eventDumpText = $('data-dump').textContent; |
| 400 | 400 |
| 401 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0); | 401 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0); |
| 402 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0); | 402 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0); |
| 403 }); | 403 }); |
| OLD | NEW |