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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/braille_text_handler_test.js

Issue 541403002: Rename ChromeVox tests and utilities for consistency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Clarify comment in .gypi file. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/common/braille_text_handler_test.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/braille_text_handler_test.js b/chrome/browser/resources/chromeos/chromevox/common/braille_text_handler_test.js
deleted file mode 100644
index 3f53422bd38c4ea08320d3f420aa05e457230cbc..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/chromevox/common/braille_text_handler_test.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Include test fixture.
-GEN_INCLUDE(['../testing/chromevox_unittest_base.js']);
-
-/**
- * @extends {cvox.BrailleInterface}
- * @constructor
- */
-function FakeBraille() {
-}
-
-FakeBraille.prototype = {
- /** @override */
- write: function(content) {
- this.content = content;
- }
-};
-
-/** @constructor */
-function FakeNavigationManager() {
-}
-
-FakeNavigationManager.prototype = {
- getBraille: function() {
- return this.navBraille;
- },
-
- setNavBraille: function(navBraille) {
- this.navBraille = navBraille;
- }
-};
-
-
-/**
- * Test fixture.
- * @constructor
- * @extends {ChromeVoxUnitTestBase}
- */
-function CvoxBrailleTextHandlerUnitTest() {}
-
-CvoxBrailleTextHandlerUnitTest.prototype = {
- __proto__: ChromeVoxUnitTestBase.prototype,
-
- /** @override */
- closureModuleDeps: [
- 'cvox.BrailleInterface',
- 'cvox.BrailleTextHandler',
- 'cvox.NavBraille',
- 'cvox.NavigationManager',
- ],
-
- /** @override */
- setUp: function() {
- this.navigationManager = new FakeNavigationManager();
- this.braille = new FakeBraille();
- cvox.ChromeVox.navigationManager = this.navigationManager;
- this.brailleTextHandler = new cvox.BrailleTextHandler(this.braille);
- }
-};
-
-TEST_F('CvoxBrailleTextHandlerUnitTest', 'UpdateByUser', function() {
- var navBraille = new cvox.NavBraille({ text: 'Hello, world!' });
- this.navigationManager.setNavBraille(navBraille);
-
- this.brailleTextHandler.changed('', 0, 0, false);
- assertEquals(navBraille, this.braille.content);
-});

Powered by Google App Engine
This is Rietveld 408576698