Updated test files from Jon
authorMichael Cooper <cooper@w3.org>
Mon, 18 Mar 2013 10:37:57 -0400
changeset 137 b9e7f7b992d3
parent 136 358bd85d6c6a
child 138 090a7e73871d
Updated test files from Jon
ARIA/1.0/tests/test-files/accessible-name-updates/675.html
ARIA/1.0/tests/test-files/accessible-name-updates/676.html
--- a/ARIA/1.0/tests/test-files/accessible-name-updates/675.html	Wed Mar 06 15:27:07 2013 -0800
+++ b/ARIA/1.0/tests/test-files/accessible-name-updates/675.html	Mon Mar 18 10:37:57 2013 -0400
@@ -7,21 +7,22 @@
   <body>
     <h1>ARIA 1.0 Test Case 675</h1>
     
-    <div id="TEST_ID" aria-live="polite" >
+    <div id="TEST_ID">
     </div>
     
     <h2>Description</h2>
-    <p>An element with an aria-live attribute is defined in markup with the value="polite". 
-      After the onload event completes a child DOM element node is added to the element 
-      with the aria-live attribute.</p>
+    <p>An element without an aria-live attribute is defined in markup.   
+      After the onload event completes an aria-live attribute with the 
+      value 'assertive' is added to the element and a child DOM text 
+      node is added to the element.</p>
     
     <script type="text/javascript">  
   
      function addLiveRegion() {
        var node = document.getElementById('TEST_ID');  
-       var live_node = document.createElement('div');
-       live_node.setAttribute('aria-live', 'assertive');
-       node.appendChild(live_node);
+       node.setAttribute('aria-live', 'assertive');
+       var text_node = document.createTextNode('TEST TEXT');
+       node.appendChild(text_node);
      }
      
      function onload() {
--- a/ARIA/1.0/tests/test-files/accessible-name-updates/676.html	Wed Mar 06 15:27:07 2013 -0800
+++ b/ARIA/1.0/tests/test-files/accessible-name-updates/676.html	Mon Mar 18 10:37:57 2013 -0400
@@ -7,20 +7,21 @@
   <body>
     <h1>ARIA 1.0 Test Case 676</h1>
     
-    <div id="TEST_ID" aria-live="assertive" >
-      <span>Text in markup</span>
+    <div id="TEST_ID">
     </div>
     
     <h2>Description</h2>
-    <p>An element with an aria-live attribute is defined in markup with the 
-      value="assertive". After the onload event completes a child DOM element 
+    <p>An element without an aria-live attribute is defined in markup.   
+      After the onload event completes a new element with an aria-live attribute with the 
+      value 'assertive' is added to the document and a child element and text 
       node is added to the element with the aria-live attribute.</p>
     
     <script type="text/javascript">  
   
       function addElement() {
-        var node = document.getElementById('TEST_ID');  
+        var node = document.getElementById('TEST_ID');
         var element_node = document.createElement('span');
+        element_node.setAttribute('aria-live','assertive');
         var text_node = document.createTextNode('Text added in a span element on load');
         element_node.appendChild(text_node);
         node.appendChild(element_node);