diff --git a/layout/base/tests/bug240933-1.html b/layout/base/tests/bug240933-1.html index c64ea3ac4a59..6fefc5627d4c 100644 --- a/layout/base/tests/bug240933-1.html +++ b/layout/base/tests/bug240933-1.html @@ -8,7 +8,7 @@ var area = document.getElementById('t'); area.focus(); - sendKey('VK_ENTER'); // press Enter once + sendKey('ENTER', "t"); // press Enter once diff --git a/layout/base/tests/bug240933-2.html b/layout/base/tests/bug240933-2.html index 789b28542581..6780792f78fa 100644 --- a/layout/base/tests/bug240933-2.html +++ b/layout/base/tests/bug240933-2.html @@ -8,9 +8,9 @@ var area = document.getElementById('t'); area.focus(); - sendKey('VK_ENTER'); // press Enter twice - sendKey('VK_ENTER'); - sendKey('VK_BACK_SPACE'); // press Backspace once + sendKey('ENTER', "t"); // press Enter twice + sendKey('ENTER', "t"); + sendKey('BACK_SPACE', "t"); // press Backspace once