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

Issue 13414043: fix rare flakiness in domado-events testRepeatedHandlers (Closed)

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

Description

This addresses https://code.google.com/p/google-caja/issues/detail?id=1779 Symptom is we expect mousedown,1,mousedown,3,mouseup,1,mouseup,3 but we get mouseup,1,mouseup,3 I haven't been able to reproduce it, but I think what's happening is that the webdriver click() puts a small delay between mousedown and mouseup events, and in that interval we happen to run the testcase, which installs mousedown and mouseup handlers, and then sees results from just the mouseup events firing. This fix just reduces the test to mouseup handlers, since it's intended to test that repeated calls to addEventListener do the expected thing, and there's nothing special about testing both mouseup and mousedown.

Patch Set 1 #

Patch Set 2 : fix rare flakiness in domado-events testRepeatedHandlers #

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

Messages

Total messages: 6
felix8a
12 years, 6 months ago (2013-08-29 23:11:48 UTC) #1
kpreid2
I agree that there's nothing special about the mousedown/mouseup pairing, but this test is exercising ...
12 years, 6 months ago (2013-08-29 23:39:49 UTC) #2
felix8a
This addresses https://code.google.com/p/google-caja/issues/detail?id=1779 Symptom is we expect mousedown,1,mousedown,3,mouseup,1,mouseup,3 but we get mouseup,1,mouseup,3 I haven't been ...
12 years, 6 months ago (2013-08-30 00:13:32 UTC) #3
felix8a
On 2013/08/29 23:39:49, kpreid2 wrote: > I agree that there's nothing special about the mousedown/mouseup ...
12 years, 6 months ago (2013-08-30 00:14:11 UTC) #4
kpreid2
LGTM
12 years, 6 months ago (2013-08-30 18:25:38 UTC) #5
felix8a
12 years, 6 months ago (2013-08-30 18:56:10 UTC) #6
@r5587
Sign in to reply to this message.

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