summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm')
-rw-r--r--testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm72
1 files changed, 0 insertions, 72 deletions
diff --git a/testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm b/testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm
deleted file mode 100644
index e35047b47..000000000
--- a/testing/web-platform/tests/old-tests/submission/Microsoft/selection/removeRange.htm
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <title id="desc">HTML5 Selection: Remove the range from the selection</title>
- <script type="text/javascript">
- var testPassed = true;
-
- function checkDefaultSelectionAttributes()
- {
- var selection = window.getSelection();
- if (null != selection.anchorNode)
- {
- testPassed = false;
- }
- if (0 != selection.anchorOffset)
- {
- testPassed = false;
- }
- if (null != selection.focusNode)
- {
- testPassed = false;
- }
- if (0 != selection.focusOffset)
- {
- testPassed = false;
- }
- if (!selection.isCollapsed)
- {
- testPassed = false;
- }
- if (0 != selection.rangeCount)
- {
- testPassed = false;
- }
- }
-
- function RunTest()
- {
- try
- {
- var selection = window.getSelection();
- var p1 = document.getElementById("p1");
-
- var range = document.createRange();
- range.selectNode(p1);
- selection.addRange(range);
- selection.removeRange(range);
-
- checkDefaultSelectionAttributes();
- if ("" != selection.toString())
- {
- testPassed = false;
- }
- if (testPassed)
- {
- document.getElementById("testresult").firstChild.data = "PASS";
- }
- }
- catch (ex)
- {
- document.getElementById("testresult").firstChild.data = "FAIL";
- }
- }
- </script>
- </head>
- <body onload="RunTest();">
- <p id="p1">Remove the range from the selection by calling removeRange()</p>
- <p>Test passes if the word "PASS" appears below.</p>
- <div>Test result: </div>
- <div id="testresult">FAIL</div>
- </body>
-</html>