1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/tests/mochitest/tree/test_groupbox.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,64 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" 1.7 + type="text/css"?> 1.8 + 1.9 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.10 + title="Accessible XUL groupbox hierarchy tests"> 1.11 + 1.12 + <script type="application/javascript" 1.13 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> 1.14 + 1.15 + <script type="application/javascript" 1.16 + src="../common.js" /> 1.17 + <script type="application/javascript" 1.18 + src="../role.js" /> 1.19 + 1.20 + <script type="application/javascript"> 1.21 + <![CDATA[ 1.22 + //////////////////////////////////////////////////////////////////////////// 1.23 + // Test 1.24 + 1.25 + function doTest() 1.26 + { 1.27 + var accTree = 1.28 + { GROUPING: [ 1.29 + { LABEL: [ 1.30 + { TEXT_LEAF: [ ] } 1.31 + ] }, 1.32 + { CHECKBUTTON: [ ] } 1.33 + ] }; 1.34 + testAccessibleTree("groupbox", accTree); 1.35 + 1.36 + SimpleTest.finish() 1.37 + } 1.38 + 1.39 + SimpleTest.waitForExplicitFinish(); 1.40 + addA11yLoadEvent(doTest); 1.41 + ]]> 1.42 + </script> 1.43 + 1.44 + <hbox flex="1" style="overflow: auto;"> 1.45 + <body xmlns="http://www.w3.org/1999/xhtml"> 1.46 + <a target="_blank" 1.47 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=342045" 1.48 + title="Fix O(n^2) access to all the children of a container"> 1.49 + Mozilla Bug 342045 1.50 + </a><br/> 1.51 + <p id="display"></p> 1.52 + <div id="content" style="display: none"> 1.53 + </div> 1.54 + <pre id="test"> 1.55 + </pre> 1.56 + </body> 1.57 + 1.58 + <vbox flex="1"> 1.59 + <groupbox id="groupbox"> 1.60 + <caption label="Some caption" /> 1.61 + <checkbox label="some checkbox label" /> 1.62 + </groupbox> 1.63 + </vbox> 1.64 + </hbox> 1.65 + 1.66 +</window> 1.67 +