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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/common/selection_util_test.js

Issue 298653011: More ChromeVox tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style violations Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 // Include test fixture.
6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']);
7
8 /**
9 * Test fixture.
10 * @constructor
11 * @extends {ChromeVoxUnitTestBase}
12 */
13 function CvoxSelectionUtilUnitTest() {}
14
15 CvoxSelectionUtilUnitTest.prototype = {
16 __proto__: ChromeVoxUnitTestBase.prototype,
17
18 /** @override */
19 closureModuleDeps: [
20 'cvox.SelectionUtil'
21 ]
22 };
23
24 TEST_F('CvoxSelectionUtilUnitTest', 'SimpleFindPos', function() {
25 this.loadDoc(function() {/*!
26 <div id="foo" style="position:absolute;top:50px">
27 </div>
28 */});
29 element = $('foo');
30 assertEquals(cvox.SelectionUtil.findPos_(element)[1], 50);
31 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698