|
65 | 65 | } |
66 | 66 | checkDependencyExtensionsEnabled(true); |
67 | 67 |
|
| 68 | + checkEnums(); |
68 | 69 | checkImplementationDependentLimits(); |
69 | 70 | checkInitialValues(); |
70 | 71 | checkWebGLNonNormativeBehavior(); |
|
116 | 117 | } |
117 | 118 | } |
118 | 119 |
|
| 120 | +function checkEnums() { |
| 121 | + debug("\nVerify the extension's enum values, since they changed during the extension's development."); |
| 122 | + shouldBe("pls.MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E0"); |
| 123 | + shouldBe("pls.MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E1"); |
| 124 | + shouldBe("pls.PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL", "0x96E2"); |
| 125 | + shouldBe("pls.LOAD_OP_ZERO_WEBGL", "0x96E3"); |
| 126 | + shouldBe("pls.LOAD_OP_CLEAR_WEBGL", "0x96E4"); |
| 127 | + shouldBe("pls.LOAD_OP_LOAD_WEBGL", "0x96E5"); |
| 128 | + shouldBe("pls.STORE_OP_STORE_WEBGL", "0x96E6"); |
| 129 | + shouldBe("pls.PIXEL_LOCAL_FORMAT_WEBGL", "0x96E7"); |
| 130 | + shouldBe("pls.PIXEL_LOCAL_TEXTURE_NAME_WEBGL", "0x96E8"); |
| 131 | + shouldBe("pls.PIXEL_LOCAL_TEXTURE_LEVEL_WEBGL", "0x96E9"); |
| 132 | + shouldBe("pls.PIXEL_LOCAL_TEXTURE_LAYER_WEBGL", "0x96EA"); |
| 133 | + shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_FLOAT_WEBGL", "0x96EB"); |
| 134 | + shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_INT_WEBGL", "0x96EC"); |
| 135 | + shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_UNSIGNED_INT_WEBGL", "0x96ED"); |
| 136 | +} |
| 137 | + |
119 | 138 | function checkImplementationDependentLimits() { |
120 | 139 | debug("\nVerify conformant implementation-dependent PLS limits."); |
121 | 140 | window.MAX_PIXEL_LOCAL_STORAGE_PLANES = |
|
0 commit comments