Index: test/webkit/fast/js/kde/crash-2.js |
diff --git a/test/webkit/mod-by-zero.js b/test/webkit/fast/js/kde/crash-2.js |
similarity index 90% |
copy from test/webkit/mod-by-zero.js |
copy to test/webkit/fast/js/kde/crash-2.js |
index e3c51ddf04dc320c1b2852cb48206c0638737d08..84bd67f32bf9e1ba41c3640afd7350e80da20bbd 100644 |
--- a/test/webkit/mod-by-zero.js |
+++ b/test/webkit/fast/js/kde/crash-2.js |
@@ -21,12 +21,14 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-description( |
-"This tests that modulo with zero does not crash but returns NaN." |
-); |
- |
-function mod(b) { |
- return b%b; |
+description("KDE JS Test"); |
+// infinite recursion 2 |
+function foo() { |
+ foo(); |
} |
-shouldBeNaN("mod(0)"); |
+try { |
+ foo(); |
+} catch (e) { |
+ debug("OK. Caught an exception"); |
+} |