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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test.js

Issue 337843005: Support basic reading of focus for both desktop and tabs trees. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 6 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 | Annotate | Revision Log
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 /**
6 GEN_INCLUDE(['../../../chromevox/testing/chromevox_unittest_base.js']); 6 * Base test fixture for ChromeVox end to end tests.
7 *
8 * These tests run against production ChromeVox inside of the extension's
9 * background page context.
10 */
11 function ChromeVoxE2ETest() {}
Peter Lundblad 2014/06/19 20:54:10 nit: @constructor
David Tseng 2014/06/19 22:30:37 Done. (are we/will we supporting closure compile/s
12 ChromeVoxE2ETest.prototype = {
Peter Lundblad 2014/06/19 20:54:10 nit: blank line.
David Tseng 2014/06/19 22:30:37 Done.
13 __proto__: testing.Test.prototype,
7 14
8 /** 15 /**
9 * Test fixture for cvox2.Background. 16 * @override
10 * @constructor 17 * No UI in the background context.
11 * @extends {ChromeVoxUnitTestBase} 18 */
12 */ 19 runAccessibilityChecks: false,
13 function BackgroundTest() {}
14 20
15 BackgroundTest.prototype = { 21 /** @override */
16 __proto__: ChromeVoxUnitTestBase.prototype, 22 isAsync: true,
17 23
18 /** @override */ 24 /** @override */
19 browsePreload: null, 25 browsePreload: null,
20 26
21 /** @override */ 27 /** @override */
22 testGenCppIncludes: function() { 28 testGenCppIncludes: function() {
23 GEN_BLOCK(function() {/*! 29 GEN_BLOCK(function() {/*!
24 #include "ash/accessibility_delegate.h" 30 #include "ash/accessibility_delegate.h"
25 #include "base/bind.h" 31 #include "base/bind.h"
26 #include "base/callback.h" 32 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
39 45
40 base::Closure load_cb = 46 base::Closure load_cb =
41 base::Bind(&chromeos::AccessibilityManager::EnableSpokenFeedback, 47 base::Bind(&chromeos::AccessibilityManager::EnableSpokenFeedback,
42 base::Unretained(chromeos::AccessibilityManager::Get()), 48 base::Unretained(chromeos::AccessibilityManager::Get()),
43 true, 49 true,
44 ash::A11Y_NOTIFICATION_NONE); 50 ash::A11Y_NOTIFICATION_NONE);
45 WaitForExtension(extension_misc::kChromeVoxExtensionId, load_cb); 51 WaitForExtension(extension_misc::kChromeVoxExtensionId, load_cb);
46 */}); 52 */});
47 } 53 }
48 }; 54 };
49
50 /** Tests ChromeVox classic is in this context. */
51 TEST_F('BackgroundTest', 'ClassicNamespaces', function() {
52 assertEquals('object', typeof(cvox));
53 assertEquals('function', typeof(cvox.ChromeVoxBackground));
54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698