From 14fcfc3d81c7af3d1281ee895cf4aa4d0e5494e3 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 25 Aug 2015 15:01:00 +0200 Subject: [PATCH] Bug 1167627 - Part 8: Use mozinfo in image/. --- image/test/unit/test_imgtools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/test/unit/test_imgtools.js b/image/test/unit/test_imgtools.js index f7bd7c1c5074..25e72fa0a789 100644 --- a/image/test/unit/test_imgtools.js +++ b/image/test/unit/test_imgtools.js @@ -130,7 +130,7 @@ if (!imgTools) // different set of reference images. nsIXULRuntime.OS doesn't seem to be // available in xpcshell, so we'll use this as a kludgy way to figure out if // we're running on Windows. -var isWindows = ("@mozilla.org/windows-registry-key;1" in Cc); +var isWindows = mozinfo.os == "win"; /* ========== 1 ========== */