--- a/widget/tests/test_keycodes.xul
+++ b/widget/tests/test_keycodes.xul
@@ -3239,26 +3239,26 @@ function* runXULKeyTests()
modifiers:{metaKey:1}, chars:"'", unmodifiedChars:"'"},
"reservedUnshiftedKey");
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:MAC_VK_ANSI_Quote,
modifiers:{metaKey:1, shiftKey:1}, chars:"\"", unmodifiedChars:"'"},
"reservedShiftedKey");
}
else if (IS_WIN) {
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:WIN_VK_OEM_1,
- modifiers:{ctrlKey:1}, chars:";"},
+ modifiers:{ctrlKey:1}, chars:""},
"unshiftedKey");
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:WIN_VK_OEM_1,
- modifiers:{ctrlKey:1, shiftKey:1}, chars:";"},
+ modifiers:{ctrlKey:1, shiftKey:1}, chars:""},
"shiftedKey");
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:WIN_VK_OEM_7,
- modifiers:{ctrlKey:1}, chars:"'"},
+ modifiers:{ctrlKey:1}, chars:""},
"reservedUnshiftedKey");
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:WIN_VK_OEM_7,
- modifiers:{ctrlKey:1, shiftKey:1}, chars:"'"},
+ modifiers:{ctrlKey:1, shiftKey:1}, chars:""},
"reservedShiftedKey");
}
// 429160
if (IS_MAC) {
yield testKeyElement({layout:KEYBOARD_LAYOUT_EN_US, keyCode:MAC_VK_ANSI_F,
modifiers:{metaKey:1, altKey:1}, chars:"\u0192", unmodifiedChars:"f"},
"commandOptionF");
@@ -3434,17 +3434,17 @@ function* runReservedKeyTests()
if (IS_MAC) {
// Cmd+T is reserved for opening new tab.
yield testReservedKey({layout:KEYBOARD_LAYOUT_EN_US, keyCode:MAC_VK_ANSI_T,
modifiers:{metaKey:1}, chars:"t", unmodifiedChars:"t"});
} else if (IS_WIN) {
// Ctrl+T is reserved for opening new tab.
yield testReservedKey({layout:KEYBOARD_LAYOUT_EN_US, keyCode:WIN_VK_T,
- modifiers:{ctrlKey:1}, chars:"t"});
+ modifiers:{ctrlKey:1}, chars:"\u0014"});
}
finializeKeyElementTest();
}
function* runTextInputTests()
{
var textbox = document.getElementById("textbox");