test_general.xhtml (1589B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> 3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" 4 type="text/css"?> 5 6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 7 xmlns:html="http://www.w3.org/1999/xhtml" 8 title="Tests: XUL label text interface"> 9 10 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> 11 <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> 12 13 <script type="application/javascript" 14 src="../common.js"></script> 15 <script type="application/javascript" 16 src="../role.js"></script> 17 <script type="application/javascript" 18 src="../attributes.js"></script> 19 20 <script type="application/javascript"> 21 <![CDATA[ 22 //////////////////////////////////////////////////////////////////////////// 23 // Testing 24 25 function doTests() 26 { 27 ////////////////////////////////////////////////////////////////////////// 28 // XUL label 29 30 testTextAttrs("label1", 0, {}, {}, 0, 5, true); 31 testTextAttrs("label2", 0, {}, {}, 0, 5, true); 32 SimpleTest.finish(); 33 } 34 35 SimpleTest.waitForExplicitFinish(); 36 addA11yLoadEvent(doTests); 37 ]]> 38 </script> 39 40 <vbox flex="1" style="overflow: auto;"> 41 <body xmlns="http://www.w3.org/1999/xhtml"> 42 <p id="display"></p> 43 <div id="content" style="display: none"> 44 </div> 45 <pre id="test"> 46 </pre> 47 </body> 48 <label id="label1" value="Hello"/> 49 <label id="label2">Hello</label> 50 </vbox> 51 </window>