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
3 // found in the LICENSE file.
5 // Include test fixture.
6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']);
11 * @extends {ChromeVoxUnitTestBase}
13 function CvoxSelectionUtilUnitTest() {}
15 CvoxSelectionUtilUnitTest.prototype = {
16 __proto__: ChromeVoxUnitTestBase.prototype,
24 TEST_F('CvoxSelectionUtilUnitTest', 'SimpleFindPos', function() {
25 this.loadDoc(function() {/*!
26 <div id="foo" style="position:absolute;top:50px">
30 assertEquals(cvox.SelectionUtil.findPos_(element)[1], 50);