|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
|
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" |
|
4 type="text/css"?> |
|
5 <!-- |
|
6 https://bugzilla.mozilla.org/show_bug.cgi?id=504311 |
|
7 --> |
|
8 <window title="Mozilla Bug 504311" |
|
9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
10 onload="doTest()"> |
|
11 <script type="application/javascript" |
|
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
13 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
14 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=504311" |
|
15 target="_blank">Mozilla Bug 504311</a> |
|
16 </body> |
|
17 <!-- test code goes here --> |
|
18 <script type="application/javascript"> |
|
19 <![CDATA[ |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 |
|
22 function doTest() |
|
23 { |
|
24 var tb = document.getElementById("tb01"); |
|
25 var inputField = tb.inputField; |
|
26 var editor = inputField.QueryInterface(Components.interfaces.nsIDOMNSEditableElement).editor; |
|
27 editor = editor.QueryInterface(Components.interfaces.nsIPlaintextEditor); |
|
28 editor.wrapWidth = -1; |
|
29 |
|
30 ok(true, "Didn't crash"); |
|
31 SimpleTest.finish(); |
|
32 } |
|
33 ]]></script> |
|
34 <textbox id="tb01" multiline="true"/> |
|
35 </window> |