Bug 1386393 - remove old docshell/test/unit/test_bug414201_jfif.js. rs=paolo
authorJoel Maher <jmaher@mozilla.com>
Tue, 22 Aug 2017 15:45:39 -0400
changeset 376135 bdc0a51d961fec932a10f5692fe8047f7d763e29
parent 376134 f139e3a8bb1592bc49806745633cb07aaae1fc8f
child 376136 6e60169d34d337fe3be5c306cfd0246a02d24f5a
push id94041
push userjmaher@mozilla.com
push dateTue, 22 Aug 2017 19:58:17 +0000
treeherdermozilla-inbound@bdc0a51d961f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaolo
bugs1386393
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1386393 - remove old docshell/test/unit/test_bug414201_jfif.js. rs=paolo MozReview-Commit-ID: A5Ip1e8Fw2r
docshell/test/unit/test_bug414201_jfif.js
docshell/test/unit/xpcshell.ini
deleted file mode 100644
--- a/docshell/test/unit/test_bug414201_jfif.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/*
- * Test for bug 414201
- */
-
-function run_test()
-{
-    var ms = Components.classes["@mozilla.org/mime;1"].getService(Components.interfaces.nsIMIMEService);
-
-    /* Test a few common image types to make sure that they get the right extension */
-    var types = {
-        "image/jpeg": ["jpg", "jpeg"], /* accept either */
-        "image/gif": ["gif"],
-        "image/png": ["png"]
-    };
-
-    /* Check whether the primary extension is what we'd expect */
-    for (var mimetype in types) {
-        var exts = types[mimetype];
-        var primary = ms.getFromTypeAndExtension(mimetype, null).primaryExtension.toLowerCase();
-
-        do_check_true (exts.indexOf(primary) != -1);
-    }
-}
--- a/docshell/test/unit/xpcshell.ini
+++ b/docshell/test/unit/xpcshell.ini
@@ -1,12 +1,11 @@
 [DEFAULT]
 head = head_docshell.js
 
-[test_bug414201_jfif.js]
 [test_bug442584.js]
 [test_nsDefaultURIFixup.js]
 [test_nsDefaultURIFixup_search.js]
 skip-if = os == 'android'
 [test_nsDefaultURIFixup_info.js]
 skip-if = os == 'android'
 [test_nsIDownloadHistory.js]
 [test_pb_notification.js]