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 GEN_INCLUDE(['../../testing/assert_additions.js']);
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']);
9 * Test fixture for output.js.
11 * @extends {ChromeVoxNextE2ETestBase}
13 function OutputE2ETest() {}
15 OutputE2ETest.prototype = {
16 __proto__: ChromeVoxNextE2ETest.prototype,
20 window.Dir = AutomationUtil.Dir;
24 TEST_F('OutputE2ETest', 'RenderBasic', function() {
25 this.runWithAutomation('<a href="#">Click here</a>',
27 var link = root.firstChild().firstChild();
28 var range = cursors.Range.fromNode(link);
29 var o = new Output(range, null, 'navigate');
30 assertEqualsJSON({string_: 'Click here Link', 'spans_': [
31 {value: 'name', start: 0, end: 10},
33 {value: {}, start: 11, end: 15}