RESOLVED FIXED 98366
[GTK] accessibility/ignore-spacer-elements.html is failing
https://bugs.webkit.org/show_bug.cgi?id=98366
Summary [GTK] accessibility/ignore-spacer-elements.html is failing
Zan Dobersek
Reported 2012-10-04 00:40:08 PDT
Attachments
Patch (4.41 KB, patch)
2012-10-16 14:27 PDT, Joanmarie Diggs
no flags
Patch (4.43 KB, patch)
2012-10-16 15:56 PDT, Joanmarie Diggs
no flags
Patch (4.45 KB, patch)
2012-10-16 16:57 PDT, Joanmarie Diggs
no flags
Patch (2.98 KB, patch)
2012-10-17 04:47 PDT, Joanmarie Diggs
no flags
Joanmarie Diggs
Comment 1 2012-10-16 14:27:48 PDT
Joanmarie Diggs
Comment 2 2012-10-16 14:40:11 PDT
Hey Chris. If you have a moment for a review it would be great. Very simple patch (unskipped a test, added a platform exception). However, to make the test more than just pass/fail I modified the original test to use shouldBe() with the childrenCount.
WebKit Review Bot
Comment 3 2012-10-16 15:14:13 PDT
Comment on attachment 169028 [details] Patch Attachment 169028 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14396304 New failing tests: accessibility/ignore-spacer-elements.html
Build Bot
Comment 4 2012-10-16 15:18:32 PDT
Comment on attachment 169028 [details] Patch Attachment 169028 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14400171 New failing tests: accessibility/ignore-spacer-elements.html
Joanmarie Diggs
Comment 5 2012-10-16 15:56:28 PDT
chris fleizach
Comment 6 2012-10-16 16:09:41 PDT
Comment on attachment 169045 [details] Patch Your gtk test expectation is a failure. is that ok
Joanmarie Diggs
Comment 7 2012-10-16 16:40:46 PDT
(In reply to comment #6) > (From update of attachment 169045 [details]) > Your gtk test expectation is a failure. is that ok I *believe* it is a failure in test output only: Officially 4 children are expected to "succeed" -- at least for the Mac port, I assume. But that is not correct for GTK which considers 4 a "failure" and 2 "success". I'd be delighted if there is a way to have it say "PASS" even though the results are different. I generated the test expectations using --new-baseline --add-platform-exceptions as described on http://trac.webkit.org/wiki/NewRunWebKitTests. And when I then run the test, it claims to have run as expected. If the hierarchy were to unexpectedly change and a different number of children were to appear, the regression would be caught. Do you have suggestions for how to make it officially not a failure?
WebKit Review Bot
Comment 8 2012-10-16 16:44:52 PDT
Comment on attachment 169045 [details] Patch Attachment 169045 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14394304 New failing tests: accessibility/ignore-spacer-elements.html
Build Bot
Comment 9 2012-10-16 16:45:50 PDT
Comment on attachment 169045 [details] Patch Attachment 169045 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14394309 New failing tests: accessibility/ignore-spacer-elements.html
Joanmarie Diggs
Comment 10 2012-10-16 16:57:39 PDT
Joanmarie Diggs
Comment 11 2012-10-16 16:58:48 PDT
(I just built the latest webkit on my Mac. The test was failing on the Mac due to a bogus newline I added. Hopefully this will pass EWS.)
chris fleizach
Comment 12 2012-10-16 22:16:21 PDT
Comment on attachment 169059 [details] Patch It doesn't seem like we should remove the Failure keyword if the GTK expected file says FAIL. There are a number of options (maybe more than this) a) Skip this test and add a copy of it just for GTK that has the right value b) add something in DRT to identify GTK builds and conditionalize the test c) change the output so that it doesn't just output childrenCount and instead outputs something more meaningful
Mario Sanchez Prada
Comment 13 2012-10-17 00:34:36 PDT
(In reply to comment #12) > (From update of attachment 169059 [details]) > It doesn't seem like we should remove the Failure keyword if the GTK > expected file says FAIL. Agreed. > There are a number of options (maybe more than this) > a) Skip this test and add a copy of it just for GTK that has the right value I think just placing a copy of the .html file in platform/gtk will give priority to that test, avoiding the one in LayoutTests/accessibility from being executed. > b) add something in DRT to identify GTK builds and conditionalize the test We already have testRunner.platformName for this, which returns an string with the name of the platform ("gtk" for the GTK port). So, in case we went for this option, the test could be rewritten as this: var expectedCount = (testRunner.platform == "gtk") ? 2 : 4; if (container.childrenCount == expectedCount) { result.innerText += "Test passed\n"; } else { result.innerText += "Test failed\n"; } > c) change the output so that it doesn't just output childrenCount and instead outputs something more meaningful If my suggestion for b) works, I think it would be a better (or just a "good enough") approach.
Joanmarie Diggs
Comment 14 2012-10-17 04:13:49 PDT
Thanks guys! (In reply to comment #13) > (In reply to comment #12) > > There are a number of options (maybe more than this) > > a) Skip this test and add a copy of it just for GTK that has the right value > > I think just placing a copy of the .html file in platform/gtk will give priority to that test, avoiding the one in LayoutTests/accessibility from being executed. Personally I'm not jazzed about either of these. Ideally I'd like us to have a (clean) way to get a single set of cross-port tests that work for a11y. > > b) add something in DRT to identify GTK builds and conditionalize the test This I like. :) Better still given this: > We already have testRunner.platformName for this, which returns an string with the name of the platform ("gtk" for the GTK port). > > So, in case we went for this option, the test could be rewritten as this: > > var expectedCount = (testRunner.platform == "gtk") ? 2 : 4; > if (container.childrenCount == expectedCount) { > result.innerText += "Test passed\n"; > } else { > result.innerText += "Test failed\n"; > } Thanks Mario! I'll give that a shot. > > c) change the output so that it doesn't just output childrenCount and instead outputs something more meaningful > > If my suggestion for b) works, I think it would be a better (or just a "good enough") approach. Agreed. Given the platform differences with respect to including and ignoring objects, childrenCount strikes me as extremely relevant with respect to our current set of regression tests -- unless or until we create a full set of hierarchy-related, platform-specific tests, anyway. Thanks again guys!
Joanmarie Diggs
Comment 15 2012-10-17 04:47:29 PDT
Joanmarie Diggs
Comment 16 2012-10-17 04:48:20 PDT
Comment on attachment 169157 [details] Patch Mario's suggestion works like a charm. (Thanks again!)
chris fleizach
Comment 17 2012-10-17 08:23:25 PDT
Comment on attachment 169157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169157&action=review > LayoutTests/accessibility/ignore-spacer-elements.html:29 > + if (container.childrenCount == expectedCount) { this is a pretty bad test that only outputs Test passed with no indication of what might have failed. We should log a bug to rewrite it so it's a little more descriptive
WebKit Review Bot
Comment 18 2012-10-17 08:30:21 PDT
Comment on attachment 169157 [details] Patch Clearing flags on attachment: 169157 Committed r131599: <http://trac.webkit.org/changeset/131599>
WebKit Review Bot
Comment 19 2012-10-17 08:30:25 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.