| document.getElementsByTagName('canvas')[0].style.top = "60px"; |
| testRunner.displayAndTrackRepaints(); |
| // Delay canvas layer update if test runs without testRunner to |
| // allow first layer update to be processed on UI side. |
| window.setTimeout(doUpdate, 100); |
| testRunner.waitUntilDone(); |
| <span id="description" style="color: white"> |
| This test is only useful as a pixel test. You should see red canvas of size 100x100. |
| background-color: darkblue; |
| testRunner.dumpAsText(true); |
| document.getElementById("description").style.position = "absolute"; |
| document.getElementById("description").style.top = "-5000px"; |
| var can = document.createElement('canvas'); |
| can.width = can.height = 100; |
| can.style.position = "absolute"; |
| document.body.appendChild(can); |
| var ctx = can.getContext("experimental-webgl"); |
| ctx.clearColor(1, 0, 0, 1); |
| ctx.clear(ctx.COLOR_BUFFER_BIT); |
| testRunner.displayAndTrackRepaints(); |