|
1 -<!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=920977 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>Test for Bug 920977 </title> |
|
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
11 </head> |
|
12 <body> |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=920977">Mozilla Bug 920977 </a> |
|
14 <p id="display"></p> |
|
15 <div id="content" style="display: none"></div> |
|
16 <pre id="test"> |
|
17 <script type="application/javascript;version=1.8" src="file_framework.js"></script> |
|
18 <script type="application/javascript;version=1.8"> |
|
19 function verifier(success, failure) { |
|
20 try { |
|
21 if (!this.getObj()) { |
|
22 failure("Did not receive proper object"); |
|
23 return; |
|
24 } |
|
25 } catch (e) { |
|
26 failure("Received exception!: " + e); |
|
27 return; |
|
28 } |
|
29 |
|
30 try { |
|
31 this.getObj().removeFocus(); |
|
32 failure("Should receive exception when accessing system only method.!"); |
|
33 } catch (e) { |
|
34 success(this.perm); |
|
35 } |
|
36 } |
|
37 |
|
38 var gData = [ |
|
39 { |
|
40 perm: ["input"], |
|
41 obj: "mozInputMethod", |
|
42 webidl: "MozInputMethod", |
|
43 settings: [["dom.mozInputMethod.enabled", true]], |
|
44 verifier: verifier.toSource() |
|
45 } |
|
46 ] |
|
47 </script> |
|
48 </pre> |
|
49 </body> |
|
50 </html> |
|
51 |