diff options
Diffstat (limited to 'testing/web-platform/tests/old-tests/submission/Microsoft/selection/selectAllChildren.htm')
-rw-r--r-- | testing/web-platform/tests/old-tests/submission/Microsoft/selection/selectAllChildren.htm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/web-platform/tests/old-tests/submission/Microsoft/selection/selectAllChildren.htm b/testing/web-platform/tests/old-tests/submission/Microsoft/selection/selectAllChildren.htm new file mode 100644 index 000000000..a3ab4f57d --- /dev/null +++ b/testing/web-platform/tests/old-tests/submission/Microsoft/selection/selectAllChildren.htm @@ -0,0 +1,32 @@ +<!DOCTYPE HTML> +<html> + <head> + <title id="desc">HTML5 Selection: Call selectAllChildren() where the parameter is a text node</title> + <script type="text/javascript"> + function RunTest() + { + try + { + var selection = window.getSelection(); + var div1 = document.getElementById("div1"); + selection.selectAllChildren(div1.firstChild); + + if ("" == selection.toString()) + { + document.getElementById("testresult").firstChild.data = "PASS"; + } + } + catch (ex) + { + document.getElementById("testresult").firstChild.data = "FAIL"; + } + } + </script> + </head> + <body onload="RunTest();"> + <div id="div1">Call selectAllChildren() where the parameter is a text node</div> + <p>Test passes if the word "PASS" appears below.</p> + <div>Test result: </div> + <div id="testresult">FAIL</div> + </body> +</html> |