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() {
14 ChromeVoxNextE2ETest.call(this);
17 OutputE2ETest.prototype = {
18 __proto__: ChromeVoxNextE2ETest.prototype,
22 window.Dir = AutomationUtil.Dir;
26 TEST_F('OutputE2ETest', 'RenderBasic', function() {
27 this.runWithLoadedTree('<a href="#">Click here</a>',
29 var link = root.firstChild.firstChild;
30 var range = cursors.Range.fromNode(link);
31 var o = new Output().withSpeechAndBraille(range, null, 'navigate');
32 assertEqualsJSON({string_: 'Click here Link', 'spans_': [
33 {value: 'name', start: 0, end: 10},
35 {value: {}, start: 11, end: 15}