From kde-commits Wed Mar 21 05:24:22 2007 From: Harri Porten Date: Wed, 21 Mar 2007 05:24:22 +0000 To: kde-commits Subject: tests/khtmltests/regression/tests/js Message-Id: <1174454662.358974.20154.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117445457121623 SVN commit 644866 by porten: test for crash discovered by accident. non-sensical checks already removed in trunk. M +4 -0 Date.js --- trunk/tests/khtmltests/regression/tests/js/Date.js #644865:644866 @@ -323,4 +323,8 @@ //... but should permit doing setTime on NaN (#136992) shouldBe("new Date(NaN).setTime(1162939650000)", "1162939650000"); +// don't crash on invocation of Date functions on non-Date objects +var f = Date.prototype.toDateString; +shouldThrow("f();"); + debug("End Of Test");