Closed
Bug 1121327
Opened 10 years ago
Closed 10 years ago
OSX variable in reftest condition sandbox needs to handle 10.10 (Yosemite) better
Categories
(Testing :: Reftest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla38
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(2 files)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Bug 789771 added an OSX refvaiable to the reftest condition sandbox, whose value is a float with the OS X version.
This can be used in conditions like fails-if(OSX<10.8).
On 10.10 (Yosemite), however, it has the value 10.1. We should probably change the variable to OSX10 and the value to the bit after the float, as an integer.
Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Alternately, perhaps strip out the dot and just make it an integer (with a leading zero for the minor version) like 10.8 -> 1008, 10.10 -> 1010.
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #2)
> Alternately, perhaps strip out the dot and just make it an integer (with a
> leading zero for the minor version) like 10.8 -> 1008, 10.10 -> 1010.
Yeah, that's probably better.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Using undefined has the advantage that we can use < and > tests with the
OSX variable. (We currently have no such tests in the tree, perhaps
partly because they didn't work with non-OSX being 0.)
Attachment #8549387 -
Flags: review?(ted)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8549388 -
Flags: review?(ted)
Comment 7•10 years ago
|
||
Comment on attachment 8549387 [details] [diff] [review]
patch 1 - Make the OSX variable in the reftest condition sandbox be an integer (1006, 1010) so that it scales for 10.10, and undefined for non-Mac rather than 0
Review of attachment 8549387 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/tools/reftest/reftest.js
@@ +669,5 @@
> httpProps.forEach((x) => sandbox.http[x] = hh[x]);
>
> + // Set OSX to be the Mac OS X version, as an integer, or undefined
> + // for other platforms. The integer is formed by 100 times the
> + // major verion plus the minor version, so 1006 for 10.6, 1010 for
typo: version
Attachment #8549387 -
Flags: review?(ted) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8549388 [details] [diff] [review]
patch 2 - Update reftest and crashtest manifests for new OSX variable in condition sandbox
Review of attachment 8549388 [details] [diff] [review]:
-----------------------------------------------------------------
Given that we don't have tests running on anything >10.8 in automation (10.10 was just stood up on Cedar but is not green yet) I suspect a lot of these "OSX==1008" actually want to be "OSX>1008" and likewise "OSX==1007||OSX==1008" might really want to be "OSX>1007".
Attachment #8549388 -
Flags: review?(ted) → review+
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #8)
> Given that we don't have tests running on anything >10.8 in automation
> (10.10 was just stood up on Cedar but is not green yet) I suspect a lot of
> these "OSX==1008" actually want to be "OSX>1008" and likewise
> "OSX==1007||OSX==1008" might really want to be "OSX>1007".
Agreed; that's the next step.
Assignee | ||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6084da03dcd8
https://hg.mozilla.org/mozilla-central/rev/4323060230fb
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•