UAIG test files 75 - 84
authorMichael Cooper <cooper@w3.org>
Thu, 12 Sep 2013 12:28:51 -0400
changeset 354 0e0040b9d27f
parent 353 1c69ef1caade
child 355 5a0487492f98
UAIG test files 75 - 84
ARIA-UAIG/1.0/tests/test-files/test75.html
ARIA-UAIG/1.0/tests/test-files/test76.html
ARIA-UAIG/1.0/tests/test-files/test77.html
ARIA-UAIG/1.0/tests/test-files/test78.html
ARIA-UAIG/1.0/tests/test-files/test79.html
ARIA-UAIG/1.0/tests/test-files/test80.html
ARIA-UAIG/1.0/tests/test-files/test81.html
ARIA-UAIG/1.0/tests/test-files/test82.html
ARIA-UAIG/1.0/tests/test-files/test83.html
ARIA-UAIG/1.0/tests/test-files/test84.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test75.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that hides the ul element by setting style="display:none"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').style.display='none'">Hide list</button></p>
+		<ul id="test">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test76.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that hides the ul element by setting style="visibility:hidden"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').style.visibility='hidden'">Hide list</button></p>
+		<ul id="test">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test77.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that hides the ul element by setting aria-hidden="true"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').setAttribute('aria-hidden', 'true')">Hide list</button></p>
+		<ul id="test">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+		<p>Note that to avoid confounding the results, CSS is not used to modify the list's visibility, so there should be no visual impact. However, aria-hidden is being adjusted and it should be reflected in the AAPI.</p>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test78.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that removes the ul element from the DOM</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').parentNode.removeChild(document.getElementById('test'))">Remove list</button></p>
+		<ul id="test">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test79.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that shows the ul element by setting style="display:block"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').style.display='block'">Show list</button></p>
+		<ul id="test" style="display:none">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test80.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that shows the ul element by setting style="visibility:visible"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').style.visibility='visible'">Show list</button></p>
+		<ul id="test" style="visibility:hidden">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test81.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>ul element which contains at two li elements, and a button that hides the ul element by setting aria-hidden="false"</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('test').setAttribute('aria-hidden', 'false')">Show list</button></p>
+		<ul id="test" aria-hidden="true">
+			<li>Item 1</li>
+			<li>Item 2</li>
+		</ul>
+		<p>Note that to avoid confounding the results, CSS is not used to modify the list's visibility, so there should be no visual impact. However, aria-hidden is being adjusted and it should be reflected in the AAPI.</p>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test82.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>div element with role="document" and button that inserts a ul element with two li child elements as a child of the div</title>
+		<script type="text/javascript"><!--
+			function insertList() {
+				testElement = document.getElementById('test');
+
+				list = document.createElement("ul");
+				item1 = document.createElement("li");
+				item2 = document.createElement("li");
+				item1.appendChild(document.createTextNode("Item 1"));
+				item2.appendChild(document.createTextNode("Item 2"));
+
+				testElement.appendChild(list);
+				list.appendChild(item1);
+				list.appendChild(item2);
+			}
+		// --></script>
+	</head>
+	<body>
+		<p><button onclick="insertList()">Show list</button></p>
+		<div id="test" role="document"></div>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test83.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>two div elements with role="region", one of which contains a ul element with two li child elements, and button that moves the ul element and its children to the other div</title>
+	</head>
+	<body>
+		<p><button onclick="document.getElementById('region2').appendChild(document.getElementById('test'))">Move list to second region</button></p>
+		<div id="region1" role="region" style="border: thin solid; min-height: 2em;">
+			<ul id="test">
+				<li>Item 1</li>
+				<li>Item 2</li>
+			</ul>
+		</div>
+		<div id="region2" role="region" style="border: thin solid; min-height: 2em;"></div>
+	</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test84.html	Thu Sep 12 12:28:51 2013 -0400
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+		<title>div element with role="document" which contains a ul element with two li child elements and button that replaces the ul with a p element</title>
+		<script type="text/javascript"><!--
+			function replaceList() {
+				testElement = document.getElementById('test');
+				listElement = document.getElementById('list');
+
+				para = document.createElement("p");
+				para.appendChild(document.createTextNode("Paragraph"));
+
+				testElement.replaceChild(para, listElement);
+			}
+		// --></script>
+	</head>
+	<body>
+		<p><button onclick="replaceList()">Replace list with paragraph</button></p>
+		<div id="test" role="document">
+			<ul id="list">
+				<li>Item 1</li>
+				<li>Item 2</li>
+			</ul>
+		</div>
+	</body>
+</html>
\ No newline at end of file