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


<testsuite id="ts0304-toggle-scripts">
	
	<metaInfo>
		<testTitle>Toggle scripts on and off</testTitle>
		<shortTitle>Toggle scripts on and off</shortTitle>		
		<testElementList>
			<testElementItem specName="HTML 4.01" cite="http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1">SCRIPT</testElementItem>
		</testElementList>	
		<creator>Colin Koteles</creator>						
		<metaElement></metaElement>
		<testStyle></testStyle>
	</metaInfo>
	
	<requirementInfo>
		<checkpoints>
			<checkpoint xref="tech-on-off-scripts">
            <provisions>
            	<provision xref="tech-on-off-scripts-1"/>								
			   </provisions>
         </checkpoint>
		</checkpoints>
	</requirementInfo>
	
	<content>		
		<test section="1">
			<procedure>
				<list>
					<item>Configure the user agent to not execute the script contained within this page.</item>
					<item>Configure the user agent to execute the script contained within this page.</item>
				</list>
			</procedure>
			<testCode>
				<form method="post" action="../action/return.html" name="counterForm" id="counterForm">
    				<label for="counterDisplay">This number increases while scripting is toggled on:</label>
    				<input type="text" size="8" name="counterDisplay" id="counterDisplay"/>
				</form>
			</testCode>
      	<exResults>
				<list>
					<item>The user can configure the user agent to not execute the script contained within this page.</item>
					<item>When scripting is toggled to off, the number in the text box does not increase.</item>
					<item>The user can configure the user agent to execute the script contained within this page.</item>
					<item>When scripting is toggled to on, the number in the text box increases.</item>					
				</list>
			</exResults>
			<sourcescript>
				var secs=0;

				function write()
				{
				secs=secs+1;
				document.counterForm.counterDisplay.value=" "+secs+"";
				setTimeout("write()",1000);
				}
				
				setTimeout("write()",1000);
			</sourcescript>
		</test>						
	</content>

</testsuite>