Bug 592592 - Part 2: Fix test_texteditor_keyevent_handling.html to reflect the desired behavior; r=roc

This commit is contained in:
Ehsan Akhgari 2010-09-08 17:32:07 -04:00
parent c4d1fc059a
commit 96488558d9

View File

@ -287,9 +287,7 @@ function runTests()
synthesizeKey("VK_TAB", { });
check(aDescription + "Tab",
true, true, !aIsTabbable && !aIsReadonly);
// The tab char is converted to 4 space characters because textarea/input
// elements are not preformatted editor.
is(aElement.value, !aIsTabbable && !aIsReadonly ? "a " : "a",
is(aElement.value, !aIsTabbable && !aIsReadonly ? "a\t" : "a",
aDescription + "Tab");
is(fm.focusedElement, aElement,
aDescription + "focus moved unexpectedly (Tab)");