OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function testOne(operation, quirk) | 4 function testOne(operation, quirk) |
5 { | 5 { |
6 if (window.testRunner){ | 6 if (window.testRunner){ |
7 » » testRunner.dumpAsText(true); | 7 » » testRunner.dumpAsTextWithPixelResults(); |
8 if (testRunner.setUseDashboardCompatibilityMode) | 8 if (testRunner.setUseDashboardCompatibilityMode) |
9 testRunner.setUseDashboardCompatibilityMode(quirk); | 9 testRunner.setUseDashboardCompatibilityMode(quirk); |
10 } | 10 } |
11 | 11 |
12 var canvas = document.getElementById(operation + "-" + (quirk ? "" : "no-")
+ "quirk"); | 12 var canvas = document.getElementById(operation + "-" + (quirk ? "" : "no-")
+ "quirk"); |
13 var context = canvas.getContext('2d'); | 13 var context = canvas.getContext('2d'); |
14 | 14 |
15 context.fillStyle = quirk ? "green" : "red"; | 15 context.fillStyle = quirk ? "green" : "red"; |
16 context.fillRect(0, 0, 1000, 1000); | 16 context.fillRect(0, 0, 1000, 1000); |
17 | 17 |
(...skipping 22 matching lines...) Expand all Loading... |
40 <p>All three of these small canvases should be green, not red.</p> | 40 <p>All three of these small canvases should be green, not red.</p> |
41 <canvas id="fill-no-quirk" width="20" height="20"></canvas> | 41 <canvas id="fill-no-quirk" width="20" height="20"></canvas> |
42 <canvas id="stroke-no-quirk" width="20" height="20"></canvas> | 42 <canvas id="stroke-no-quirk" width="20" height="20"></canvas> |
43 <canvas id="clip-no-quirk" width="20" height="20"></canvas> | 43 <canvas id="clip-no-quirk" width="20" height="20"></canvas> |
44 <p>All three of these small canvases should be green, not red, too, but these te
st the Dashboard compatibility mode so they work properly only under DumpRenderT
ree.</p> | 44 <p>All three of these small canvases should be green, not red, too, but these te
st the Dashboard compatibility mode so they work properly only under DumpRenderT
ree.</p> |
45 <canvas id="fill-quirk" width="20" height="20"></canvas> | 45 <canvas id="fill-quirk" width="20" height="20"></canvas> |
46 <canvas id="stroke-quirk" width="20" height="20"></canvas> | 46 <canvas id="stroke-quirk" width="20" height="20"></canvas> |
47 <canvas id="clip-quirk" width="20" height="20"></canvas> | 47 <canvas id="clip-quirk" width="20" height="20"></canvas> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |