Updated testcases to test attribute accKeyboardShortcut.

This commit is contained in:
dsirnapalli%netscape.com 2002-10-14 19:36:28 +00:00
Родитель b0185a1888
Коммит 129af67748
12 изменённых файлов: 84 добавлений и 25 удалений

Просмотреть файл

@ -90,6 +90,7 @@ function constructResults()
if(numActions > 1)
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = "External Link";
var expectedRole = "30";
@ -99,6 +100,7 @@ function constructResults()
var expectedaccFocused = "Focused";
var expectednumActions = "1";
var expectedactionName = "Jump";
var expectedkeyboardShortcut = "Alt+a";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -109,8 +111,9 @@ function constructResults()
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
var row7 = new Array("accNumActions->", expectednumActions, numActions);
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
var row9 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8);
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
@ -120,6 +123,8 @@ function constructResults()
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
if (keyboardShortcut == expectedkeyboardShortcut)
row9[3] = "PASS"; else row9[3] = "FAIL";
appendTableRes();
if(!isRunningStandalone())
@ -146,7 +151,7 @@ if(readCookie(cookieName) == null)
<!-- Test Anchor -->
<!-- Anchor linking to external file -->
document.write('Testing HTML Link' + '<br>');
document.write('<a href="http://home.netscape.com">External Link</a>');
document.write('<a href="http://home.netscape.com" accesskey="a">External Link</a>');
setTimeout("executeTestCase();", 2000);
}

Просмотреть файл

@ -85,6 +85,7 @@ function constructResults()
var newvalue = value.toString();
var numActions = getNumActions();
var actionName = getActionName();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = "External Link";
var expectedRole = "42";
@ -93,6 +94,7 @@ function constructResults()
var expectednodeFocus = "Focused";
var expectednumActions = "1";
var expectedactionName = "Jump";
var expectedkeyboardShortcut = "Alt+a";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -102,8 +104,9 @@ function constructResults()
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
var row6 = new Array("accNumActions->", expectednumActions, numActions);
var row7 = new Array("getAccActionName()->", expectedactionName, actionName);
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";
@ -112,6 +115,8 @@ function constructResults()
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
if (numActions == expectednumActions) row6[3] = "PASS"; else row6[3] = "FAIL";
if (actionName == expectedactionName) row7[3] = "PASS"; else row7[3] = "FAIL";
if (keyboardShortcut == expectedkeyboardShortcut)
row8[3] = "PASS"; else row8[3] = "FAIL";
appendTableRes();
if(!isRunningStandalone())
@ -138,7 +143,7 @@ if(readCookie(cookieName) == null)
<!-- Test Anchor -->
<!-- Anchor linking to external file -->
document.write('Testing Link' + '<br>');
document.write('<a href="http://home.netscape.com">External Link</a>');
document.write('<a href="http://home.netscape.com" accesskey="a">External Link</a>');
setTimeout("executeTestCase();", 2000);
}

Просмотреть файл

@ -86,7 +86,6 @@ function constructResults()
{
varaccFocused = "Not Focused";
}
alert(accNode.accKeyboardShortcut);
var name = getName();
var role = getRole();
@ -98,6 +97,7 @@ alert(accNode.accKeyboardShortcut);
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var action = doAction();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = "Submit";
var expectedRole = "43";
@ -108,6 +108,7 @@ alert(accNode.accKeyboardShortcut);
var expectednumActions = "1";
var expectedactionName = "Press";
var expectednodeClick = "Button Pressed";
var expectedkeyboardShortcut = "Alt+b";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -119,8 +120,9 @@ alert(accNode.accKeyboardShortcut);
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";
@ -131,6 +133,8 @@ alert(accNode.accKeyboardShortcut);
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();
if(!isRunningStandalone())
@ -158,7 +162,7 @@ if(readCookie(cookieName) == null)
<!-- Test Button -->
document.write('<br>');
document.write('<b>Testing HTML Button for Accessibility..</b><br><br>');
document.write('<button accesskey="b" value="submit"> Submit </button>');
document.write('<button value="submit" accesskey="b"> Submit </button>');
setTimeout("executeTestCase();", 2000);
}

Просмотреть файл

@ -99,6 +99,7 @@ function constructResults()
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var action = doAction();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "44";
@ -109,6 +110,7 @@ function constructResults()
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);
@ -120,8 +122,9 @@ function constructResults()
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";
@ -132,6 +135,8 @@ function constructResults()
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();
if(!isRunningStandalone())
@ -161,7 +166,7 @@ if(readCookie(cookieName) == null)
document.write('<form>');
document.write('Is your age: <br>');
document.write('<input type="checkbox" name="sex" checked onClick="nodeUnChecked();" onFocus="nodeFocused();"> Above 30');
document.write('<input type="checkbox" name="sex" checked accesskey="c" onClick="nodeUnChecked();" onFocus="nodeFocused();"> Above 30');
document.write('<input type="checkbox" name="sex"> Below 30');
document.write('</form>');

Просмотреть файл

@ -99,6 +99,7 @@ function constructResults()
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var action = doAction();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "44";
@ -109,6 +110,7 @@ function constructResults()
var expectednumActions = "1";
var expectedactionName = "Check";
var expectednodeCheck = "Check Box Checked";
var expectedkeyboardShortcut = "Alt+c";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -120,8 +122,9 @@ function constructResults()
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";
@ -132,6 +135,8 @@ function constructResults()
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();
if(!isRunningStandalone())
@ -161,7 +166,7 @@ if(readCookie(cookieName) == null)
document.write('<form>');
document.write('Is your age: <br>');
document.write('<input type="checkbox" name="sex"> Above 30');
document.write('<input type="checkbox" name="sex" accesskey="c"> Above 30');
document.write('<input type="checkbox" name="sex"> Below 30');
document.write('</form>');

Просмотреть файл

@ -67,24 +67,29 @@ function constructResults()
var state = getState();
var value = getValue();
var newvalue = value.toString();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = "Customer Identification";
var expectedRole = "20";
var expectedState = "0";
var expectedValue = "NS_ERROR_NOT_IMPLEMENTED";
var expectedkeyboardShortcut = "Alt+f";
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();
if(!isRunningStandalone())
@ -113,7 +118,7 @@ if(readCookie(cookieName) == null)
document.write('<br>');
document.write('<form action="http://www.democompany.com/cgi-bin/postquery.pl" method="post" enctype="multipart/form-data">');
document.write('<fieldset>');
document.write('<fieldset accesskey="f">');
document.write('<legend>Customer Identification</legend>');
document.write('<br><br>');
document.write('<label>Customer Name:</label>');

Просмотреть файл

@ -67,24 +67,29 @@ function constructResults()
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+f";
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();
if(!isRunningStandalone())
@ -113,7 +118,7 @@ if(readCookie(cookieName) == null)
document.write('<br>');
document.write('<form action="http://www.democompany.com/cgi-bin/postquery.pl" method="post" enctype="multipart/form-data">');
document.write('<fieldset>');
document.write('<fieldset accesskey="f">');
document.write('<br><br>');
document.write('<label>Customer Name:</label>');
document.write('<input type="text" name="CustomerName" size="25">');

Просмотреть файл

@ -99,6 +99,7 @@ function constructResults()
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var action = doAction();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "45";
@ -109,6 +110,7 @@ function constructResults()
var expectednumActions = "1";
var expectedactionName = "Select";
var expectednodeClick = "Radio Button Unchecked";
var expectedkeyboardShortcut = "Alt+r";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -120,8 +122,9 @@ function constructResults()
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 @@ function constructResults()
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();
if(!isRunningStandalone())
@ -163,7 +168,7 @@ if(readCookie(cookieName) == null)
document.write(' <input type="radio" name="favorite" value="mexican"> Mexican');
document.write(' <input type="radio" name="favorite" value="italian"> Italian');
document.write(' <input type="radio" name="favorite" value="japanese"> Japanese');
document.write(' <input type="radio" checked name="favorite" value="other"> Other');
document.write(' <input type="radio" checked accesskey="r" name="favorite" value="other"> Other');
document.write('</form>');
setTimeout("executeTestCase();", 2000);

Просмотреть файл

@ -99,6 +99,7 @@ function constructResults()
alert("When i last modified the test case numActions was 1. Now numActions is more than 1. Add tests for other numActions");
var actionName = getActionName();
var action = doAction();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "45";
@ -109,6 +110,7 @@ function constructResults()
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);
@ -120,8 +122,9 @@ function constructResults()
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 @@ function constructResults()
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();
if(!isRunningStandalone())
@ -160,7 +165,7 @@ if(readCookie(cookieName) == null)
document.write('<br><br><b> Testing Radio Button Unchecked </b><br><br>');
document.write('<form>');
document.write(' Which is your favorite food');
document.write(' <input type="radio" name="favorite" value="mexican"> Mexican');
document.write(' <input type="radio" name="favorite" value="mexican" accesskey="r"> Mexican');
document.write(' <input type="radio" name="favorite" value="italian"> Italian');
document.write(' <input type="radio" name="favorite" value="japanese"> Japanese');
document.write(' <input type="radio" checked name="favorite" value="other"> Other');

Просмотреть файл

