<?xml version="1.0"?>
<!DOCTYPE testsuite SYSTEM "http://www.w3.org/WAI/UA/TS/dtd/uaag-testsuite-2.dtd">


<testsuite id="ts0101-accesskey-input">
	
	<metaInfo>
		<testTitle>ACCESSKEY attribute for INPUT buttons</testTitle>
		<testElement>
			<elementName>ACCESSKEY</elementName>
			<hlink href="http://www.w3.org/TR/html401/interact/forms.html#adef-accesskey">&hspec; ACCESSKEY</hlink>
		</testElement>
		<testElement>
			<elementName>INPUT</elementName>
			<hlink href="http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT">&hspec; INPUT</hlink>
		</testElement>
		<creator>Colin Koteles</creator>
		
		
		<metaElement></metaElement>
		<testStyle></testStyle>
	</metaInfo>
	
	<requirementInfo>
                <checkpoints>
                        <checkpoint xref="tech-device-independent-ui">
                          <provisions>
                            <provision xref="tech-device-independent-ui-1"/>
                          </provisions>
                        </checkpoint>
                </checkpoints>
 	</requirementInfo>
	
	<content>
		
		
		
		<test section="1">
			<procedure>
				<list type="unordered">
					<item>Using the standard keyboard or an assistive technology that emulates the
						keyboard, the "Submit" button using accesskey "S".</item>					
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="get"> 
				<label for="submit">Submit Button (Acceskey "S"):&nbsp;</label>
				<input id="submit" accesskey="S" type="submit" value="Submit" name="submit"/>
				</form> 
			</testCode>
      	<exResults>
				<list type="unordered">
					<item>The keyboard or an assistive technology that emulates the keyboard activates the submit
		  				button using accesskey "S".</item>  
				</list>
			</exResults>
		</test>
		
		<test section="2">
			<procedure>
				<list type="unordered">
					<item>Using the standard keyboard or an assistive technology that emulates the
						keyboard, move focus to the text area and change the value of the text area using accesskey "T".</item>
					<item>Then, using the standard keyboard or an assistive technology that emulates the
						keyboard, activate the reset button using accesskey "R".</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="get">
					<label for="textarea">Default Textarea (Accesskey "T"):&nbsp;</label> 
					<textarea id="textarea" accesskey="T" name="textarea" rows="1" cols="14">Initial Value</textarea><br/>
					<label for="reset">Reset Button (Accesskey "R"):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input id="reset" accesskey="R" type="reset" value="reset" name="reset"/>
				</form>
			</testCode>
      	<exResults>
				<list>
					<item>The standard keyboard or an assistive technology that emulates the 
  			 			keyboard moves focus to the TEXTAREA, allowing the user to change "Initial Value".</item>
  					<item>The standard keyboard or an assistive technology that emulates the 
  			 			keyboard moves focus to and then activates the "reset" button to return the TEXTAREA to "Initial Value".</item>
				</list>
			</exResults>		
		</test>
		
		<test section="3">
			<procedure>
				<list>
					<item>Then using the standard keyboard or an assistive technology that emulates the keyboard,  and activate the "Test Button" using accesskey "B".</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html">
					<label for="test-button">Test Button (Accesskey "B"):&nbsp;</label>
					<input id="test-button" accesskey="B" type="button" value="Test Button" onclick='document.write("Test was successful. Click back on your browser to return to test suite.")'/> 
				</form>
			</testCode>
      	<exResults>
				<list type="unordered">
					<item>"Test Button" is activated by accesskey "B".</item>
				</list>
			</exResults>
		</test>				
				
	</content>

</testsuite>