Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: chrome/browser/ui/webui/sync_internals_browsertest.js

Issue 2834453006: [Sync] Update Type Info section of sync-internals. (Closed)
Patch Set: Reworked some of the variables in GetTypeStatusMap(). Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 'stat_name': 'Summary', 191 'stat_name': 'Summary',
192 'stat_value': 'Sync service initialized' 192 'stat_value': 'Sync service initialized'
193 } 193 }
194 ], 194 ],
195 'is_sensitive': false, 195 'is_sensitive': false,
196 'title': 'Summary' 196 'title': 'Summary'
197 }, 197 },
198 ], 198 ],
199 'type_status': [ 199 'type_status': [
200 { 200 {
201 'status': 'header',
201 'name': 'Model Type', 202 'name': 'Model Type',
202 'num_entries': 'Total Entries', 203 'num_entries': 'Total Entries',
203 'num_live': 'Live Entries', 204 'num_live': 'Live Entries',
204 'status': 'header', 205 'message': 'Message',
205 'value': 'Group Type' 206 'state': 'State',
207 'group_type': 'Group Type',
206 }, 208 },
207 { 209 {
210 'status': 'ok',
208 'name': 'Bookmarks', 211 'name': 'Bookmarks',
209 'num_entries': 2793, 212 'num_entries': 2793,
210 'num_live': 2793, 213 'num_live': 2793,
211 'status': 'ok', 214 'message': '',
212 'value': 'Active: GROUP_UI' 215 'state': 'Running',
216 'group_type': 'Group UI',
213 }, 217 },
214 ], 218 ],
215 'unrecoverable_error_detected': false 219 'unrecoverable_error_detected': false
216 }; 220 };
217 221
218 NETWORK_EVENT_DETAILS_1 = { 222 NETWORK_EVENT_DETAILS_1 = {
219 'details': 'Notified types: Bookmarks, Autofill', 223 'details': 'Notified types: Bookmarks, Autofill',
220 'proto': {}, 224 'proto': {},
221 'time': 1395874542192.407, 225 'time': 1395874542192.407,
222 'type': 'Normal GetUpdate request', 226 'type': 'Normal GetUpdate request',
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 398
395 // Click the dump-to-text button. 399 // Click the dump-to-text button.
396 $('dump-to-text').click(); 400 $('dump-to-text').click();
397 401
398 // Verify our event is among the results. 402 // Verify our event is among the results.
399 var eventDumpText = $('data-dump').textContent; 403 var eventDumpText = $('data-dump').textContent;
400 404
401 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0); 405 expectGE(eventDumpText.indexOf('onConnectionStatusChange'), 0);
402 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0); 406 expectGE(eventDumpText.indexOf('CONNECTION_OK'), 0);
403 }); 407 });
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698