| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |