Open
Bug 1050205
Opened 10 years ago
Updated 2 years ago
Expose OS to mochitest
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
NEW
People
(Reporter: gfritzsche, Unassigned)
References
Details
We have custom tests for the operating system spread across our tests, e.g.: http://dxr.mozilla.org/mozilla-central/search?q=iswindows+path%3Atest&case=false isWindows, gIsWindows, isOSX, gIsOsx, ... We should just expose a property for that to the tests from a single location.
Reporter | ||
Comment 1•10 years ago
|
||
See also bug 1050207 for the xpcshell incarnation.
See Also: → 1050207
Comment 2•10 years ago
|
||
I think it'd be great to just load the mozinfo.json file we already use for manifest parsing, and make it available in global scope, so you could say "if (mozinfo.os == 'windows')".
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•