| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 .expectSpeech('checked') | 588 .expectSpeech('checked') |
| 589 .call(click) | 589 .call(click) |
| 590 .expectSpeech('go') | 590 .expectSpeech('go') |
| 591 .expectSpeech('Check box') | 591 .expectSpeech('Check box') |
| 592 .expectSpeech('not checked') | 592 .expectSpeech('not checked') |
| 593 .replay(); | 593 .replay(); |
| 594 }); | 594 }); |
| 595 }); | 595 }); |
| 596 | 596 |
| 597 /** Tests navigating into and out of iframes.. */ | 597 /** Tests navigating into and out of iframes.. */ |
| 598 TEST_F('BackgroundTest', 'ForwardNavigationThroughIframes', function() { | 598 TEST_F('BackgroundTest', 'DISABLED_ForwardNavigationThroughIframes', function()
{ |
| 599 var mockFeedback = this.createMockFeedback(); | 599 var mockFeedback = this.createMockFeedback(); |
| 600 | 600 |
| 601 var runTestIfIframeIsLoaded = function(rootNode) { | 601 var runTestIfIframeIsLoaded = function(rootNode) { |
| 602 // Return if the iframe hasn't loaded yet. | 602 // Return if the iframe hasn't loaded yet. |
| 603 var iframe = rootNode.find({role: 'iframe'}); | 603 var iframe = rootNode.find({role: 'iframe'}); |
| 604 var childDoc = iframe.firstChild; | 604 var childDoc = iframe.firstChild; |
| 605 if (childDoc && childDoc.children.length == 0) { | 605 if (childDoc && childDoc.children.length == 0) { |
| 606 return; | 606 return; |
| 607 } | 607 } |
| 608 | 608 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 623 this.runWithLoadedTree(this.iframesDoc, function(rootNode) { | 623 this.runWithLoadedTree(this.iframesDoc, function(rootNode) { |
| 624 chrome.automation.getDesktop(function(desktopNode) { | 624 chrome.automation.getDesktop(function(desktopNode) { |
| 625 runTestIfIframeIsLoaded(rootNode); | 625 runTestIfIframeIsLoaded(rootNode); |
| 626 | 626 |
| 627 desktopNode.addEventListener('loadComplete', function(evt) { | 627 desktopNode.addEventListener('loadComplete', function(evt) { |
| 628 runTestIfIframeIsLoaded(rootNode); | 628 runTestIfIframeIsLoaded(rootNode); |
| 629 }, true); | 629 }, true); |
| 630 }); | 630 }); |
| 631 }); | 631 }); |
| 632 }); | 632 }); |
| OLD | NEW |