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

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

Issue 2029253002: Disable flaky LanguagesOptionsDictionaryDownloadWebUITest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GEN_INCLUDE(['options_browsertest_base.js']); 5 GEN_INCLUDE(['options_browsertest_base.js']);
6 6
7 /** 7 /**
8 * TestFixture for testing messages of dictionary download progress in language 8 * TestFixture for testing messages of dictionary download progress in language
9 * options WebUI. 9 * options WebUI.
10 * @extends {testing.Test} 10 * @extends {testing.Test}
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Enable when failure is resolved. 44 // Enable when failure is resolved.
45 // AX_TEXT_04: http://crbug.com/570553 45 // AX_TEXT_04: http://crbug.com/570553
46 this.accessibilityAuditConfig.ignoreSelectors( 46 this.accessibilityAuditConfig.ignoreSelectors(
47 'linkWithUnclearPurpose', 47 'linkWithUnclearPurpose',
48 '#languagePage > .content-area > .language-options-header > A'); 48 '#languagePage > .content-area > .language-options-header > A');
49 }, 49 },
50 }; 50 };
51 51
52 // Verify that dictionary download success does not show, "This language can't 52 // Verify that dictionary download success does not show, "This language can't
53 // be used for spellchecking." or "Download failed." 53 // be used for spellchecking." or "Download failed."
54 // Disabled due to flakiness (crbug.com/616550).
54 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest', 55 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest',
55 'testdictionaryDownloadSuccess', 56 'DISABLED_testdictionaryDownloadSuccess',
56 function() { 57 function() {
57 options.LanguageOptions.onDictionaryDownloadSuccess('en-US'); 58 options.LanguageOptions.onDictionaryDownloadSuccess('en-US');
58 expectTrue($('spellcheck-language-message').hidden); 59 expectTrue($('spellcheck-language-message').hidden);
59 expectTrue($('language-options-dictionary-downloading-message').hidden); 60 expectTrue($('language-options-dictionary-downloading-message').hidden);
60 expectTrue($('language-options-dictionary-download-failed-message').hidden); 61 expectTrue($('language-options-dictionary-download-failed-message').hidden);
61 expectTrue( 62 expectTrue(
62 $('language-options-dictionary-download-fail-help-message').hidden); 63 $('language-options-dictionary-download-fail-help-message').hidden);
63 }); 64 });
64 65
65 // Verify that dictionary download in progress shows 'Downloading spell check 66 // Verify that dictionary download in progress shows 'Downloading spell check
66 // language' message. 67 // language' message.
68 // Disabled due to flakiness (crbug.com/616550).
67 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest', 69 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest',
68 'testdictionaryDownloadProgress', 70 'DISABLED_testdictionaryDownloadProgress',
69 function() { 71 function() {
70 options.LanguageOptions.onDictionaryDownloadBegin('en-US'); 72 options.LanguageOptions.onDictionaryDownloadBegin('en-US');
71 expectTrue($('spellcheck-language-message').hidden); 73 expectTrue($('spellcheck-language-message').hidden);
72 expectFalse($('language-options-dictionary-downloading-message').hidden); 74 expectFalse($('language-options-dictionary-downloading-message').hidden);
73 expectTrue($('language-options-dictionary-download-failed-message').hidden); 75 expectTrue($('language-options-dictionary-download-failed-message').hidden);
74 expectTrue( 76 expectTrue(
75 $('language-options-dictionary-download-fail-help-message').hidden); 77 $('language-options-dictionary-download-fail-help-message').hidden);
76 }); 78 });
77 79
78 // Verify that failure in dictionary download shows 'Dictionary download failed' 80 // Verify that failure in dictionary download shows 'Dictionary download failed'
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest', 113 TEST_F('LanguagesOptionsDictionaryDownloadWebUITest',
112 'testdictionaryDownloadRetry', 114 'testdictionaryDownloadRetry',
113 function() { 115 function() {
114 this.mockHandler.expects(once()).retryDictionaryDownload('en-US'). 116 this.mockHandler.expects(once()).retryDictionaryDownload('en-US').
115 will(callFunction(function() { 117 will(callFunction(function() {
116 options.LanguageOptions.onDictionaryDownloadBegin('en-US'); 118 options.LanguageOptions.onDictionaryDownloadBegin('en-US');
117 })); 119 }));
118 options.LanguageOptions.onDictionaryDownloadFailure('en-US'); 120 options.LanguageOptions.onDictionaryDownloadFailure('en-US');
119 $('dictionary-download-retry-button').click(); 121 $('dictionary-download-retry-button').click();
120 }); 122 });
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