Merge
authorMichael Cooper <cooper@w3.org>
Fri, 12 Oct 2012 13:06:05 -0400
changeset 12 d68d72489586
parent 11 d2e96d708812 (current diff)
parent 9 1e7849885517 (diff)
child 13 c7fd2e1d5ccf
Merge
--- a/ARIA/1.0/tests/test-files/author-requirements/567.html	Fri Oct 12 12:57:59 2012 -0400
+++ b/ARIA/1.0/tests/test-files/author-requirements/567.html	Fri Oct 12 13:06:05 2012 -0400
@@ -9,13 +9,13 @@
           element.setAttribute ('role', newRole);
           element.innerHTML = "This &lt;div&gt; has role '" + newRole + "'";
       }
-      function doOnload() {
-          document.getElementById('test').focus();
-          window.setTimeout ("changeRole (document.getElementById('test'), 'checkbox')", 1000);
-      }
     </script>
   </head>
-  <body onload="doOnload();">
+  <body>
     <div role="button" id="test" tabindex="0" onclick="changeRole (this, 'checkbox');" onkeydown="changeRole (this, 'checkbox');">This &lt;div&gt; has role 'button'</div>
+    <p>
+      <button onclick="changeRole (document.getElementById ('test'), 'checkbox')" type="button">Change Role</button>
+      <button onclick="window.location.reload()" type="button">Reload Page</button>
+    </p>
   </body>
-</html>
\ No newline at end of file
+</html>
--- a/ARIA/1.0/tests/test-files/author-requirements/568.html	Fri Oct 12 12:57:59 2012 -0400
+++ b/ARIA/1.0/tests/test-files/author-requirements/568.html	Fri Oct 12 13:06:05 2012 -0400
@@ -10,23 +10,24 @@
           if (parent) {
               parent.removeChild (element);
               var div = document.createElement ('div');
-              div.setAttribute ('role', 'checkbox');
+              div.setAttribute ('role', newRole);
               div.setAttribute ('id', 'test');
               div.setAttribute ('tabindex', '0');
               div.setAttribute ('onclick', 'changeRoleByRemoval (this, "checkbox");');
               div.setAttribute ('onkeydown', 'changeRoleByRemoval (this, "checkbox");');
               div.innerHTML = "This &lt;div&gt; has role '" + newRole + "'";
               parent.appendChild (div);
-              div.focus();
           }
       }
-      function doOnload() {
-          document.getElementById('test').focus();
-          window.setTimeout ("changeRoleByRemoval (document.getElementById('test'), 'checkbox')", 1000);
-      }
   </script>
   </head>
-  <body onload="doOnload();">
+  <body>
+    <div>
     <div role="button" id="test" tabindex="0" onclick="changeRoleByRemoval (this, 'checkbox');" onkeydown="changeRoleByRemoval (this, 'checkbox');">This &lt;div&gt; has role 'button'</div>
+    </div>
+    <p>
+      <button onclick="changeRoleByRemoval (document.getElementById ('test'), 'checkbox')" type="button">Change Role</button>
+      <button onclick="window.location.reload()" type="button">Reload Page</button>
+    </p>
   </body>
-</html>
\ No newline at end of file
+</html>