зеркало из https://github.com/mozilla/pjs.git
Bug 581738 - temporarily disable test_punycodeURIs.js on Windows 7
This commit is contained in:
Родитель
be8034895f
Коммит
bd70b18a58
|
@ -93,6 +93,20 @@ function checkFile() {
|
|||
}
|
||||
|
||||
function run_test() {
|
||||
// Disable test on Windows 7 -- bug 581738
|
||||
let isWin7OrHigher = false;
|
||||
let isWindows = ("@mozilla.org/windows-registry-key;1" in Components.classes);
|
||||
if (isWindows) {
|
||||
try {
|
||||
let version = Cc["@mozilla.org/system-info;1"]
|
||||
.getService(Ci.nsIPropertyBag2)
|
||||
.getProperty("version");
|
||||
isWin7OrHigher = (parseFloat(version) >= 6.1);
|
||||
} catch (ex) { }
|
||||
}
|
||||
if (isWin7OrHigher)
|
||||
return;
|
||||
|
||||
// set up the uri to test with
|
||||
var ioService =
|
||||
Components.classes["@mozilla.org/network/io-service;1"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче