|
1 <!doctype html> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=708620 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>Test for Bug 708620</title> |
|
9 <script src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" href="/tests/SimpleTest/test.css"> |
|
11 </head> |
|
12 <body> |
|
13 <a target="_blank" |
|
14 href="https://bugzilla.mozilla.org/show_bug.cgi?id=708620" |
|
15 >Mozilla Bug 708620</a> |
|
16 <iframe></iframe> |
|
17 <script> |
|
18 /** Test for Bug 708620 **/ |
|
19 |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 SimpleTest.monitorConsole(SimpleTest.finish, [ |
|
22 { errorMessage: "A form was submitted in the windows-1252 encoding "+ |
|
23 "which cannot encode all Unicode characters, so user "+ |
|
24 "input may get corrupted. To avoid this problem, the "+ |
|
25 "page should be changed so that the form is submitted "+ |
|
26 "in the UTF-8 encoding either by changing the encoding "+ |
|
27 "of the page itself to UTF-8 or by specifying "+ |
|
28 "accept-charset=utf-8 on the form element.", |
|
29 isWarning: true } |
|
30 ]); |
|
31 |
|
32 window.onload = function () { |
|
33 document.getElementsByTagName("iframe")[0].src = "file_bug708620.html"; |
|
34 } |
|
35 |
|
36 function finish() { |
|
37 SimpleTest.endMonitorConsole(); |
|
38 } |
|
39 </script> |
|
40 </body> |
|
41 </html> |