Chromium Code Reviews| 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_next_e2e_test_base.js', | 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js', |
| 7 '../../testing/assert_additions.js']); | 7 '../../testing/assert_additions.js']); |
| 8 | 8 |
| 9 GEN_INCLUDE(['../../testing/mock_feedback.js']); | 9 GEN_INCLUDE(['../../testing/mock_feedback.js']); |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 iframesDoc: function() {/*! | 75 iframesDoc: function() {/*! |
| 76 <p>start</p> | 76 <p>start</p> |
| 77 <button>Before</button> | 77 <button>Before</button> |
| 78 <iframe srcdoc="<button>Inside</button><h1>Inside</h1>"></iframe> | 78 <iframe srcdoc="<button>Inside</button><h1>Inside</h1>"></iframe> |
| 79 <button>After</button> | 79 <button>After</button> |
| 80 */}, | 80 */}, |
| 81 | 81 |
| 82 disappearingObjectDoc: function() {/*! | 82 disappearingObjectDoc: function() {/*! |
| 83 <p>start</p> | 83 <p>start</p> |
| 84 <article> | 84 <div role="group"> |
|
aboxhall
2016/08/12 16:05:10
Why this change?
dmazzoni
2016/08/15 05:31:11
A very obscure side effect of this change was that
| |
| 85 <p>Before1</p> | 85 <p>Before1</p> |
| 86 <p>Before2</p> | 86 <p>Before2</p> |
| 87 <p>Before3</p> | 87 <p>Before3</p> |
| 88 </article> | 88 </div> |
| 89 <article> | 89 <div role="group"> |
| 90 <p id="disappearing">Disappearing</p> | 90 <p id="disappearing">Disappearing</p> |
| 91 </article> | 91 </div> |
| 92 <article> | 92 <div role="group"> |
| 93 <p>After1</p> | 93 <p>After1</p> |
| 94 <p>After2</p> | 94 <p>After2</p> |
| 95 <p>After3</p> | 95 <p>After3</p> |
| 96 </article> | |
| 97 </div> | 96 </div> |
| 98 <div id="live" aria-live="polite"></div> | 97 <div id="live" aria-live="polite"></div> |
| 99 <div id="delete" role="button">Delete</div> | 98 <div id="delete" role="button">Delete</div> |
| 100 <script> | 99 <script> |
| 101 document.getElementById('delete').addEventListener('click', function() { | 100 document.getElementById('delete').addEventListener('click', function() { |
| 102 var d = document.getElementById('disappearing'); | 101 var d = document.getElementById('disappearing'); |
| 103 d.parentElement.removeChild(d); | 102 d.parentElement.removeChild(d); |
| 104 document.getElementById('live').innerText = 'Deleted'; | 103 document.getElementById('live').innerText = 'Deleted'; |
| 105 }); | 104 }); |
| 106 </script> | 105 </script> |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1106 }); | 1105 }); |
| 1107 | 1106 |
| 1108 TEST_F('BackgroundTest', 'DisabledState', function() { | 1107 TEST_F('BackgroundTest', 'DisabledState', function() { |
| 1109 var mockFeedback = this.createMockFeedback(); | 1108 var mockFeedback = this.createMockFeedback(); |
| 1110 this.runWithLoadedTree(function(root) {/*! | 1109 this.runWithLoadedTree(function(root) {/*! |
| 1111 <button aria-disabled="true">ok</button> | 1110 <button aria-disabled="true">ok</button> |
| 1112 */}, function(root) { | 1111 */}, function(root) { |
| 1113 mockFeedback.expectSpeech('ok', 'Disabled', 'Button').replay(); | 1112 mockFeedback.expectSpeech('ok', 'Disabled', 'Button').replay(); |
| 1114 }); | 1113 }); |
| 1115 }); | 1114 }); |
| OLD | NEW |