| <script type="text/javascript"> |
| var completed = 0, failures = 0, failuresDetail = ""; |
| testRunner.waitUntilDone(); |
| document.getElementById("result").innerText = failures ? "FAIL: " + failures + " cases failed\n" + failuresDetail : "PASS"; |
| function imageCheckForMin(image) { |
| if (image.src.match("greenbox-100px.png") != null) { |
| image.src = "resources/greenbox.png"; |
| failuresDetail += image.id + ": " + image.width + " (expected: " + 25 + ")\n"; |
| <img id="percentMinWidthInTable" style="min-width:100%;" src="resources/greenbox-100px.png" onload="imageCheckForMin(this)"> |
| <div style="position:absolute;top:200px;left:11px"> |
| <img id="percentMinWidthInAbsolute" style="min-width:100%;" src="resources/greenbox-100px.png" onload="imageCheckForMin(this)"> |