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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <script> | 10 <script> |
11 description("Tests generation of synthetic and real GL errors"); | 11 description("Tests generation of synthetic and real GL errors"); |
12 | 12 |
13 if (window.internals) | 13 if (window.internals) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 glErrorShouldBe(context, context.NO_ERROR); | 59 glErrorShouldBe(context, context.NO_ERROR); |
60 shouldBeUndefined("context.framebufferTexture2D(context.FRAMEBUFFER, context.COL
OR_ATTACHMENT0, context.TEXTURE_2D, null, 0)"); | 60 shouldBeUndefined("context.framebufferTexture2D(context.FRAMEBUFFER, context.COL
OR_ATTACHMENT0, context.TEXTURE_2D, null, 0)"); |
61 // Synthetic OpenGL error | 61 // Synthetic OpenGL error |
62 glErrorShouldBe(context, context.INVALID_OPERATION); | 62 glErrorShouldBe(context, context.INVALID_OPERATION); |
63 // Error state should be clear by this point | 63 // Error state should be clear by this point |
64 glErrorShouldBe(context, context.NO_ERROR); | 64 glErrorShouldBe(context, context.NO_ERROR); |
65 </script> | 65 </script> |
66 | 66 |
67 </body> | 67 </body> |
68 </html> | 68 </html> |
OLD | NEW |