Closed
Bug 1355179
Opened 8 years ago
Closed 8 years ago
Remove B2G special cases in layout/base/tests
Categories
(Core :: Layout, enhancement)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
I just ran across a B2G special case in the test layout/base/tests/test_reftests_with_caret.html
Filing this bug on removing that special case, per bug 1306391.
Assignee | ||
Comment 1•8 years ago
|
||
Actually, I ran across one other test that needs similar fixup, so I'm generifying this bug a bit to cover the whole layout/base/tests directory.
Component: Layout: Text → Layout
Summary: Remove B2G special case in test_reftests_with_caret.html → Remove B2G special cases in layout/base/tests
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•8 years ago
|
||
The second change is slightly more complex -- I saw a few mentions of B2G in that file, so I'm just backing out all of the changes that landed to that file in that cset (since they all seem related to making it B2G-friendly), as the commit message notes.
For reference, here's the changeset whose layout/base/tests changes I'm reverting here:
https://hg.mozilla.org/mozilla-central/rev/7f0e4f31589e
...and that was in response to bug 1190541 comment 23 (2nd half).
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8856677 [details]
Bug 1355179 part 1: Remove always-true-now checks for !=B2G in test_reftests_with_caret.html.
https://reviewboard.mozilla.org/r/128614/#review131018
You got me all excited to r+ code deletion. What a letdown! :p
Attachment #8856677 -
Flags: review?(bugmail) → review+
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8856678 [details]
Bug 1355179 part 2: Add comment about porting B2G checks to be Android checks in test_event_target_radius.html.
https://reviewboard.mozilla.org/r/128616/#review131020
Hm, I'll give this an r+ but I'd actually rather just the "B2G" check to a general android check, and keep the code. Although the code appears to be B2G-specific, it's actually valid for any platform that supports zooming, which includes Android. It's just that this entire directory of tests is skipped on Android, so this test is never exercised in that configuration. I hope that some day we will exercise it on that configuration, and in that case it would be useful to keep the code rather than have to reinvent it to fix the failure that would result.
Attachment #8856678 -
Flags: review?(bugmail) → review+
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #6)
> Comment on attachment 8856678 [details]
> Bug 1355179 part 2: Revert B2G-specific changes to
> test_event_target_radius.html.
>
> https://reviewboard.mozilla.org/r/128616/#review131020
>
> It's just that this entire directory of tests is
> skipped on Android
Really? Yikes, you're right! mochitest.ini has "skip-if = toolkit == 'android'"
It looks like this directory has been skipped *forever* on Android. The exclusion dates back to this line:
http://searchfox.org/mozilla-central/rev/b70337e19a136ae911afc40e3aa0866973765834/testing/mochitest/android.json#331
...and before that, we had a whitelist of tests-to-actually-run instead of a blacklist of tests-to-skip.
So, this directory has never been run on Android, AFIACT. :(
> so this test is never exercised in that configuration. I
> hope that some day we will exercise it on that configuration, and in that
> case it would be useful to keep the code rather than have to reinvent it to
> fix the failure that would result.
Very much agreed. I'm going to:
(A) file a followup bug on getting these tests running on Android (which I don't have cycles to drive at the moment but which definitely feels like something we should track/aspire-to)
(B) Revert all my changes in "Part 2" here, and instead make Part 2 have a comment pointing at the bug that I'm suggesting filing, to say that we should adjust the B2G checks in that testcase to be Android checks instead, as-needed.
Comment 8•8 years ago
|
||
Sounds good, thanks!
Assignee | ||
Comment 9•8 years ago
|
||
I filed bug 1355206 on getting this folder of tests to run on Android.
Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/67ed44b3f67e
part 1: Remove always-true-now checks for !=B2G in test_reftests_with_caret.html. r=kats
https://hg.mozilla.org/integration/autoland/rev/6aec2cb43d81
part 2: Add comment about porting B2G checks to be Android checks in test_event_target_radius.html. r=kats
Comment 12•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/67ed44b3f67e
https://hg.mozilla.org/mozilla-central/rev/6aec2cb43d81
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•