@ -86,6 +86,7 @@ function constructResults()
var state = getState();
var value = getValue();
var newvalue = value.toString();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "46";
@ -93,6 +94,7 @@ function constructResults()
var expectedValue = "Red";
var expectednodeFocus = "Focused";
var expectedaccFocused = "Focused";
var expectedkeyboardShortcut = "Alt+s";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -101,8 +103,9 @@ function constructResults()
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";
@ -110,6 +113,8 @@ function constructResults()
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();
if(!isRunningStandalone())
@ -138,7 +143,7 @@ if(readCookie(cookieName) == null)
document.write('<b>Testing Select Combobox Select Node..</b>');
document.write('<br><br>');
document.write('Choose your favorite color ');
document.write('<select>');
document.write('<select accesskey="s">');
document.write(' <option> Red </option>');
document.write(' <option> Blue </option>');
document.write(' <option> Green </option>');

Просмотреть файл

@ -89,6 +89,7 @@ function constructResults()
var newvalue = value.toString();
var numActions = getNumActions();
var actionName = getActionName();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = "Red";
var expectedRole = "34";
@ -98,6 +99,7 @@ function constructResults()
var expectedaccFocused = "Focused";
var expectednumActions = 1;
var expectedactionName = "Select";
var expectedkeyboardShortcut = "Alt+o";
var row0 = new Array("Property/Method", "Expected Values", "Actual Values", "Result");
var row1 = new Array("Name->", expectedName, name);
@ -108,8 +110,9 @@ function constructResults()
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
var row7 = new Array("accNumActions->", expectednumActions, numActions);
var row8 = new Array("getAccActionName()->", expectedactionName, actionName);
var row9 = new Array("accKeyboardShortcut->", expectedkeyboardShortcut, keyboardShortcut);
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8);
row = new Array(row0, row1, row2, row3, row4, row5, row6, row7, row8, row9);
if (name == expectedName) row1[3] = "PASS"; else row1[3] = "FAIL";
if (role == expectedRole) row2[3] = "PASS"; else row2[3] = "FAIL";
@ -119,6 +122,8 @@ function constructResults()
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
if (numActions == expectednumActions) row7[3] = "PASS"; else row7[3] = "FAIL";
if (actionName == expectedactionName) row8[3] = "PASS"; else row8[3] = "FAIL";
if (keyboardShortcut == expectedkeyboardShortcut)
row9[3] = "PASS"; else row9[3] = "FAIL";
appendTableRes();
if(!isRunningStandalone())
@ -148,7 +153,7 @@ if(readCookie(cookieName) == null)
document.write('<br><br>');
document.write('Choose your favorite color ');
document.write('<select>');
document.write(' <option> Red </option>');
document.write(' <option accesskey="o"> Red </option>');
document.write(' <option> Blue </option>');
document.write(' <option> Green </option>');
document.write(' <option> Yellow </option>');

Просмотреть файл

@ -88,6 +88,7 @@ function constructResults()
var newvalue = value.toString();
var numActions = getNumActions();
var newnumActions = numActions.toString();
var keyboardShortcut = getAccKeyboardShortcut();
var expectedName = null;
var expectedRole = "42";
@ -96,6 +97,7 @@ function constructResults()
var expectednodeFocus = "Focused";
var expectedaccFocused = "Focused";
var expectednumActions = "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);
@ -105,8 +107,9 @@ function constructResults()
var row5 = new Array("accTakeFocus()->", expectednodeFocus, nodeFocus);
var row6 = new Array("accFocused->", expectedaccFocused, varaccFocused);
var row7 = new Array("accNumActions->", expectednumActions, numActions);
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";
@ -115,6 +118,8 @@ function constructResults()
if (nodeFocus == expectednodeFocus) row5[3] = "PASS"; else row5[3] = "FAIL";
if (varaccFocused == expectedaccFocused) row6[3] = "PASS"; else row6[3] = "FAIL";
if (newnumActions.match(expectednumActions)) row7[3] = "PASS"; else row7[3] = "FAIL";
if (keyboardShortcut == expectedkeyboardShortcut)
row8[3] = "PASS"; else row8[3] = "FAIL";
appendTableRes();
if(!isRunningStandalone())
@ -140,7 +145,7 @@ if(readCookie(cookieName) == null)
{
<!-- Test Text Area -->
document.write('<b> Testing Text Area </b><br><br>');
document.write('<textarea name="Comment Box" cols="40" rows="8" onFocus="nodeFocused();">');
document.write('<textarea name="Comment Box" accesskey="t" cols="40" rows="8" onFocus="nodeFocused();">');
document.write('Default text..');
document.write('</textarea>');