Revision: 8459
Author: [email protected]
Date: Mon Aug  2 13:10:45 2010
Log: Fixing HTMLTest so that it doesn't assume tag names returned from getInnerHtml are lowercase. IE automatically converts tag names to uppercase.

http://code.google.com/p/google-web-toolkit/source/detail?r=8459

Modified:
 /trunk/user/test/com/google/gwt/user/client/ui/HTMLTest.java

=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/HTMLTest.java Mon Aug 2 09:47:24 2010 +++ /trunk/user/test/com/google/gwt/user/client/ui/HTMLTest.java Mon Aug 2 13:10:45 2010
@@ -26,8 +26,8 @@
  */
 public class HTMLTest extends LabelTest {

- private final String EN_HTML = "<b style=\"color: red;\">" + EN_TEXT + "</b>"; - private final String IW_HTML = "<b style=\"color: red;\">" + IW_TEXT + "</b>"; + private final String EN_HTML = "<b style=\"color: red\">" + EN_TEXT + "</b>"; + private final String IW_HTML = "<b style=\"color: red\">" + IW_TEXT + "</b>";
   private HTML label;

   @Override
@@ -160,9 +160,9 @@
           Direction.DEFAULT);

       assertEquals(id + "retreived html is incorrect", iwContent,
-          label.getHTML());
+          label.getHTML().toLowerCase());
       assertEquals(id + "retreived text is incorrect", IW_TEXT,
-          label.getText());
+          label.getText().toLowerCase());
     }
   }
 }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to