From b0a7d58993004df280fd2022f3f927ace7cc5982 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Tue, 20 Dec 2011 10:15:41 +0100 Subject: [PATCH] Bug 619273 - Create new ranges for adding to the selection. --- accessible/tests/mochitest/table/test_table_1.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/accessible/tests/mochitest/table/test_table_1.html b/accessible/tests/mochitest/table/test_table_1.html index 74c6c1a4f73..91382a9e30b 100644 --- a/accessible/tests/mochitest/table/test_table_1.html +++ b/accessible/tests/mochitest/table/test_table_1.html @@ -26,18 +26,24 @@ function doTest() is(accTable.selectedCellCount, 1, "only one cell selected"); cell = getNode("col2a"); + range = document.createRange(); range.selectNode(cell); s.addRange(range); cell = getNode("col2c"); + range = document.createRange(); range.selectNode(cell); s.addRange(range); is(accTable.selectedColumnCount, 1, "only one column selected"); + cell = getNode("row2a"); + range = document.createRange(); range.selectNode(cell); s.addRange(range); cell = getNode("row2b"); + range = document.createRange(); range.selectNode(cell); s.addRange(range); + range = document.createRange(); cell = getNode("row2c"); range.selectNode(cell); s.addRange(range);