Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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"/>
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">
15 setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
17 var testType = navigator.mimeTypes["application/x-test"];
18 var testTypeCap = navigator.mimeTypes["Application/x-Test"];
19 var testTypeCap2 = navigator.mimeTypes["APPLICATION/X-TEST"];
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");
25 </script>
26 </body>
27 </html>