Chromium Code Reviews| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
| index 0d336cb51994adbc2c47206ca8c89c0cdcb8d935..24f6150d8341fd99f8a9d659307df2d73feca1c7 100644 |
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
| @@ -69,29 +69,6 @@ SYNC_TEST_F('BackgroundTest', 'NextNamespaces', function() { |
| assertEquals('function', typeof(Background)); |
| }); |
| -/** Tests that ChromeVox reads the desktop tree. */ |
| -TEST_F('BackgroundTest', 'DesktopFocus', function() { |
|
dmazzoni
2015/03/26 18:44:58
Why are we losing this test?
David Tseng
2015/03/26 23:20:47
The initial desktop tree is just the root. Until a
dmazzoni
2015/03/26 23:32:04
I know we can't iterate over all windows easily, b
David Tseng
2015/03/27 17:04:38
How about if we add a helper binding that can focu
|
| - function findStatusTray(root) { |
| - if (root.role == chrome.automation.RoleType.button && |
| - root.attributes.name && |
| - root.attributes.name.indexOf('Status tray') != -1) { |
| - return root; |
| - } |
| - for (var i = 0; i < root.children.length; i++) { |
| - var found = findStatusTray(root.children[i]); |
| - if (found) |
| - return found; |
| - } |
| - return null; |
| - } |
| - |
| - chrome.automation.getDesktop(this.newCallback(function(root) { |
| - var testButton = findStatusTray(root); |
| - cvox.ChromeVox.tts.expectSpeech('Status tray', this.newCallback()); |
| - testButton.focus(); |
| - })); |
| -}); |
| - |
| /** Tests feedback once a page loads. */ |
| TEST_F('BackgroundTest', 'MANUAL_InitialFeedback', function() { |
| cvox.ChromeVox.tts.expectSpeech('start', this.newCallback()); |