Bug 1348073 - Part 3. Adjust offset value in accessible/tests/mochitest/textcaret/test_general.html. r?surkov
When enabling enabling lazy frame construction for editable regions, accessible/tests/mochitest/textcaret/test_general.html is failure because whitespace only node doesn't have frame even if editable.
To pass this test, we should adjust offset value.
MozReview-Commit-ID: Jk9crabIPKD
--- a/accessible/tests/mochitest/textcaret/test_general.html
+++ b/accessible/tests/mochitest/textcaret/test_general.html
@@ -61,17 +61,17 @@
// gA11yEventDumpID = "eventdump"; // debug stuff
// gA11yEventDumpToConsole = true;
function doTests() {
turnCaretBrowsing(true);
// test caret offsets
- testCaretOffset(document, 16);
+ testCaretOffset(document, 15);
testCaretOffset("textbox", -1);
testCaretOffset("textarea", -1);
testCaretOffset("p", -1);
// test caret move events and caret offsets
gQueue = new eventQueue();
gQueue.push(new setCaretOffset("textbox", 1, "textbox"));