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


<testsuite id="ts0101-button">
	
	<metaInfo>
		<testTitle>BUTTON</testTitle>
		<shortTitle>Navigate to and activate BUTTON control with keyboard</shortTitle>
		<testElement>
			<elementName></elementName>
			<hlink href="http://www.w3.org/TR/html401/interact/forms.html#edef-BUTTON">&hspec; BUTTON</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>
					<item>Using the standard keyboard or an assistive technology that emulates the 
						keyboard, move focus to the "Submit" button and activates the "Submit" button.</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="post">
					<label for="submit">Submit Button:&nbsp;</label>
					<button id="submit" name="submit" type="submit" value="submit">Submit</button> 
				</form>
			</testCode>
      	<exResults>
				<list>
					<item>The keyboard or assistive technology that emulates the keyboard 
  						moves focus to the "Submit" button.</item>
					<item>The keyboard or assistive technology that emulates the keyboard activates the "Submit" button.</item>
				</list>
			</exResults>
		</test>
		
		<test section="2">
			<procedure>
				<list>
					<item>Using the standard keyboard or an assistive technology that emulates the 
						keyboard, move focus to the "Reset" button.</item>
					<item>Using the standard keyboard or an assistive technology that emulates the 
						keyboard, activate the "Reset" button.</item>
					<item>(To make sure initial values have been restored, activate the textarea and alter 
						"Initial value".)</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="post">
					<label for="textarea">Default Textarea:&nbsp;</label> 
					<textarea id="textarea" name="textarea" rows="1" cols="14">Initial Value</textarea><br/>
					<label for="reset">Reset Button&nbsp;</label>
					<button id="reset" name="reset" type="reset" value="reset">Reset</button>
				</form>			
			</testCode>
      	<exResults>
				<list>
					<item>The standard keyboard or an assistive technology that emulates the 
  						keyboard activates the "Reset" button and restores the TEXTAREA to "Initial Value".</item>
				</list>
			</exResults>	
		</test>
		
		<test section="3">
			<procedure>
				<list>
					<item>Using the standard keyboard or an assistive technology that emulates the 
						keyboard, move focus to the "Test Button" and activate the button.</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="post">
					<label for="test-button">Test Button:&nbsp;</label> 
					<button id="test-button" onclick='document.write("Test was successful. Click back on your browser to return to the test suite.")' type="button" value="Test Button">Test Button</button> 
				</form>			
			</testCode>
      	<exResults>
				<list>
					<item>The standard keyboard or an assistive technology that emulates the 
  						keyboard activates "Test Button" and its associated function.</item>
				</list>
			</exResults>
		</test>				
						
	</content>

</testsuite>