| Index: chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.js b/chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.js
|
| deleted file mode 100644
|
| index c0cedb50fc340da8a31e96e83758340e2b5e67b1..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.js
|
| +++ /dev/null
|
| @@ -1,65 +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']);
|
| -
|
| -/**
|
| - * Test fixture.
|
| - * @constructor
|
| - * @extends {ChromeVoxUnitTestBase}
|
| - */
|
| -function CvoxShadowUnitTest() {}
|
| -
|
| -CvoxShadowUnitTest.prototype = {
|
| - __proto__: ChromeVoxUnitTestBase.prototype,
|
| -
|
| - /** @override */
|
| - closureModuleDeps: [
|
| - 'cvox.EditableTextAreaShadow'
|
| - ]
|
| -};
|
| -
|
| -TEST_F('CvoxShadowUnitTest', 'MultilineLines', function() {
|
| - this.loadDoc(function() {/*!
|
| - <div><textarea id="area">
|
| -one
|
| -
|
| -two
|
| -
|
| -three
|
| -</textarea></div> */});
|
| -
|
| - var area = $('area');
|
| -
|
| - var shadow = new cvox.EditableTextAreaShadow();
|
| - shadow.update(area);
|
| - assertEquals(0, shadow.getLineIndex(0));
|
| - assertEquals(0, shadow.getLineIndex(3));
|
| - assertEquals(1, shadow.getLineIndex(4));
|
| - assertEquals(2, shadow.getLineIndex(5));
|
| - assertEquals(2, shadow.getLineIndex(8));
|
| - assertEquals(3, shadow.getLineIndex(9));
|
| - assertEquals(4, shadow.getLineIndex(10));
|
| - assertEquals(4, shadow.getLineIndex(14));
|
| -});
|
| -
|
| -/**
|
| - * Test the get line of a multiline textarea with wrapping instead of
|
| - * explicit newlines.
|
| - */
|
| -TEST_F('CvoxShadowUnitTest', 'MultilineWrap', function() {
|
| - this.loadDoc(function() {/*!
|
| - <div><textarea id="area"
|
| - cols=4 rows=20>One two thr fou fiv six sev eig</textarea>
|
| - </div> */});
|
| -
|
| - var area = $('area');
|
| -
|
| - var shadow = new cvox.EditableTextAreaShadow();
|
| - shadow.update(area);
|
| - for (var i = 0; i < 32; i++) {
|
| - assertEquals(Math.floor(i / 4), shadow.getLineIndex(i));
|
| - }
|
| -});
|
|
|