| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
| 5 <script src="resources/webgl-test-utils.js"> </script> | 5 <script src="resources/webgl-test-utils.js"> </script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div id="description"></div> | 8 <div id="description"></div> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 <script> | 10 <script> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 context.clearColor(255, 0, 0, 255); | 48 context.clearColor(255, 0, 0, 255); |
| 49 context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT); | 49 context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT); |
| 50 | 50 |
| 51 // We need to ensure that the compositor has run before the drawing | 51 // We need to ensure that the compositor has run before the drawing |
| 52 // takes place. Setting a timeout of zero causes the compositor to run before | 52 // takes place. Setting a timeout of zero causes the compositor to run before |
| 53 // the draw call. Using requestAnimationFrame caused the test to time-out. | 53 // the draw call. Using requestAnimationFrame caused the test to time-out. |
| 54 setTimeout(draw, 0); | 54 setTimeout(draw, 0); |
| 55 } | 55 } |
| 56 </script> | 56 </script> |
| 57 <script src="../../js/resources/js-test-post.js"></script> | |
| 58 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> | 57 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> |
| 59 </body> | 58 </body> |
| 60 </html> | 59 </html> |
| OLD | NEW |