4 <script type=
"text/javascript">
5 var completed
= 0, failures
= 0, failuresDetail
= "";
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
10 function printResult() {
11 document
.getElementById("result").innerText
= failures
? "FAIL: " + failures
+ " cases failed\n" + failuresDetail
: "PASS";
12 if (window
.testRunner
)
13 testRunner
.notifyDone();
16 function imageCheckForMin(image
) {
17 if (image
.src
.match("greenbox-100px.png") != null) {
18 image
.src
= "resources/greenbox.png";
22 if (image
.width
!= 25) {
24 failuresDetail
+= image
.id
+ ": " + image
.width
+ " (expected: " + 25 + ")\n";
34 <div id=
"result"></div>
39 <img id=
"percentMinWidthInTable" style=
"min-width:100%;" src=
"resources/greenbox-100px.png" onload=
"imageCheckForMin(this)">
44 <div style=
"position:absolute;top:200px;left:11px">
45 <img id=
"percentMinWidthInAbsolute" style=
"min-width:100%;" src=
"resources/greenbox-100px.png" onload=
"imageCheckForMin(this)">