| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.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> |
| 11 description("Checks that painting WebGL contents doesn't pollute the context sta
te."); | 11 description("Checks that painting WebGL contents doesn't pollute the context sta
te."); |
| 12 | 12 |
| 13 var wtu = WebGLTestUtils; | 13 var wtu = WebGLTestUtils; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> | 67 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |