1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/mochitest/test_bug985859.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<!doctype html> 1.5 +<html> 1.6 +<head> 1.7 + <title>Test for Bug 985859</title> 1.8 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <script type="text/javascript" src="utils.js"></script> 1.10 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.11 + 1.12 + <meta http-equiv="content-type" content="text/html; charset=utf-8"> 1.13 + <base href="chrome://browser/content/"> 1.14 +</head> 1.15 +<body> 1.16 +<script type="application/javascript"> 1.17 + 1.18 +setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); 1.19 + 1.20 +var testType = navigator.mimeTypes["application/x-test"]; 1.21 +var testTypeCap = navigator.mimeTypes["Application/x-Test"]; 1.22 +var testTypeCap2 = navigator.mimeTypes["APPLICATION/X-TEST"]; 1.23 + 1.24 +ok(testType, "Test plugin should be found"); 1.25 +is(testType, testTypeCap, "navigator.mimeTypes should be case insensitive"); 1.26 +is(testType, testTypeCap2, "navigator.mimeTypes should be case insensitive"); 1.27 + 1.28 +</script> 1.29 +</body> 1.30 +</html>