| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 | 7 |
| 8 function update() { | 8 function update() { |
| 9 | 9 |
| 10 // These arrays will become unnecessary if we fix the rounding issues th
at make us not always report "37x33". | 10 // These arrays will become unnecessary if we fix the rounding issues th
at make us not always report "37x33". |
| 11 var expectedWidths, expectedHeights; | 11 var expectedWidths, expectedHeights; |
| 12 expectedWidths = [100, 50, 33, 25, 40, 36, 36, 38, 37, 37, 37, 38, 37, 3
7, 37]; | 12 expectedWidths = [100, 50, 33, 25, 40, 36, 36, 38, 37, 37, 37, 37, 37, 3
7, 37]; |
| 13 expectedHeights = [100, 50, 33, 25, 40, 33, 33, 34, 32, 33, 34, 34, 33,
33, 33]; | 13 expectedHeights = [100, 50, 33, 25, 40, 33, 33, 34, 32, 33, 33, 33, 33,
33, 33]; |
| 14 for (i = 0; i < 15; ++i) { | 14 for (i = 0; i < 15; ++i) { |
| 15 var oval = document.getElementById('oval' + i); | 15 var oval = document.getElementById('oval' + i); |
| 16 var status = document.getElementById('status' + i); | 16 var status = document.getElementById('status' + i); |
| 17 var sizes = document.getElementById('sizes' + i); | 17 var sizes = document.getElementById('sizes' + i); |
| 18 if ((oval.width == expectedWidths[i]) && (oval.height == expectedHeigh
ts[i])) { | 18 if ((oval.width == expectedWidths[i]) && (oval.height == expectedHeigh
ts[i])) { |
| 19 status.style.color = "green"; | 19 status.style.color = "green"; |
| 20 status.innerHTML = "PASS"; | 20 status.innerHTML = "PASS"; |
| 21 sizes.innerHTML = oval.width + "x" + oval.height + (((oval.width !=
37) || (oval.height != 33)) ? " close enough to 37x33" : ""); | 21 sizes.innerHTML = oval.width + "x" + oval.height + (((oval.width !=
37) || (oval.height != 33)) ? " close enough to 37x33" : ""); |
| 22 } else { | 22 } else { |
| 23 status.style.color = "red"; | 23 status.style.color = "red"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 <img id="oval11" src="resources/oval.png" style="zoom: 150%"> | 56 <img id="oval11" src="resources/oval.png" style="zoom: 150%"> |
| 57 <p>Zoom 150% <span id="status11"></span>: <span id="sizes11"></span></p> | 57 <p>Zoom 150% <span id="status11"></span>: <span id="sizes11"></span></p> |
| 58 <img id="oval12" src="resources/oval.png" style="zoom: 333%"> | 58 <img id="oval12" src="resources/oval.png" style="zoom: 333%"> |
| 59 <p>Zoom 333% <span id="status12"></span>: <span id="sizes12"></span></p> | 59 <p>Zoom 333% <span id="status12"></span>: <span id="sizes12"></span></p> |
| 60 <img id="oval13" src="resources/oval.png" style="zoom: 400%"> | 60 <img id="oval13" src="resources/oval.png" style="zoom: 400%"> |
| 61 <p>Zoom 400% <span id="status13"></span>: <span id="sizes13"></span></p> | 61 <p>Zoom 400% <span id="status13"></span>: <span id="sizes13"></span></p> |
| 62 <img id="oval14" src="resources/oval.png" style="zoom: 1234%"> | 62 <img id="oval14" src="resources/oval.png" style="zoom: 1234%"> |
| 63 <p>Zoom 1234% <span id="status14"></span>: <span id="sizes14"></span></p> | 63 <p>Zoom 1234% <span id="status14"></span>: <span id="sizes14"></span></p> |
| 64 </body> | 64 </body> |
| 65 </html> | 65 </html> |
| OLD | NEW |