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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_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/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));
- }
-});

Powered by Google App Engine
This is Rietveld 408576698