Revision: 10516
Author: [email protected]
Date: Wed Aug 10 10:52:18 2011
Log: Fix a couple of UiBinder tests with the expected text on the
wrong side of the assert.
Review at http://gwt-code-reviews.appspot.com/1514806
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=10516
Modified:
/trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
=======================================
--- /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
Mon Aug 1 13:27:49 2011
+++ /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
Wed Aug 10 10:52:18 2011
@@ -593,12 +593,10 @@
}
public void testAlignmentAttributes() {
- assertEquals(
-
widgetUi.myHorizontalPanel.getHorizontalAlignment().getTextAlignString(),
- "left");
- assertEquals(
-
widgetUi.myHorizontalPanel.getVerticalAlignment().getVerticalAlignString(),
- "middle");
+ assertEquals("left",
+
widgetUi.myHorizontalPanel.getHorizontalAlignment().getTextAlignString());
+ assertEquals("middle",
+
widgetUi.myHorizontalPanel.getVerticalAlignment().getVerticalAlignString());
final String innerHtml =
widgetUi.myHorizontalPanel.getElement().getInnerHTML();
@@ -614,12 +612,12 @@
}
public void testUiTextWithSafeHtml() {
- assertEquals(widgetUi.htmlWithComputedSafeHtml.getHTML().toLowerCase(),
- "<b>this text should be bold!</b>");
- assertEquals(widgetUi.htmlWithComputedText.getHTML().toLowerCase()
- .replaceAll(">", ">"), "<b>this text won't be
bold!</b>");
- assertEquals(widgetUi.labelWithComputedText.getText().toLowerCase(),
- "<b>this text won't be bold!</b>");
+ assertEquals("<b>this text should be bold!</b>",
+ widgetUi.htmlWithComputedSafeHtml.getHTML().toLowerCase());
+ assertEquals("<b>this text won't be bold!</b>",
+
widgetUi.htmlWithComputedText.getHTML().toLowerCase().replaceAll(">", ">"));
+ assertEquals("<b>this text won't be bold!</b>",
+ widgetUi.labelWithComputedText.getText().toLowerCase());
}
/**
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors