@@ -38,7 +38,8 @@ public class HtmlRangeInputTest extends WebDriverTestCase {
3838 @ Test
3939 @ Alerts ({"50----" , "50----" , "50----" })
4040 public void defaultValues () throws Exception {
41- final String html = "<html><head>\n "
41+ final String html = DOCTYPE_HTML
42+ + "<html><head>\n "
4243 + "<script>\n "
4344 + LOG_TITLE_FUNCTION
4445 + " function test() {\n "
@@ -76,7 +77,8 @@ public void defaultValues() throws Exception {
7677 @ Test
7778 @ Alerts ({"50----" , "50----" , "50----" })
7879 public void defaultValuesAfterClone () throws Exception {
79- final String html = "<html><head>\n "
80+ final String html = DOCTYPE_HTML
81+ + "<html><head>\n "
8082 + "<script>\n "
8183 + LOG_TITLE_FUNCTION
8284 + " function test() {\n "
@@ -117,7 +119,8 @@ public void defaultValuesAfterClone() throws Exception {
117119 @ Test
118120 @ Alerts ({"7-7---" , "7-7---" , "4-7---" , "4-7---" , "4-2---" , "4-2---" })
119121 public void resetByClick () throws Exception {
120- final String html = "<html><head>\n "
122+ final String html = DOCTYPE_HTML
123+ + "<html><head>\n "
121124 + "<script>\n "
122125 + LOG_TITLE_FUNCTION
123126 + " function test() {\n "
@@ -168,7 +171,8 @@ public void resetByClick() throws Exception {
168171 @ Test
169172 @ Alerts ({"7-7---" , "7-7---" , "4-7---" , "4-7---" , "4-2---" , "4-2---" })
170173 public void resetByJS () throws Exception {
171- final String html = "<html><head>\n "
174+ final String html = DOCTYPE_HTML
175+ + "<html><head>\n "
172176 + "<script>\n "
173177 + LOG_TITLE_FUNCTION
174178 + " function test() {\n "
@@ -218,7 +222,8 @@ public void resetByJS() throws Exception {
218222 @ Test
219223 @ Alerts ({"7-7---" , "4-4---" , "2-4---" , "2-8---" })
220224 public void defaultValue () throws Exception {
221- final String html = "<html><head>\n "
225+ final String html = DOCTYPE_HTML
226+ + "<html><head>\n "
222227 + "<script>\n "
223228 + LOG_TITLE_FUNCTION
224229 + " function test() {\n "
@@ -259,7 +264,8 @@ public void defaultValue() throws Exception {
259264 @ Alerts ({"50----" , "50--100-0-" , "5--10-0-" , "4--7-0-" ,
260265 "2--7--4-" , "4.3--7.01-1.3-" })
261266 public void valueDependsOnMinMax () throws Exception {
262- final String html = "<html>\n "
267+ final String html = DOCTYPE_HTML
268+ + "<html>\n "
263269 + "<head>\n "
264270 + "<script>\n "
265271 + LOG_TITLE_FUNCTION
@@ -294,7 +300,8 @@ public void valueDependsOnMinMax() throws Exception {
294300 @ Test
295301 @ Alerts ({"41-42-1234-2-13" , "5-5-10-2-1" , "6-5-10-2-2" })
296302 public void properties () throws Exception {
297- final String html = "<html><head>\n "
303+ final String html = DOCTYPE_HTML
304+ + "<html><head>\n "
298305 + "<script>\n "
299306 + LOG_TITLE_FUNCTION
300307 + " function test() {\n "
@@ -326,7 +333,8 @@ public void properties() throws Exception {
326333 @ Test
327334 @ Alerts ({"42" , "50" })
328335 public void clearInput () throws Exception {
329- final String html = "<html>\n "
336+ final String html = DOCTYPE_HTML
337+ + "<html>\n "
330338 + "<body>\n "
331339 + "<form>\n "
332340 + " <input type='range' id='tester' value='42'>\n "
@@ -351,7 +359,8 @@ public void clearInput() throws Exception {
351359 @ Test
352360 @ Alerts ("--" )
353361 public void minMaxStep () throws Exception {
354- final String html = "<html>\n "
362+ final String html = DOCTYPE_HTML
363+ + "<html>\n "
355364 + "<head>\n "
356365 + "<script>\n "
357366 + LOG_TITLE_FUNCTION
@@ -377,7 +386,8 @@ public void minMaxStep() throws Exception {
377386 @ Test
378387 @ Alerts ({"true-true-true-true-true-true" , "55-10-10-100-0-0" })
379388 public void minValidation () throws Exception {
380- final String html = "<html>\n "
389+ final String html = DOCTYPE_HTML
390+ + "<html>\n "
381391 + "<head>\n "
382392 + "<script>\n "
383393 + LOG_TITLE_FUNCTION
@@ -416,7 +426,8 @@ public void minValidation() throws Exception {
416426 @ Test
417427 @ Alerts ({"true-true-true-true-true-true" , "5-1-10-10-0-0" })
418428 public void maxValidation () throws Exception {
419- final String html = "<html>\n "
429+ final String html = DOCTYPE_HTML
430+ + "<html>\n "
420431 + "<head>\n "
421432 + "<script>\n "
422433 + LOG_TITLE_FUNCTION
@@ -456,8 +467,8 @@ public void maxValidation() throws Exception {
456467 @ Test
457468 @ Alerts ({"true" , "false" , "true" , "false" , "true" })
458469 public void willValidate () throws Exception {
459- final String html =
460- "<html><head>\n "
470+ final String html = DOCTYPE_HTML
471+ + "<html><head>\n "
461472 + " <script>\n "
462473 + LOG_TITLE_FUNCTION
463474 + " function test() {\n "
@@ -550,8 +561,8 @@ public void validationRequiredValueSet() throws Exception {
550561 }
551562
552563 private void validation (final String htmlPart , final String jsPart ) throws Exception {
553- final String html =
554- "<html><head>\n "
564+ final String html = DOCTYPE_HTML
565+ + "<html><head>\n "
555566 + " <script>\n "
556567 + LOG_TITLE_FUNCTION
557568 + " function logValidityState(s) {\n "
0 commit comments