Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / base / test / test_bug708620.html
blobd6b5b0c6d835e2b136885180349a2b35b7b49d66
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 **/
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 ]);
32 window.onload = function () {
33 document.getElementsByTagName("iframe")[0].src = "file_bug708620.html";
36 function finish() {
37 SimpleTest.endMonitorConsole();
39 </script>
40 </body>
41 </html>