3 <title>Line breaks after hyphen before number
</title>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
22 // Each of the above tests should look like corresponding expectation below.
27 "4444444-<br>4444444",
28 "5555555-<br>abcdefg",
32 var allSuccess
= true;
33 for (var i
= 1; i
<= tests
.length
; ++i
) {
34 document
.write("Test " + i
+ ":");
35 document
.write("<div class='test' id='test" + i
+ "'>" + tests
[i
- 1] + "</div>");
36 document
.write("Expected:<div id='expected" + i
+ "'>" + expected
[i
- 1] + "</div>");
37 var success
= getComputedStyle(document
.getElementById("test" + i
, "")).height
38 == getComputedStyle(document
.getElementById("expected" + i
, "")).height
;
39 document
.write(success
? "PASS" : "FAIL");
40 document
.write("<br><br>");
41 allSuccess
= allSuccess
&& success
;
44 document
.write("Summary: " + (allSuccess
? "PASS" : "FAIL"));