Bug 581738 - temporarily disable test_punycodeURIs.js on Windows 7

This commit is contained in:
Justin Dolske 2010-07-24 17:42:22 -07:00
parent d757e4d425
commit ce4886b887

View File

@ -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"]