Bug 978127 - Update various win8 specific australis customized ui tests to use new Services.metro.supported prop. r=gijs

This commit is contained in:
Jim Mathies 2014-02-28 17:40:34 -06:00
parent 8f1a74a6da
commit 489491b4d6

View File

@ -60,12 +60,9 @@ function resetCustomization() {
}
function isInWin8() {
let sysInfo = Services.sysinfo;
let osName = sysInfo.getProperty("name");
let version = sysInfo.getProperty("version");
// Windows 8 is version >= 6.2
return osName == "Windows_NT" && version >= 6.2;
if (!Services.metro)
return false;
return Services.metro.supported;
}
function addSwitchToMetroButtonInWindows8(areaPanelPlacements) {