| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 context.clearColor(255, 0, 0, 255); | 57 context.clearColor(255, 0, 0, 255); |
| 58 context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT); | 58 context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT); |
| 59 | 59 |
| 60 // We need to ensure that the compositor has run before the drawing | 60 // We need to ensure that the compositor has run before the drawing |
| 61 // takes place. requestAnimationFrame was tried for this purpose, | 61 // takes place. requestAnimationFrame was tried for this purpose, |
| 62 // but it did not produce the failing behaviour in crbug.com/105045. | 62 // but it did not produce the failing behaviour in crbug.com/105045. |
| 63 // A timeout of 100 ms was found to consistently reproduce the problem. | 63 // A timeout of 100 ms was found to consistently reproduce the problem. |
| 64 setTimeout(draw, 100); | 64 setTimeout(draw, 100); |
| 65 } | 65 } |
| 66 </script> | 66 </script> |
| 67 <script src="../../js/resources/js-test-post.js"></script> | |
| 68 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> | 67 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> |
| 69 </body> | 68 </body> |
| 70 </html> | 69 </html> |
| OLD | NEW |