File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
src/test/java/gwt/material/design/addins/client/ui Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public class MaterialInputMaskTest extends MaterialValueBoxTest<AbstractInputMas
3131
3232 final static String MASK_REGEX = "000.000.000.000" ;
3333 final static String VALUE = "123456789098" ;
34+ final static String EXPECTED_VALUE = "123.456.789.098" ;
3435
3536 @ Override
3637 protected AbstractInputMask createWidget () {
@@ -92,10 +93,10 @@ public void testValue() {
9293 protected void checkValue (AbstractInputMask inputMask , boolean checkCleanValue ) {
9394 inputMask .setMask (MASK_REGEX );
9495 inputMask .setValue (VALUE );
95- assertEquals (VALUE , inputMask .getValue ());
9696
9797 if (checkCleanValue ) {
98- //assertEquals(VALUE, inputMask.getCleanValue());
98+ assertEquals (EXPECTED_VALUE , inputMask .getValue ());
99+ assertEquals (VALUE , inputMask .getCleanValue ());
99100 }
100101 }
101102
Original file line number Diff line number Diff line change @@ -208,9 +208,7 @@ protected void checkOkCancelTextConfigs(MaterialTimePicker timePicker) {
208208 timePicker .setCancelText (CANCEL_TEXT );
209209 assertEquals (CANCEL_TEXT , timePicker .getCancelText ());
210210
211- final boolean [] firedOpenHandler = {false };
212211 timePicker .addOpenHandler (openEvent -> {
213- firedOpenHandler [0 ] = true ;
214212 JQueryElement cancelButton = $ (".lolliclock-buttons .lolliclock-button:nth-child(1)" );
215213 assertNotNull (cancelButton );
216214 assertEquals (CANCEL_TEXT , cancelButton .text ());
@@ -220,7 +218,6 @@ protected void checkOkCancelTextConfigs(MaterialTimePicker timePicker) {
220218 assertEquals (OK_TEXT , okButton .text ());
221219 });
222220
223- JsTimePicker .$ (timePicker .getTimeInput ().getElement ()).lolliclock ("show" );
224- assertTrue (firedOpenHandler [0 ]);
221+ JsTimePicker .$ (timePicker .getElement ()).lolliclock ("show" );
225222 }
226223}
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ public void testImageItems() {
215215 assertEquals (0 , tree .getWidgetCount ());
216216
217217 MaterialTreeItem item = new MaterialTreeItem ();
218+ item .setText ("Tree Item" );
218219 tree .add (item );
219220 assertEquals (1 , tree .getWidgetCount ());
220221
You can’t perform that action at this time.
0 commit comments