| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 TEST_F('CvoxSelectionUtilUnitTest', 'SimpleFindPos', function() { | 24 TEST_F('CvoxSelectionUtilUnitTest', 'SimpleFindPos', function() { |
| 25 this.loadDoc(function() {/*! | 25 this.loadDoc(function() {/*! |
| 26 <div id="foo" style="position:absolute;top:50px"> | 26 <div id="foo" style="position:absolute;top:50px"> |
| 27 </div> | 27 </div> |
| 28 */}); | 28 */}); |
| 29 element = $('foo'); | 29 element = $('foo'); |
| 30 assertEquals(cvox.SelectionUtil.findPos_(element)[1], 50); | 30 assertEquals(cvox.SelectionUtil.findPos_(element)[1], 50); |
| 31 }); | 31 }); |
| OLD | NEW |