Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(152)

Issue 10572043: fix flakiness in testRepeatedHandlers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by felix8a
Modified:
12 years, 8 months ago
Reviewers:
kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

testRepeatedHandlers is occasionally flaky. I'm unable to reproduce the flakiness, but I think it's a timing issue. the test has a mouse event handler that uses setTimeout to call a check function, but the test driver can click and trigger the event handler multiple times before the setTimeout fires. I found the existing logic pretty confusing, and I didn't see any sensible way of fixing it as-is, so I rewrote the logic to be more linear and avoid setTimeout.

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix flakiness in testRepeatedHandlers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -37 lines) Patch
M tests/com/google/caja/plugin/es53-test-domado-events-guest.html View 1 2 chunks +50 lines, -37 lines 0 comments Download

Messages

Total messages: 6
felix8a
12 years, 8 months ago (2013-06-25 22:04:20 UTC) #1
kpreid2
https://codereview.appspot.com/10572043/diff/1/tests/com/google/caja/plugin/es53-test-domado-events-guest.html File tests/com/google/caja/plugin/es53-test-domado-events-guest.html (right): https://codereview.appspot.com/10572043/diff/1/tests/com/google/caja/plugin/es53-test-domado-events-guest.html#newcode371 tests/com/google/caja/plugin/es53-test-domado-events-guest.html:371: var clicks = 0; I don't like the name ...
12 years, 8 months ago (2013-06-26 16:55:33 UTC) #2
felix8a
testRepeatedHandlers is occasionally flaky. I'm unable to reproduce the flakiness, but I think it's a ...
12 years, 8 months ago (2013-07-01 20:39:41 UTC) #3
felix8a
https://codereview.appspot.com/10572043/diff/1/tests/com/google/caja/plugin/es53-test-domado-events-guest.html File tests/com/google/caja/plugin/es53-test-domado-events-guest.html (right): https://codereview.appspot.com/10572043/diff/1/tests/com/google/caja/plugin/es53-test-domado-events-guest.html#newcode371 tests/com/google/caja/plugin/es53-test-domado-events-guest.html:371: var clicks = 0; On 2013/06/26 16:55:33, kpreid2 wrote: ...
12 years, 8 months ago (2013-07-01 20:39:49 UTC) #4
kpreid2
LGTM
12 years, 8 months ago (2013-07-02 18:00:28 UTC) #5
felix8a
12 years, 8 months ago (2013-07-02 18:39:35 UTC) #6
@r5466
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b