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