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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs

Issue 2151713002: Less strict checked state changes and introduce disabled state for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Include test fixture. 5 // Include test fixture.
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js', 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js',
7 '../../testing/assert_additions.js']); 7 '../../testing/assert_additions.js']);
8 8
9 GEN_INCLUDE(['../../testing/mock_feedback.js']); 9 GEN_INCLUDE(['../../testing/mock_feedback.js']);
10 10
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 .call(doCmd('nextCharacter')) 985 .call(doCmd('nextCharacter'))
986 .expectSpeech('i', 'selected') 986 .expectSpeech('i', 'selected')
987 .call(doCmd('previousCharacter')) 987 .call(doCmd('previousCharacter'))
988 .expectSpeech('i', 'unselected') 988 .expectSpeech('i', 'unselected')
989 .call(doCmd('nextCharacter')) 989 .call(doCmd('nextCharacter'))
990 .call(doCmd('nextCharacter')) 990 .call(doCmd('nextCharacter'))
991 .expectSpeech('End selection', 'sim') 991 .expectSpeech('End selection', 'sim')
992 .replay(); 992 .replay();
993 }); 993 });
994 }); 994 });
995
996 TEST_F('BackgroundTest', 'DisabledState', function() {
997 var mockFeedback = this.createMockFeedback();
998 this.runWithLoadedTree(function(root) {/*!
999 <button aria-disabled="true">ok</button>
1000 */}, function(root) {
1001 mockFeedback.expectSpeech('ok', 'Disabled', 'Button').replay();
1002 });
1003 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698