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

Side by Side Diff: chrome/browser/ui/webui/options/manage_profile_browsertest.js

Issue 492913002: Disable a ManagedProfileUITest on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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 // None of these tests is relevant for Chrome OS. 5 // None of these tests is relevant for Chrome OS.
6 GEN('#if !defined(OS_CHROMEOS)'); 6 GEN('#if !defined(OS_CHROMEOS)');
7 7
8 /** 8 /**
9 * TestFixture for ManageProfileOverlay and CreateProfileOverlay WebUI testing. 9 * TestFixture for ManageProfileOverlay and CreateProfileOverlay WebUI testing.
10 * @extends {testing.Test} 10 * @extends {testing.Test}
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 assertEquals('createProfile', PageManager.getTopmostVisiblePage().name); 334 assertEquals('createProfile', PageManager.getTopmostVisiblePage().name);
335 var errorBubble = $('create-profile-error-bubble'); 335 var errorBubble = $('create-profile-error-bubble');
336 assertTrue(errorBubble.hidden); 336 assertTrue(errorBubble.hidden);
337 337
338 CreateProfileOverlay.onError('An Error Message!'); 338 CreateProfileOverlay.onError('An Error Message!');
339 assertEquals('createProfile', PageManager.getTopmostVisiblePage().name); 339 assertEquals('createProfile', PageManager.getTopmostVisiblePage().name);
340 assertFalse(errorBubble.hidden); 340 assertFalse(errorBubble.hidden);
341 }); 341 });
342 342
343 // The name and email should be inserted into the confirmation dialog. 343 // The name and email should be inserted into the confirmation dialog.
344 TEST_F('ManageProfileUITest', 'CreateConfirmationText', function() { 344 // Disbaled because of flakiness on Mac: crbug.com/405709
345 GEN('#if defined(OS_MACOSX)');
346 GEN('#define MAYBE_CreateConfirmationText \\');
347 GEN(' DISABLED_CreateConfirmationText');
348 GEN('#else');
349 GEN('#define MAYBE_CreateConfirmationText CreateConfirmationText');
350 GEN('#endif');
351 TEST_F('ManageProfileUITest', 'MAYBE_CreateConfirmationText', function() {
345 var self = this; 352 var self = this;
346 var custodianEmail = 'foo@example.com'; 353 var custodianEmail = 'foo@example.com';
347 354
348 // Checks the strings in the confirmation dialog. If |expectedNameText| is 355 // Checks the strings in the confirmation dialog. If |expectedNameText| is
349 // given, it should be present in the dialog's textContent; otherwise the name 356 // given, it should be present in the dialog's textContent; otherwise the name
350 // is expected. If |expectedNameHtml| is given, it should be present in the 357 // is expected. If |expectedNameHtml| is given, it should be present in the
351 // dialog's innerHTML; otherwise the expected text is expected in the HTML 358 // dialog's innerHTML; otherwise the expected text is expected in the HTML
352 // too. 359 // too.
353 function checkDialog(name, expectedNameText, expectedNameHtml) { 360 function checkDialog(name, expectedNameText, expectedNameHtml) {
354 var expectedText = expectedNameText || name; 361 var expectedText = expectedNameText || name;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 653
647 // Select another icon and check if the profile name was updated. 654 // Select another icon and check if the profile name was updated.
648 var oldName = nameEl.value; 655 var oldName = nameEl.value;
649 gridEl.selectedItem = iconURLs[1]; 656 gridEl.selectedItem = iconURLs[1];
650 expectEquals(oldName, nameEl.value); 657 expectEquals(oldName, nameEl.value);
651 658
652 PageManager.closeOverlay(); 659 PageManager.closeOverlay();
653 }); 660 });
654 661
655 GEN('#endif // OS_CHROMEOS'); 662 GEN('#endif // OS_CHROMEOS');
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698