1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug708620.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +<!doctype html> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=708620 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 708620</title> 1.12 + <script src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.14 +</head> 1.15 +<body> 1.16 +<a target="_blank" 1.17 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=708620" 1.18 + >Mozilla Bug 708620</a> 1.19 +<iframe></iframe> 1.20 +<script> 1.21 +/** Test for Bug 708620 **/ 1.22 + 1.23 +SimpleTest.waitForExplicitFinish(); 1.24 +SimpleTest.monitorConsole(SimpleTest.finish, [ 1.25 + { errorMessage: "A form was submitted in the windows-1252 encoding "+ 1.26 + "which cannot encode all Unicode characters, so user "+ 1.27 + "input may get corrupted. To avoid this problem, the "+ 1.28 + "page should be changed so that the form is submitted "+ 1.29 + "in the UTF-8 encoding either by changing the encoding "+ 1.30 + "of the page itself to UTF-8 or by specifying "+ 1.31 + "accept-charset=utf-8 on the form element.", 1.32 + isWarning: true } 1.33 +]); 1.34 + 1.35 +window.onload = function () { 1.36 + document.getElementsByTagName("iframe")[0].src = "file_bug708620.html"; 1.37 +} 1.38 + 1.39 +function finish() { 1.40 + SimpleTest.endMonitorConsole(); 1.41 +} 1.42 +</script> 1.43 +</body> 1.44 +</html>