mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
better way to make a xpcshell mac-only without any #ifdefs available.
This commit is contained in:
parent
1e6a760ca0
commit
c0030bd82e
@ -1,8 +1,7 @@
|
||||
function run_test() {
|
||||
// this is a hack to skip the rest of the code on non-Mac platforms,
|
||||
// since #ifdef is not available to xpcshell tests...
|
||||
var thisFile = do_get_file("xpcom/tests/unit/test_mac_bundle.js");
|
||||
if (!thisFile instanceof Components.interfaces.nsILocalFileMac)
|
||||
if (!("nsILocalFileMac" in Components.interfaces))
|
||||
return;
|
||||
|
||||
// OK, here's the real part of the test:
|
||||
|
Loading…
Reference in New Issue
Block a user