KhronosGroup / WebCL-conformance

WebCL conformance tests
20 stars 15 forks source link

Change arguments for valid testing #110

Open FidelisJPark opened 6 years ago

FidelisJPark commented 6 years ago

When creating a WebCLImageDescriptor, pass the width or height as a string, not an integer, to see if an error occurs. If the string can be converted from V8 to an integer type, it is changed to an integer type and passed to WebCL. When "10" is inserted, V8 changes to 10 integer type. Therefore, for testing, it must be changed to provide a string that can not be converted to a number, such as "a10". Passing a string that can not be converted to a number results in INVALID_IMAGE_SIZE. The problematic part is in https://github.com/KhronosGroup/WebCL-conformance/blob/master/conformance/bindingTesting/contextAndCreate/cl_context_createImage.html L94 and L97