File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,10 @@ public T withStyle(String style) {
253
253
return attr (Attr .STYLE , style );
254
254
}
255
255
256
+ public T withStep (String step ) {
257
+ return attr (Attr .STEP , step );
258
+ }
259
+
256
260
public T withValue (String value ) {
257
261
return attr (Attr .VALUE , value );
258
262
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public void testAllConvenienceMethods() throws Exception {
36
36
assertThat (link ().withRel ("stylesheet" ).render (), is ("<link rel=\" stylesheet\" >" ));
37
37
assertThat (link ().withRole ("role" ).render (), is ("<link role=\" role\" >" ));
38
38
assertThat (img ().withSrc ("/img/test.png" ).render (), is ("<img src=\" /img/test.png\" >" ));
39
+ assertThat (input ().withStep ("0.1" ).render (), is ("<input step=\" 0.1\" >" ));
39
40
assertThat (div ().withStyle ("background:red;" ).render (), is ("<div style=\" background:red;\" ></div>" ));
40
41
assertThat (input ().withValue ("test-value" ).render (), is ("<input value=\" test-value\" >" ));
41
42
}
You can’t perform that action at this time.
0 commit comments