1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/test/browser/test-form_sjis.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 1.5 + "http://www.w3.org/TR/REC-html401-19991224/strict.dtd"> 1.6 +<html> 1.7 + <head> 1.8 + <meta http-equiv="content-type" content="text/html; charset=windows-1251"> 1.9 + <title>Shift_JIS in body and text area</title> 1.10 + </head> 1.11 + <body> 1.12 + <h1>Incorrect meta charset</h1> 1.13 + <h2>This page is encoded in Shift_JIS, but has an incorrect meta charset 1.14 + claiming that it is windows-1251</h2> 1.15 + <p id="testpar">ユニコードは、すべての文字に固有の番号を付与します</p> 1.16 + <form> 1.17 + <p> 1.18 + <textarea id="testtextarea" rows=6 cols=60>ユニコードは、すべての文字に固有の番号を付与します</textarea> 1.19 + <input id="testinput" type="text" size=60 value="ユニコードは、すべての文字に固有の番号を付与します"> 1.20 + </p> 1.21 + </form> 1.22 + <h2>Expected text on load:</h2> 1.23 + <p>ѓ†ѓjѓRЃ[ѓh‚НЃA‚·‚Ч‚Д‚М•¶Ћљ‚ЙЊЕ—L‚М”ФЌ†‚р•t—^‚µ‚Ь‚·</p> 1.24 + <h2>Expected text on resetting the encoding to Shift_JIS:</h2> 1.25 + <p>ユニコードは、すべての文字に固有の番号を付与します</p> 1.26 + </body> 1.27 +</html>