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