Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6137)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs

Issue 938623003: Fix ChromeVox next tests to fail instead of timing out where applicable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 7ed70f7cf4bc690fd7ee01e4e34a258d858f5d19..2cf8c8eaf4217ecf336e73a674fb13704fb03216 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -83,11 +83,13 @@ TEST_F('BackgroundTest', 'DesktopFocus', function() {
return null;
}
- chrome.automation.getDesktop(function(root) {
- var testButton = findStatusTray(root);
- cvox.ChromeVox.tts.expectSpeech('Status tray', testDone);
- testButton.focus();
- });
+ chrome.automation.getDesktop(this.continueTest(
+ WhenTestDone.ASSERT,
+ function(root) {
+ var testButton = findStatusTray(root);
+ cvox.ChromeVox.tts.expectSpeech('Status tray', testDone);
+ testButton.focus();
+ }));
});
/** Tests feedback once a page loads. */

Powered by Google App Engine
This is Rietveld 408576698