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

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

Issue 162283002: Move towards event-driven JS on about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another reupload Created 6 years, 10 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 | Annotate | Revision Log
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/ui/webui/sync_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698