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: rchandia@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10516 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java b/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
index db6badd..d598652 100644
--- a/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
+++ b/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
@@ -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());
}
/**