Reviewers: rchandia,
Description:
Fix a couple of UiBinder tests with the expected text on the wrong side
of the assert.
Please review this at http://gwt-code-reviews.appspot.com/1514806/
Affected files:
M user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
Index: user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
===================================================================
--- user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
(revision 10515)
+++ user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
(working copy)
@@ -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