|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
|
3 <?xml-stylesheet |
|
4 href="chrome://mochikit/content/tests/SimpleTest/test.css" |
|
5 type="text/css"?> |
|
6 <!-- |
|
7 https://bugzilla.mozilla.org/show_bug.cgi?id=570192 |
|
8 --> |
|
9 <window title="Mozilla Bug 558406" |
|
10 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
11 |
|
12 <script type="application/javascript" |
|
13 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
14 <script type="application/javascript" |
|
15 src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script> |
|
16 <script type="application/javascript" |
|
17 src="RegisterUnregisterChrome.js"></script> |
|
18 |
|
19 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
20 <a target="_blank" |
|
21 href="https://bugzilla.mozilla.org/show_bug.cgi?id=570192"> |
|
22 Mozilla Bug 570192 |
|
23 </a> |
|
24 |
|
25 <p id="display"> |
|
26 </p> |
|
27 <div id="content" style="display: none"> |
|
28 </div> |
|
29 <pre id="test"> |
|
30 </pre> |
|
31 </body> |
|
32 |
|
33 <script type="application/javascript"> |
|
34 <![CDATA[ |
|
35 |
|
36 addLoadEvent(function() { |
|
37 try { |
|
38 var content = document.getElementById("content"); |
|
39 content.innerHTML = '<textbox newlines="pasteintact" ' + |
|
40 'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>'; |
|
41 var textbox = content.firstChild; |
|
42 ok(textbox, "created the textbox"); |
|
43 ok(!textbox.editor, "do we have an editor?"); |
|
44 } catch (e) { |
|
45 ok(false, "Got an exception: " + e); |
|
46 } |
|
47 SimpleTest.finish(); |
|
48 }); |
|
49 SimpleTest.waitForExplicitFinish(); |
|
50 |
|
51 ]]> |
|
52 </script> |
|
53 </window> |