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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/walkers/structural_line_walker_test.unitjs

Issue 889593002: Refactorings to reduce dependencies in ChromeVox 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix copyright year. Created 5 years, 10 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/walkers/structural_line_walker.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Include test fixture.
6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']); 6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']);
7 7
8 /** 8 /**
9 * Test fixture. 9 * Test fixture.
10 * @constructor 10 * @constructor
11 * @extends {ChromeVoxUnitTestBase} 11 * @extends {ChromeVoxUnitTestBase}
12 */ 12 */
13 function CvoxStructuralLineWalkerUnitTest() {} 13 function CvoxStructuralLineWalkerUnitTest() {}
14 14
15 CvoxStructuralLineWalkerUnitTest.prototype = { 15 CvoxStructuralLineWalkerUnitTest.prototype = {
16 __proto__: ChromeVoxUnitTestBase.prototype, 16 __proto__: ChromeVoxUnitTestBase.prototype,
17 17
18 /** @override */ 18 /** @override */
19 closureModuleDeps: [ 19 closureModuleDeps: [
20 'cvox.BrailleUtil',
21 'cvox.StructuralLineWalker', 20 'cvox.StructuralLineWalker',
22 'cvox.TestMsgs', 21 'cvox.TestMsgs',
23 ], 22 ],
24 23
25 /** @override */ 24 /** @override */
26 setUp: function() { 25 setUp: function() {
27 this.loadDoc(function() {/*! 26 this.loadDoc(function() {/*!
28 <a id='1' href='google.com'>Click Here</a> 27 <a id='1' href='google.com'>Click Here</a>
29 <pre id='2'>This text will break 28 <pre id='2'>This text will break
30 immediately here! 29 immediately here!
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 assertEquals('1. orange', 114 assertEquals('1. orange',
116 this.walker_.getBraille(li1Sel, li1Sel).text.toString()); 115 this.walker_.getBraille(li1Sel, li1Sel).text.toString());
117 assertEquals('2. apple', 116 assertEquals('2. apple',
118 this.walker_.getBraille(li2Sel, li2Sel).text.toString()); 117 this.walker_.getBraille(li2Sel, li2Sel).text.toString());
119 assertEquals( 118 assertEquals(
120 '3. hi broken', 119 '3. hi broken',
121 this.walker_.getBraille(li3Sel, li3Sel).text.toString()); 120 this.walker_.getBraille(li3Sel, li3Sel).text.toString());
122 assertEquals('line here', 121 assertEquals('line here',
123 this.walker_.getBraille(li3SelNext, li3SelNext).text.toString()); 122 this.walker_.getBraille(li3SelNext, li3SelNext).text.toString());
124 }); 123 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/walkers/structural_line_walker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698