OLD | NEW |
| (Empty) |
1 This test ensures WebGL implementations interact correctly with the canvas tag. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Canvas.getContext | |
7 PASS context exists | |
8 | |
9 Checking canvas and WebGL interaction | |
10 PASS canvas.width is 300 | |
11 PASS canvas.height is 150 | |
12 PASS pixels are 0,0,0,0 | |
13 PASS getViewport() is "0,0,300,150" | |
14 | |
15 change display size of canvas and see that viewport does not change | |
16 PASS getViewport() is "0,0,300,150" | |
17 PASS canvas.width is 300 | |
18 PASS canvas.height is 150 | |
19 | |
20 change the actual size of the canvas and see that the viewport does not change | |
21 PASS pixels are 64,128,192,255 | |
22 PASS gl.clearColor should not change after canvas resize | |
23 PASS gl.colorMask should not change after canvas resize | |
24 PASS getViewport() is "0,0,300,150" | |
25 PASS pixels are 0,0,0,0 | |
26 | |
27 PASS successfullyParsed is true | |
28 | |
29 TEST COMPLETE | |
30 | |
OLD | NEW |