зеркало из https://github.com/mozilla/pjs.git
Updated test cases to test accKeyboardShortcut attribute method.
This commit is contained in:
Родитель
0c7c3e5bb1
Коммит
ac0efa78fc
|
@ -101,6 +101,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Normal";
|
||||
var expectedRole = "43";
|
||||
|
@ -111,6 +112,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Press";
|
||||
var expectednodeClick = "Button Pressed";
|
||||
var expectedkeyboardShortcut = "Alt+n";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -122,8 +124,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -134,6 +137,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -152,7 +157,7 @@
|
|||
</description>
|
||||
<box oreint="horizontal">
|
||||
<!-- Simple Button with Label only -->
|
||||
<button label="Normal"/>
|
||||
<button label="Normal" accesskey="n"/>
|
||||
<spacer flex="1"/>
|
||||
</box>
|
||||
</box>
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Checkbox Label";
|
||||
var expectedRole = "44";
|
||||
|
@ -110,6 +111,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "uncheck";
|
||||
var expectednodeCheck = "Check Box Not Checked";
|
||||
var expectedkeyboardShortcut = "Alt+c";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -121,8 +123,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeCheck, nodeCheck);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -133,6 +136,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeCheck == expectednodeCheck) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -151,7 +156,7 @@
|
|||
</description>
|
||||
<box orient="horizontal">
|
||||
<!-- Checkbox Checked -->
|
||||
<checkbox id="case-sensitive" checked="true" label="Checkbox Label"/>
|
||||
<checkbox id="case-sensitive" checked="true" label="Checkbox Label" accesskey="c"/>
|
||||
<spacer flex="1"/>
|
||||
</box>
|
||||
</box>
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Checkbox Label";
|
||||
var expectedRole = "44";
|
||||
|
@ -110,6 +111,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "check";
|
||||
var expectednodeCheck = "Check Box Checked";
|
||||
var expectedkeyboardShortcut = "Alt+b";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -121,8 +123,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeCheck, nodeCheck);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -133,6 +136,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeCheck == expectednodeCheck) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -151,7 +156,7 @@
|
|||
</description>
|
||||
<box orient="horizontal">
|
||||
<!-- Checkbox Unchecked -->
|
||||
<checkbox id="case-sensitive" label="Checkbox Label"/>
|
||||
<checkbox id="case-sensitive" label="Checkbox Label" accesskey="b"/>
|
||||
<spacer flex="1"/>
|
||||
</box>
|
||||
</box>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Testing XUL Description for Accessibility..";
|
||||
var expectedRole = "42";
|
||||
var expectedState = "64";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+d";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -102,7 +107,7 @@
|
|||
</html:script>
|
||||
|
||||
<!-- The most basic way to include text in a window is to use the description element -->
|
||||
<description>
|
||||
<description accesskey="d">
|
||||
<html:b> Testing XUL Description for Accessibility.. </html:b>
|
||||
</description>
|
||||
|
||||
|
|
|
@ -70,24 +70,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Answer";
|
||||
var expectedRole = "20";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+g";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -104,7 +109,7 @@
|
|||
<description>
|
||||
<html:b> Testing XUL Groupbox for Accessibility.. </html:b>
|
||||
</description>
|
||||
<groupbox>
|
||||
<groupbox accesskey="g">
|
||||
<caption label="Answer"/>
|
||||
<description value="Banana"/>
|
||||
<description value="Tangerine"/>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Click here";
|
||||
var expectedRole = "42";
|
||||
var expectedState = "64";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+h";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -105,7 +110,7 @@
|
|||
<html:b> Testing XUL Label for Accessibility.. </html:b>
|
||||
</description>
|
||||
<!-- Label element is intended for labels of controls such as buttons and textboxes -->
|
||||
<label value="Click here" control="open-button"/>
|
||||
<label value="Click here" control="open-button" accesskey="h"/>
|
||||
<box orient="horizontal">
|
||||
<button id="open-button" label="Open"/>
|
||||
<spacer flex="1"/>
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "33";
|
||||
|
@ -98,6 +99,7 @@
|
|||
var expectedValue = "NS_ERROR_FAILURE";
|
||||
var expectednodeFocus = "Focused";
|
||||
var expectedaccFocused = "Focused";
|
||||
var expectedkeyboardShortcut = "Alt+l";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -106,8 +108,9 @@
|
|||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
|
||||
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
|
||||
var row7 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -115,6 +118,8 @@
|
|||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -134,7 +139,7 @@
|
|||
<label value="Select a List Item:" control="get-item"/>
|
||||
<box orient="horizontal">
|
||||
<!-- listbox element is used to create multi-row list boxes -->
|
||||
<listbox id="get-item">
|
||||
<listbox id="get-item" accesskey="l">
|
||||
<listitem label="First Item" value="firstitem"/>
|
||||
<listitem label="Second Item" value="seconditem"/>
|
||||
<listitem label="Third Item" value="thirditem"/>
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
var newvalue = value.toString();
|
||||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "First Item";
|
||||
var expectedRole = "34";
|
||||
|
@ -109,6 +110,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Select";
|
||||
var expectednodeClick = "List Item Selected";
|
||||
var expectedkeyboardShortcut = "I";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -120,8 +122,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -132,6 +135,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -152,7 +157,7 @@
|
|||
<box orient="horizontal">
|
||||
<!-- listbox element is used to create multi-row list boxes -->
|
||||
<listbox id="get-item">
|
||||
<listitem label="First Item" value="firstitem" oncommand="nodeSelected();" />
|
||||
<listitem label="First Item" value="firstitem" oncommand="nodeSelected();" accesskey="I"/>
|
||||
<listitem label="Second Item" value="seconditem" selected ="true"/>
|
||||
<listitem label="Third Item" value="thirditem"/>
|
||||
<listitem label="Fourth Item" value="fourthitem"/>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "menubar";
|
||||
var expectedRole = "2";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+b";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -118,7 +123,7 @@
|
|||
except the Macintosh. This is because the Macintosh has its own special menu along
|
||||
the top of the screen controlled by the system. -->
|
||||
<toolbox flex="1">
|
||||
<menubar id="sample-menubar">
|
||||
<menubar id="sample-menubar" accesskey="b">
|
||||
<menu id="file-menu" label="File">
|
||||
<menupopup id="file-popup">
|
||||
<menuitem label="New"/>
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Open";
|
||||
var expectedRole = "12";
|
||||
|
@ -111,6 +112,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Select";
|
||||
var expectednodeClick = "Menu Item Selected";
|
||||
var expectedkeyboardShortcut = "t";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -122,8 +124,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -134,6 +137,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -153,7 +158,7 @@
|
|||
<box oreint="horizontal">
|
||||
<menu label="File">
|
||||
<menupopup>
|
||||
<menuitem label="Open" oncommand="nodeClicked();"/>
|
||||
<menuitem label="Open" oncommand="nodeClicked();" accesskey="t"/>
|
||||
<menuitem label="Close"/>
|
||||
<menuseparator/>
|
||||
<menuitem label="Save" />
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "46";
|
||||
|
@ -99,6 +100,7 @@
|
|||
var expectedValue = "";
|
||||
var expectednodeFocus = "Focused";
|
||||
var expectedaccFocused = "Focused";
|
||||
var expectedkeyboardShortcut = "Alt+m";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -107,8 +109,9 @@
|
|||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
|
||||
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
|
||||
var row7 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -116,6 +119,8 @@
|
|||
if (newvalue == expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -139,7 +144,7 @@
|
|||
The second is the menupopup element,which creates the popup window which appears when
|
||||
the button is clicked.
|
||||
The third is the menuitem element, which creates the individual choices. -->
|
||||
<menulist>
|
||||
<menulist accesskey="m">
|
||||
<menupopup>
|
||||
<menuitem label="First Menu Item"/>
|
||||
<menuitem label="Second Menu Item" selected="true"/>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Determinate Progress Meter:";
|
||||
var expectedRole = "48";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "50%";
|
||||
var expectedkeyboardShortcut = "Alt+p";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue ==expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -112,7 +117,7 @@
|
|||
an operation. -->
|
||||
<!-- Determined Progress Meter -->
|
||||
<label control="det_progress" value="Determinate Progress Meter:"/>
|
||||
<progressmeter id="det_progress" mode="determined" value="50%"/>
|
||||
<progressmeter id="det_progress" mode="determined" value="50%" accesskey="p"/>
|
||||
|
||||
<html:script>
|
||||
<![CDATA[
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "First Radio Button";
|
||||
var expectedRole = "45";
|
||||
|
@ -111,6 +112,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Select";
|
||||
var expectednodeClick = "Radio Button Not checked";
|
||||
var expectedkeyboardShortcut = "Alt+r";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -122,8 +124,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -134,6 +137,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -151,7 +156,7 @@
|
|||
<html:b> Testing XUL Radio Button Checked for Accessibility.. </html:b>
|
||||
</description>
|
||||
<radiogroup id="test-radiogrp">
|
||||
<radio group="test-radiogrp" label="First Radio Button" selected="true"/>
|
||||
<radio group="test-radiogrp" label="First Radio Button" selected="true" accesskey="r"/>
|
||||
<radio group="test-radiogrp" label="Second Radio Button"/>
|
||||
<radio group="test-radiogrp" label="Third Radio Button"/>
|
||||
</radiogroup>
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "First Radio Button";
|
||||
var expectedRole = "45";
|
||||
|
@ -111,6 +112,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Select";
|
||||
var expectednodeClick = "Radio Button Checked";
|
||||
var expectedkeyboardShortcut = "Alt+r";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -122,8 +124,9 @@
|
|||
var row7 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row9 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row10 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9, row10);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -134,6 +137,8 @@
|
|||
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row9[3] = "PASS"; else row9[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row10[3] = "PASS"; else row10[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -151,7 +156,7 @@
|
|||
<html:b> Testing XUL Radio Button Unchecked for Accessibility.. </html:b>
|
||||
</description>
|
||||
<radiogroup id="test-radiogrp">
|
||||
<radio group="test-radiogrp" label="First Radio Button"/>
|
||||
<radio group="test-radiogrp" label="First Radio Button" accesskey="r"/>
|
||||
<radio group="test-radiogrp" label="Second Radio Button" selected="true"/>
|
||||
<radio group="test-radiogrp" label="Third Radio Button"/>
|
||||
</radiogroup>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "20";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+a";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -106,7 +111,7 @@
|
|||
<html:b> Testing XUL Radiogroup for Accessibility.. </html:b>
|
||||
</description>
|
||||
<box oreint="horizontal">
|
||||
<radiogroup id="test-radiogrp">
|
||||
<radiogroup id="test-radiogrp" accesskey="a">
|
||||
<radio group="test-radiogrp" label="First Radio Button" selected="true"/>
|
||||
<radio group="test-radiogrp" label="Second Radio Button"/>
|
||||
<radio group="test-radiogrp" label="Third Radio Button"/>
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Mail";
|
||||
var expectedRole = "37";
|
||||
|
@ -90,6 +91,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Switch";
|
||||
var expectednodeClick = "Tab Switched";
|
||||
var expectedkeyboardShortcut = "Alt+t";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -99,8 +101,9 @@
|
|||
var row5 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row6 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row7 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row8 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -109,6 +112,8 @@
|
|||
if (numActions == expectednumActions) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -128,7 +133,7 @@
|
|||
<box oreint="horizontal">
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab label="Mail"/>
|
||||
<tab label="Mail" accesskey="t"/>
|
||||
<tab label="News" onclick="alert('hi');"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = ""
|
||||
var expectedRole = "9";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+b";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -117,7 +122,7 @@
|
|||
tabpanels - the container for the pages
|
||||
tabpanel - the body of a single page. you would place the content for a page
|
||||
within this element -->
|
||||
<tabbox>
|
||||
<tabbox accesskey="b">
|
||||
<tabs>
|
||||
<tab label="Mail"/>
|
||||
<tab label="News"/>
|
||||
|
|
|
@ -72,24 +72,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedRole = "38";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+p";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, newname);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (newname.match(expectedName)) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -112,7 +117,7 @@
|
|||
<tab label="Mail"/>
|
||||
<tab label="News"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanels accesskey="p">
|
||||
<tabpanel id="mailtab">
|
||||
<checkbox label="Automatically check for mail"/>
|
||||
</tabpanel>
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "60";
|
||||
var expectedState = "0";
|
||||
var expectedValue = "";
|
||||
var expectedkeyboardShortcut = "Alt+t";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue == expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -107,7 +112,7 @@
|
|||
</description>
|
||||
<box oreint="horizontal">
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tabs accesskey="t">
|
||||
<tab label="Mail"/>
|
||||
<tab label="News"/>
|
||||
</tabs>
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var numActions = getNumActions();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = null;
|
||||
var expectedRole = "42";
|
||||
|
@ -98,6 +99,7 @@
|
|||
var expectedValue = "Default text...";
|
||||
var expectednodeFocus = "Focused";
|
||||
var expectedaccFocused = "Focused";
|
||||
var expectedkeyboardShortcut = "Alt+D";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -106,8 +108,9 @@
|
|||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
|
||||
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
|
||||
var row7 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -115,6 +118,8 @@
|
|||
if (value == expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -132,7 +137,7 @@
|
|||
</description>
|
||||
<box orient="vertical" flex="1">
|
||||
<!-- TextBox with default text -->
|
||||
<textbox value="Default text..."/>
|
||||
<textbox value="Default text..." accesskey="D"/>
|
||||
<spacer flex="1"/>
|
||||
</box>
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "35";
|
||||
|
@ -99,6 +100,7 @@
|
|||
var expectedValue = "";
|
||||
var expectednodeFocus = "Focused";
|
||||
var expectedaccFocused = "Focused";
|
||||
var expectedkeyboardShortcut = "Alt+t";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -107,8 +109,9 @@
|
|||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
|
||||
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
|
||||
var row7 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -116,6 +119,8 @@
|
|||
if (newvalue == expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -136,7 +141,7 @@
|
|||
<html:b> Testing XUL Tree for Accessibility.. </html:b>
|
||||
</description>
|
||||
|
||||
<tree seltype="single" flex="1">
|
||||
<tree seltype="single" flex="1" accesskey="t">
|
||||
<treecols>
|
||||
<treecol id="sender" label="Sender" flex="1"/>
|
||||
<treecol id="subject" label="Subject" flex="2"/>
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
var numActions = getNumActions();
|
||||
var actionName = getActionName();
|
||||
var action = doAction();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "Sender";
|
||||
var expectedRole = "25";
|
||||
|
@ -88,6 +89,7 @@
|
|||
var expectednumActions = "1";
|
||||
var expectedactionName = "Click";
|
||||
var expectednodeClick = "Header Clicked";
|
||||
var expectedkeyboardShortcut = "Alt+c";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -97,8 +99,9 @@
|
|||
var row5 = new Array("accNumActions->", expectednumActions, numActions);
|
||||
var row6 = new Array("getAccActionName()->", expectedactionName, actionName);
|
||||
var row7 = new Array("accDoAction()->", expectednodeClick, nodeClick);
|
||||
var row8 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -107,6 +110,8 @@
|
|||
if (numActions == expectednumActions) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (actionName == expectedactionName) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (nodeClick == expectednodeClick) row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row8[3] = "PASS"; else row8[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -125,7 +130,7 @@
|
|||
|
||||
<tree seltype="single" flex="1">
|
||||
<treecols>
|
||||
<treecol id="sender" label="Sender" flex="1" onclick="nodeClicked();"/>
|
||||
<treecol id="sender" label="Sender" flex="1" onclick="nodeClicked();" accesskey="c"/>
|
||||
<treecol id="subject" label="Subject" flex="2"/>
|
||||
</treecols>
|
||||
|
||||
|
|
|
@ -71,24 +71,29 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "";
|
||||
var expectedRole = "33";
|
||||
var expectedState = "64";
|
||||
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
|
||||
var expectedkeyboardShortcut = "Alt+t";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
var row2 = new Array("Role->", expectedRole, role);
|
||||
var row3 = new Array("State->", expectedState, state);
|
||||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
if (state == expectedState) row3[3] = "PASS"; else row3[3] = "FAIL";
|
||||
if (newvalue.match(expectedValue)) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -106,7 +111,7 @@
|
|||
</description>
|
||||
|
||||
<tree seltype="single" flex="1">
|
||||
<treecols>
|
||||
<treecols accesskey="t">
|
||||
<treecol id="sender" label="Sender" flex="1"/>
|
||||
<treecol id="subject" label="Subject" flex="2"/>
|
||||
</treecols>
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
var state = getState();
|
||||
var value = getValue();
|
||||
var newvalue = value.toString();
|
||||
var keyboardShortcut = getAccKeyboardShortcut();
|
||||
|
||||
var expectedName = "joe@somewhere.com";
|
||||
var expectedRole = "36";
|
||||
|
@ -113,6 +114,7 @@
|
|||
var expectedValue = 0;
|
||||
var expectednodeFocus = "Focused";
|
||||
var expectedaccFocused = "Focused";
|
||||
var expectedkeyboardShortcut = "Alt+i";
|
||||
|
||||
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
|
||||
var row1 = new Array("Name->", expectedName, name);
|
||||
|
@ -121,8 +123,9 @@
|
|||
var row4 = new Array("Value->", expectedValue, value);
|
||||
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
|
||||
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
|
||||
var row7 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
|
||||
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6);
|
||||
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7);
|
||||
|
||||
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
|
||||
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
|
||||
|
@ -130,6 +133,8 @@
|
|||
if (newvalue == expectedValue) row4[3] = "PASS"; else row4[3] = "FAIL";
|
||||
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
|
||||
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
|
||||
if (keyboardShortcut == expectedkeyboardShortcut)
|
||||
row7[3] = "PASS"; else row7[3] = "FAIL";
|
||||
|
||||
appendTableRes();
|
||||
WriteResults(res);
|
||||
|
@ -153,7 +158,7 @@
|
|||
</treecols>
|
||||
|
||||
<treechildren>
|
||||
<treeitem>
|
||||
<treeitem accesskey="i">
|
||||
<treerow>
|
||||
<treecell label="joe@somewhere.com"/>
|
||||
<treecell label="Top secret plans"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче