Revision: 7303 Author: [email protected] Date: Sun Dec 13 11:42:16 2009 Log: Avoid running a test on HtmlUnit where HtmlUnit fails to convert certain floating point numbers to strings properly.
http://code.google.com/p/google-web-toolkit/source/detail?r=7303 Modified: /changes/jat/bigdecimal/user/test/com/google/gwt/emultest/java/math/BigDecimalConstructorsTest.java ======================================= --- /changes/jat/bigdecimal/user/test/com/google/gwt/emultest/java/math/BigDecimalConstructorsTest.java Fri Dec 11 15:00:40 2009 +++ /changes/jat/bigdecimal/user/test/com/google/gwt/emultest/java/math/BigDecimalConstructorsTest.java Sun Dec 13 11:42:16 2009 @@ -37,6 +37,8 @@ package com.google.gwt.emultest.java.math; import com.google.gwt.emultest.java.util.EmulTestBase; +import com.google.gwt.junit.DoNotRunWith; +import com.google.gwt.junit.Platform; import java.math.BigDecimal; import java.math.BigInteger; @@ -267,7 +269,9 @@ /** * new BigDecimal(double value) when value is denormalized. */ + @DoNotRunWith(Platform.HtmlUnit) public void testConstrDoubleDenormalized() { + // HtmlUnit incorrectly converts the following double to a string double a = 2.274341322658976E-309; BigDecimal aNumber = new BigDecimal(a); BigDecimal expected = new BigDecimal( -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
