--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ARIA-UAIG/1.0/tests/test-files/test16.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>element with tabindex=0 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><a href="http://example.com" tabindex="0" id="test">Test element</a></p>
+ <p>Test result: <span id="report"/></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/test17.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>element with tabindex=-1 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><a href="http://example.com" tabindex="-1" id="test">Test element</a></p>
+ <p>Test result: <span id="report"/></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/test18.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>element with tabindex=1 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><a href="http://example.com" tabindex="1" id="test">Test element</a></p>
+ <p>Test result: <span id="report"/></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/test19.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>span element with tabindex=0 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><span tabindex="0" id="test">Test element</span></p>
+ <p>Test result: <span id="report"/></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/test20.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>span element with tabindex=-1 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><span tabindex="-1" id="test">Test element</span></p>
+ <p>Test result: <span id="report"/></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/test21.html Fri Aug 16 10:17:55 2013 -0400
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>span element with tabindex=1 and a script that sets focus to it with element.focus and a DOMFocusIn event listener which reports that focus was set</title>
+ <script type="text/javascript"><!--
+ function reportFocus(evt) {
+ var reporter = document.getElementById("report");
+ reporter.appendChild(reporter.ownerDocument.createTextNode("Test element focused."));
+ }
+ function attachListener(evt) {
+ document.getElementById("test").addEventListener("focus", reportFocus, false);
+ }
+ window.addEventListener("load", attachListener, false);
+ //--></script>
+ </head>
+ <body>
+ <p><button onclick="getElementById('test').focus()">Focus test</button></p>
+ <p><span tabindex="1" id="test">Test element</span></p>
+ <p>Test result: <span id="report"/></p>
+ </body>
+</html>
\ No newline at end of file