diff options
author | Manolo Carrasco <manolo@apache.org> | 2012-03-20 07:24:56 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2012-03-20 07:24:56 +0000 |
commit | e0719986e1ff2afa7d17a401d2112fa6d45c1759 (patch) | |
tree | 6fd4730dd49f5fec52d7fe6d3d9fdfc1ee749755 /devtest | |
parent | d037f0cdb0794952ad3aacf51df1d77d8f63a364 (diff) | |
download | gwtquery-e0719986e1ff2afa7d17a401d2112fa6d45c1759.tar.gz gwtquery-e0719986e1ff2afa7d17a401d2112fa6d45c1759.zip |
add fail method to the dev-mode test environment
Diffstat (limited to 'devtest')
-rw-r--r-- | devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java | 4 |
1 files changed, 4 insertions, 0 deletions
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);
|