Difference between revisions of "Random Testing RJ"

From Level Access Web Labs
Jump to navigation Jump to search
Line 8: Line 8:
 
   document.getElementById("myAnchor").blur();
 
   document.getElementById("myAnchor").blur();
 
}
 
}
 +
 +
    function realNextSibling(obj) {
 +
        if (obj.nextSibling) {
 +
          if (obj.nextSibling.nodeType == 3) {
 +
            return obj.nextSibling.nextSibling
 +
          }
 +
        }
 +
        return obj.nextSibling;
 +
      }
 +
 +
      function realPreviousSibling(obj) {
 +
        if (obj.previousSibling) {
 +
          if (obj.previousSibling.nodeType == 3) {
 +
            return obj.previousSibling.previousSibling
 +
          }
 +
        }
 +
        return obj.previousSibling;
 +
      }
 +
 +
      function change(e) {
 +
        var evt = e ? e : window.event;
 +
        var set = document.getElementsByClassName("accbutton");
 +
        var index=-1;
 +
 +
        // find the index of the current accordion header (button)
 +
        for (var i = 0; i < set.length; i++) {
 +
          if (set[i].id == e.target.id)
 +
    var index = i;
 +
  }
 +
 +
        if (e.which == 38 || e.which == 37 || e.which ==33) {  // up, left, pageUP
 +
          index--;
 +
          if (index < 0) {
 +
            index = set.length-1;
 +
          }
 +
          // page up also toggles
 +
          //if (e.which ==33)
 +
          //    toggle((set[index]), true);
 +
 +
          set[index].focus();
 +
        }
 +
 +
        else if (e.which == 40 || e.which ==39 || e.which ==34) { // right, down, pageDN
 +
          index++;
 +
          if (index >= set.length)
 +
            index = 0;
 +
          // page down also toggles
 +
        //  if (e.which ==34)
 +
        //      toggle((set[index]),true);
 +
 +
          set[index].focus();
 +
        }
 +
 +
        // home
 +
else if (e.which == 36) {
 +
          set[0].focus();
 +
}
 +
 +
        // end
 +
else if (e.which == 35) {
 +
          set[set.length-1].focus();
 +
}
 +
 +
      }
 +
 +
      function toggle(obj,alwaysopen) {
 +
        var alwaysopen = (typeof alwaysopen === "undefined") ? false : alwaysopen;
 +
 +
        if (obj.getAttribute("aria-expanded") == "false" || alwaysopen) {
 +
        obj.setAttribute("aria-expanded","true");
 +
if (obj.getAttribute("data-invalidmarkup") == "true") {
 +
document.getElementById("r4").removeAttribute("hidden");
 +
} else {
 +
        realNextSibling(obj).removeAttribute("hidden");
 +
}
 +
        }
 +
        else if (obj.getAttribute("aria-expanded") == "true" ) {
 +
        obj.setAttribute("aria-expanded","false");
 +
if (obj.getAttribute("data-invalidmarkup") == "true") {
 +
document.getElementById("r4").removeAttribute("hidden");
 +
} else {
 +
        realNextSibling(obj).setAttribute("hidden","hidden");
 +
}
 +
        }
 +
      }
 +
 
</script>
 
</script>
 
   <style type="text/css">
 
   <style type="text/css">

Revision as of 19:00, 1 February 2019

-DELETE ME--

--DELETE ME

Do you need more time?

-- Delete Me

--Delete Me

div container with style="display: table-cell" and role of region

Hello world
Goodbye World

div container with style="display: table-cell"

Hello world
Goodbye World

div container with style="display:table" and role of region

Hello world
Goodbye World

JavaScript Focus

The following errors has occurred
Error Number 1
Error Number 2

Notes

Random Testing - Not accessible examples

Test Results

What are the test results?