Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: LayoutTests/fast/canvas/draw-system-focus-ring-on-event.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 23 matching lines...) Expand all
34 // It should have an outline in some color other than the background color. 34 // It should have an outline in some color other than the background color.
35 var imageData = canvas.getImageData(49, 50, 1, 1); 35 var imageData = canvas.getImageData(49, 50, 1, 1);
36 var data = imageData.data; 36 var data = imageData.data;
37 shouldBe("data[0] != 0 || data[1] != 0 || data[2] != 0", "true"); 37 shouldBe("data[0] != 0 || data[1] != 0 || data[2] != 0", "true");
38 38
39 // The bottom rect"s focus ring is tied to button2, which is not focused. 39 // The bottom rect"s focus ring is tied to button2, which is not focused.
40 imageData = canvas.getImageData(49, 200, 1, 1); 40 imageData = canvas.getImageData(49, 200, 1, 1);
41 data = imageData.data; 41 data = imageData.data;
42 shouldBe("data[0] == 0 && data[1] == 0 && data[2] == 0", "true"); 42 shouldBe("data[0] == 0 && data[1] == 0 && data[2] == 0", "true");
43 </script> 43 </script>
44 <script src="../js/resources/js-test-post.js"></script>
45 </body> 44 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/draw-system-focus-ring.html ('k') | LayoutTests/fast/canvas/drawImage-with-broken-image.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698