Bug 451664, improve the test for bug 435425

This commit is contained in:
Olli Pettay 2008-08-24 18:38:08 +03:00
Родитель 3125bdc1ef
Коммит 680109aea6
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -35,7 +35,8 @@ function logEvent(evt) {
} }
ok(i != currentEvents.length, "Extra or wrong event?"); ok(i != currentEvents.length, "Extra or wrong event?");
is(evt.type, currentEvents[i].type, "Wrong event!") is(evt.type, currentEvents[i].type, "Wrong event!")
ok(evt.target instanceof currentEvents[i].target, "Wrong event target [" + evt.type + "]!"); ok(evt.target instanceof currentEvents[i].target,
"Wrong event target [" + evt.target + "," + evt.type + "]!");
// If we handled non-optional event, remove all optional events before the // If we handled non-optional event, remove all optional events before the
// handled event and then the non-optional event from the list. // handled event and then the non-optional event from the list.
if (!currentEvents[i].optional) { if (!currentEvents[i].optional) {