| 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"> |
| 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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 .call(doCmd('nextHeading' + level)) | 1124 .call(doCmd('nextHeading' + level)) |
| 1126 .expectSpeech('No next level ' + level + ' heading.') | 1125 .expectSpeech('No next level ' + level + ' heading.') |
| 1127 .call(doCmd('previousHeading' + level)) | 1126 .call(doCmd('previousHeading' + level)) |
| 1128 .expectSpeech('No previous level ' + level + ' heading.'); | 1127 .expectSpeech('No previous level ' + level + ' heading.'); |
| 1129 }; | 1128 }; |
| 1130 for (var i = 1; i <= 6; i++) | 1129 for (var i = 1; i <= 6; i++) |
| 1131 makeLevelAssertions(i); | 1130 makeLevelAssertions(i); |
| 1132 mockFeedback.replay(); | 1131 mockFeedback.replay(); |
| 1133 }); | 1132 }); |
| 1134 }); | 1133 }); |
| OLD | NEW |