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); |
-}); |