1------------------------------------------------------------------------- 2drawElements Quality Program Test Specification 3----------------------------------------------- 4 5Copyright 2014 The Android Open Source Project 6 7Licensed under the Apache License, Version 2.0 (the "License"); 8you may not use this file except in compliance with the License. 9You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13Unless required by applicable law or agreed to in writing, software 14distributed under the License is distributed on an "AS IS" BASIS, 15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16See the License for the specific language governing permissions and 17limitations under the License. 18------------------------------------------------------------------------- 19 Negative API tests 20 21Tests: 22 + dEQP-GLES2.functional.negative_api.* 23 24Includes: 25 + Negative tests for all API functions capable of producing errors 26 + Test cases are organized into following categories: 27 - Buffer API 28 - Fragment API 29 - Shader API 30 - State API & Special Functions 31 - Texture API 32 - Vertex Array API 33 34Excludes: 35 + Tests for API functions that cannot produce errors 36 37Description: 38 39Negative API test set goes through all GL commands that are capable of 40producing error states. First, each command is used incorrectly, and then 41GL errors are queried with glGetError(). If the received error code does 42not match the specification, the test case is failed. 43 44Test log includes a quote from the specification indicating the conditions 45for the error, which error code was expected and which error code was 46returned by the implementation. 47 48Not all commands, such as glFinish() or glIsBuffer(), are capable of 49producing errors, and thus are not included in the test set. 50