From e0719986e1ff2afa7d17a401d2112fa6d45c1759 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Tue, 20 Mar 2012 07:24:56 +0000 Subject: add fail method to the dev-mode test environment --- devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java b/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java index 4b0c92b7..8a8160d1 100644 --- a/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java +++ b/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java @@ -119,6 +119,10 @@ public class MyTestCase { protected void finishTest() { testRunning = false; } + + protected void fail() { + check(false, "Test failure"); + } protected void assertPosition(GQuery g, Offset min, Offset max) { int a = Math.min(min.top, max.top); -- cgit v1.2.3