OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 function doUpdate() | 4 function doUpdate() |
5 { | 5 { |
6 document.getElementsByTagName('canvas')[0].style.top = "60px"; | 6 document.getElementsByTagName('canvas')[0].style.top = "60px"; |
7 | 7 |
8 if (window.testRunner) { | 8 if (window.testRunner) { |
9 testRunner.display(); | 9 testRunner.display(); |
10 testRunner.notifyDone(); | 10 testRunner.notifyDone(); |
(...skipping 25 matching lines...) Expand all Loading... |
36 outline: 1px solid blue; | 36 outline: 1px solid blue; |
37 } | 37 } |
38 body { | 38 body { |
39 background-color: darkblue; | 39 background-color: darkblue; |
40 } | 40 } |
41 </style> | 41 </style> |
42 <script> | 42 <script> |
43 | 43 |
44 if (window.testRunner) { | 44 if (window.testRunner) { |
45 testRunner.overridePreference("WebKitWebGLEnabled", "1"); | 45 testRunner.overridePreference("WebKitWebGLEnabled", "1"); |
46 testRunner.dumpAsText(true); | 46 testRunner.dumpAsTextWithPixelResults(); |
47 document.getElementById("description").style.position = "absolute"; | 47 document.getElementById("description").style.position = "absolute"; |
48 document.getElementById("description").style.top = "-5000px"; | 48 document.getElementById("description").style.top = "-5000px"; |
49 } | 49 } |
50 | 50 |
51 var can = document.createElement('canvas'); | 51 var can = document.createElement('canvas'); |
52 can.width = can.height = 100; | 52 can.width = can.height = 100; |
53 can.style.position = "absolute"; | 53 can.style.position = "absolute"; |
54 can.style.left = "40px"; | 54 can.style.left = "40px"; |
55 can.style.top = "40px"; | 55 can.style.top = "40px"; |
56 document.body.appendChild(can); | 56 document.body.appendChild(can); |
57 var ctx = can.getContext("experimental-webgl"); | 57 var ctx = can.getContext("experimental-webgl"); |
58 ctx.clearColor(1, 0, 0, 1); | 58 ctx.clearColor(1, 0, 0, 1); |
59 ctx.clear(ctx.COLOR_BUFFER_BIT); | 59 ctx.clear(ctx.COLOR_BUFFER_BIT); |
60 | 60 |
61 if (window.testRunner) | 61 if (window.testRunner) |
62 testRunner.display(); | 62 testRunner.display(); |
63 </script> | 63 </script> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
66 | 66 |
OLD | NEW |