|
1 <!doctype html> |
|
2 <html> |
|
3 <head> |
|
4 <title>Test for Bug 985859</title> |
|
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <script type="text/javascript" src="utils.js"></script> |
|
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
8 |
|
9 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
10 <base href="chrome://browser/content/"> |
|
11 </head> |
|
12 <body> |
|
13 <script type="application/javascript"> |
|
14 |
|
15 setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); |
|
16 |
|
17 var testType = navigator.mimeTypes["application/x-test"]; |
|
18 var testTypeCap = navigator.mimeTypes["Application/x-Test"]; |
|
19 var testTypeCap2 = navigator.mimeTypes["APPLICATION/X-TEST"]; |
|
20 |
|
21 ok(testType, "Test plugin should be found"); |
|
22 is(testType, testTypeCap, "navigator.mimeTypes should be case insensitive"); |
|
23 is(testType, testTypeCap2, "navigator.mimeTypes should be case insensitive"); |
|
24 |
|
25 </script> |
|
26 </body> |
|
27 </html> |