--- a/selecttest/getSelection.html Wed Jan 11 12:45:25 2012 -0700
+++ b/selecttest/getSelection.html Wed Jan 11 13:31:34 2012 -0700
@@ -15,12 +15,20 @@
}, "window.getSelection() instanceof Selection");
test(function() {
+ assert_equals(window.getSelection(), window.getSelection());
+}, "window.getSelection() === window.getSelection()");
+
+test(function() {
assert_true("Selection" in window, "window must have Selection property");
assert_true(document.getSelection() instanceof Selection);
}, "document.getSelection() instanceof Selection");
test(function() {
+ assert_equals(document.getSelection(), document.getSelection());
+}, "document.getSelection() === document.getSelection()");
+
+test(function() {
assert_equals(window.getSelection(), document.getSelection());
}, "window.getSelection() === document.getSelection()");