From: Manolo Carrasco Date: Tue, 20 Mar 2012 07:24:56 +0000 (+0000) Subject: add fail method to the dev-mode test environment X-Git-Tag: release-1.3.2~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e0719986e1ff2afa7d17a401d2112fa6d45c1759;p=gwtquery.git add fail method to the dev-mode test environment --- 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);