Back out patch from Sergey Yanovich in bug 405095 due to test failures on Windows and Linux.

This commit is contained in:
reed@reedloden.com 2008-01-31 09:10:06 -08:00
Родитель cb348cd263
Коммит 75751e256b
2 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -18,12 +18,6 @@
<datepicker id="datepicker-grid" type="grid"/>
</hbox>
<keyset id="mainKeyset">
<key id="key_alt_e" key="E" oncommand="return" modifiers="alt"/>
<key id="key_ctrl_s" key="S" oncommand="return" modifiers="control"/>
<key id="key_meta_e" key="E" oncommand="return" modifiers="meta"/>
</keyset>
<body xmlns="http://www.w3.org/1999/xhtml">
<p id="display"></p>
<div id="content" style="display: none">
@ -188,10 +182,6 @@ function testtag_datepicker_UI_fields(dp, testid)
testtag_datepicker_UI_key(dp, testid, "2003-02-28", dp.dateField, 2003, 1, 1, 2003, 1, 28);
testtag_datepicker_UI_key(dp, testid, "2004-02-28", dp.dateField, 2004, 1, 29, 2004, 1, 28);
testtag_datepicker_UI_key(dp, testid, "2100-02-28", dp.dateField, 2100, 1, 1, 2100, 1, 28);
synthesizeKeyExpectEvent('E', { altKey: true }, $("key_alt_e"), "command", testid + " alt shortcut");
synthesizeKeyExpectEvent('S', { ctrlKey: true }, $("key_ctrl_s"), "command", testid + " ctrl shortcut");
synthesizeKeyExpectEvent('E', { metaKey: true }, $("key_meta_e"), "command", testid + " meta shortcut");
}
function testtag_datepicker_UI_grid(dp, type, testid)

Просмотреть файл

@ -217,7 +217,6 @@
<![CDATA[
if (this._hasEntry && event.charCode &&
this._currentField != this._fieldAMPM &&
! (event.altKey || event.ctrlKey || event.metaKey) &&
(event.charCode < 48 || event.charCode > 57))
event.preventDefault();
]]>