Test getSelection() === getSelection()
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 11 Jan 2012 13:31:34 -0700
changeset 683 5157ed0618cc
parent 682 625762f16fc9
child 684 4058e0a2965f
Test getSelection() === getSelection()

Opera Next 12.00 alpha actually fails this. :(
selecttest/getSelection.html
--- 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()");