Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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();
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;
30 ok(true, "Didn't crash");
31 SimpleTest.finish();
32 }
33 ]]></script>
34 <textbox id="tb01" multiline="true"/>
35 </window>