Bug 1433903 - Skip parts of test_nonascii_path.js for Thunderbird. r=emk

This commit is contained in:
Jorg K 2018-01-29 14:48:00 +02:00
parent 8d9f63fff6
commit 4c1552631d

View File

@ -19,7 +19,9 @@ env.set("XPCSHELL_TEST_PROFILE_DIR", file.path);
file = do_get_profile(); // must be called before getting nsIX509CertDB
Assert.ok(/[^\x20-\x7f]/.test(file.path), "the profile path should contain a non-ASCII character");
if (mozinfo.os == "win") {
// Due to 8.3 names being enabled on Thunderbird's Buildbot, this will fail. It passes
// on TaskCluster, so this check can be removed when Buildbot is dropped.
if (mozinfo.os == "win" && AppConstants.MOZ_APP_NAME != "thunderbird") {
file.QueryInterface(Components.interfaces.nsILocalFileWin);
Assert.ok(/[^\x20-\x7f]/.test(file.canonicalPath), "the profile short path should contain a non-ASCII character");
}