diff options
Diffstat (limited to 'accessible/tests/mochitest/states/z_frames_update.html')
-rw-r--r-- | accessible/tests/mochitest/states/z_frames_update.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/accessible/tests/mochitest/states/z_frames_update.html b/accessible/tests/mochitest/states/z_frames_update.html new file mode 100644 index 000000000..90d756afe --- /dev/null +++ b/accessible/tests/mochitest/states/z_frames_update.html @@ -0,0 +1,22 @@ +<html> +<head> +<script> +function replaceBody() +{ + var accService = Components.classes["@mozilla.org/accessibilityService;1"]. + getService(Components.interfaces.nsIAccessibilityService); + accService.getAccessibleFor(document); + + var newBody = document.createElement("body"); + newBody.setAttribute("contentEditable", "true"); + newBody.textContent = "New Hello"; + document.documentElement.replaceChild(newBody, document.body); + getComputedStyle(newBody, "").color; +} +</script> +</head> +<body onload="replaceBody();"> +OLD hello +</body> +</html> + |