| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <head> | 2 <head> |
| 3 <title>Canvas test: drawSystemFocusRing</title> | 3 <title>Canvas test: drawSystemFocusRing</title> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body style="padding: 0; margin: 0"> | 6 <body style="padding: 0; margin: 0"> |
| 7 <canvas id="canvas" class="output" width="300" height="350"> | 7 <canvas id="canvas" class="output" width="300" height="350"> |
| 8 <button id="button1"></button> | 8 <button id="button1"></button> |
| 9 <button id="button2"></button> | 9 <button id="button2"></button> |
| 10 </canvas> | 10 </canvas> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // It should have an outline in some color other than the background color. | 31 // It should have an outline in some color other than the background color. |
| 32 var imageData = canvas.getImageData(49, 50, 1, 1); | 32 var imageData = canvas.getImageData(49, 50, 1, 1); |
| 33 var data = imageData.data; | 33 var data = imageData.data; |
| 34 shouldBe("data[0] != 0 || data[1] != 0 || data[2] != 0", "true"); | 34 shouldBe("data[0] != 0 || data[1] != 0 || data[2] != 0", "true"); |
| 35 | 35 |
| 36 // The bottom rect"s focus ring is tied to button2, which is not focused. | 36 // The bottom rect"s focus ring is tied to button2, which is not focused. |
| 37 imageData = canvas.getImageData(49, 200, 1, 1); | 37 imageData = canvas.getImageData(49, 200, 1, 1); |
| 38 data = imageData.data; | 38 data = imageData.data; |
| 39 shouldBe("data[0] == 0 && data[1] == 0 && data[2] == 0", "true"); | 39 shouldBe("data[0] == 0 && data[1] == 0 && data[2] == 0", "true"); |
| 40 </script> | 40 </script> |
| 41 <script src="../js/resources/js-test-post.js"></script> | |
| 42 </body> | 41 </body> |
| OLD | NEW |