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

Issue 938623003: Fix ChromeVox next tests to fail instead of timing out where applicable. (Closed)

Created:
5 years, 10 months ago by Peter Lundblad
Modified:
5 years, 9 months ago
Reviewers:
David Tseng
CC:
chromium-reviews, dtseng+watch_chromium.org, je_julie(Not used), nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ChromeVox next tests to fail instead of timing out where applicable. When calling an sync method in a test, you need to wrap the passed callback in continueTest that will call testDone if the callback stops aunexpectedly. This makes developing easier since the tests report immediately instead of having to wait for a timeout. R=dtseng@chromium.org BUG=None Committed: https://crrev.com/87608bd0935bfdb37b8ad490c68b795c55ffd18d Cr-Commit-Position: refs/heads/master@{#320711}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase, add missing input file in chroemvox_tests.gypi #

Patch Set 3 : Simplify async callback handling in the tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -243 lines) Patch
M chrome/browser/resources/chromeos/chromevox/braille/braille_table_test.extjs View 1 2 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs View 1 2 4 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/braille/liblouis.js View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/braille/liblouis_test.extjs View 1 2 10 chunks +28 lines, -37 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs View 1 2 22 chunks +23 lines, -42 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions_test.unitjs View 1 2 13 chunks +7 lines, -17 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_manager_test.unitjs View 1 2 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/user_commands_test.unitjs View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox_tests.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs View 1 2 4 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 4 chunks +65 lines, -64 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
A chrome/browser/resources/chromeos/chromevox/testing/callback_helper.js View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js View 1 2 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js View 1 2 1 chunk +10 lines, -16 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_unittest_base.js View 1 2 4 chunks +29 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/mock_tts.js View 1 2 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Peter Lundblad
5 years, 10 months ago (2015-02-18 15:20:04 UTC) #1
David Tseng
I'm not sure this is the way I'd fix the cursors test. I'd perhaps try ...
5 years, 10 months ago (2015-02-18 17:27:40 UTC) #2
Peter Lundblad
dtseng@chromium.org writes: > I'm not sure this is the way I'd fix the cursors test. ...
5 years, 10 months ago (2015-02-19 14:23:12 UTC) #3
David Tseng
I think this is a good change, given test_api.js. Thinking about it a little more, ...
5 years, 10 months ago (2015-02-19 19:22:25 UTC) #4
Peter Lundblad
dtseng@chromium.org writes: > I think this is a good change, given test_api.js. > > Thinking ...
5 years, 10 months ago (2015-02-20 10:31:28 UTC) #5
David Tseng
Let me clarify by suggesting what I want: assert* throws an exception and we fail ...
5 years, 10 months ago (2015-02-20 16:46:12 UTC) #6
Peter Lundblad
PTAL Hi, To make our code more streamlined, I added a utility class that is ...
5 years, 9 months ago (2015-03-13 16:01:06 UTC) #7
David Tseng
lgtm
5 years, 9 months ago (2015-03-13 22:20:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938623003/40001
5 years, 9 months ago (2015-03-16 11:45:45 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-16 12:09:23 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 12:10:14 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/87608bd0935bfdb37b8ad490c68b795c55ffd18d
Cr-Commit-Position: refs/heads/master@{#320711}

Powered by Google App Engine
This is Rietveld 408576698