WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
99671
Refactor picker tests to avoid flakiness and share code
https://bugs.webkit.org/show_bug.cgi?id=99671
Summary
Refactor picker tests to avoid flakiness and share code
Keishi Hattori
Reported
2012-10-17 19:01:50 PDT
Refactor picker tests to avoid flakiness and share code
Attachments
Patch
(177.33 KB, patch)
2012-10-18 19:22 PDT
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Patch
(174.53 KB, patch)
2012-10-18 20:39 PDT
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Patch
(175.14 KB, patch)
2012-10-21 21:31 PDT
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Keishi Hattori
Comment 1
2012-10-18 19:22:16 PDT
Created
attachment 169535
[details]
Patch
Kent Tamura
Comment 2
2012-10-18 19:31:39 PDT
Comment on
attachment 169535
[details]
Patch Please rebase.
Keishi Hattori
Comment 3
2012-10-18 20:39:16 PDT
Created
attachment 169540
[details]
Patch
WebKit Review Bot
Comment 4
2012-10-18 21:28:17 PDT
Comment on
attachment 169540
[details]
Patch
Attachment 169540
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14455367
New failing tests: platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.html platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-key-operations.html
Kent Tamura
Comment 5
2012-10-18 21:30:15 PDT
Comment on
attachment 169540
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=169540&action=review
> LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-step.html:22 > +openPicker(document.getElementById('date'), finishTest); > + > function finishTest() { > - popupWindow.removeEventListener('resize', finishTest); > - setTimeout(function() { testRunner.notifyDone(); }, 0); > + finishJSTest();
We can remove finishTest by openPicker(document...., finishJSTest);
> LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance.html:22 > +openPicker(document.getElementById('date'), finishTest); > + > function finishTest() { > - console.log(popupWindow.pagePopupController); > - popupWindow.removeEventListener('resize', finishTest); > - setTimeout(function() {testRunner.notifyDone();}, 0); > + finishJSTest(); > }
ditto.
> LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-one-row-appearance.html:24 > +openPicker(document.getElementById('color'), test); > > -document.getElementById('color').focus(); > -if (window.eventSender) > - eventSender.keyDown(' '); > -var pickerWindow = document.getElementById('mock-page-popup').contentWindow; > -pickerWindow.onresize = function() { > - testRunner.notifyDone(); > +function test() { > + finishJSTest(); > }
ditto.
> LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-two-row-appearance.html:30 > +openPicker(document.getElementById('color'), test); > > -document.getElementById('color').focus(); > -if (window.eventSender) > - eventSender.keyDown(' '); > -var pickerWindow = document.getElementById('mock-page-popup').contentWindow; > -pickerWindow.onresize = function() { > - testRunner.notifyDone(); > +function test() { > + finishJSTest(); > }
ditto.
> LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-with-scrollbar-appearance.html:59 > +openPicker(document.getElementById('color'), test); > > -document.getElementById('color').focus(); > -if (window.eventSender) > - eventSender.keyDown(' '); > -var pickerWindow = document.getElementById('mock-page-popup').contentWindow; > -pickerWindow.onresize = function() { > - testRunner.notifyDone(); > +function test() { > + finishJSTest(); > }
ditto.
> LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-appearance-rtl.html:44 > +<script> > +openPicker(document.getElementById('date'), finishTest); > > function finishTest() { > - popupWindow.removeEventListener('resize', finishTest); > - setTimeout(function() { testRunner.notifyDone(); }, 0); > + finishJSTest(); > }
ditto.
> LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-appearance.html:48 > +openPicker(document.getElementById('date'), finishTest); > + > function finishTest() { > - popupWindow.removeEventListener('resize', finishTest); > popupWindow.focus(); > eventSender.keyDown('downArrow'); > - setTimeout(function() {testRunner.notifyDone();}, 0); > + finishJSTest(); > }
ditto.
Keishi Hattori
Comment 6
2012-10-21 21:31:14 PDT
Created
attachment 169828
[details]
Patch
Kent Tamura
Comment 7
2012-10-21 21:54:13 PDT
Comment on
attachment 169828
[details]
Patch looks good
WebKit Review Bot
Comment 8
2012-10-21 22:08:31 PDT
Comment on
attachment 169828
[details]
Patch Clearing flags on attachment: 169828 Committed
r132028
: <
http://trac.webkit.org/changeset/132028
>
WebKit Review Bot
Comment 9
2012-10-21 22:08:36 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug