src/third_party/angle/src/tests/compiler_tests/OES_texture_cube_map_array_test.cpp
// Check that if the extension is not supported, trying to use the features without having an
// extension directive fails.
Check that if the extension is not supported, trying to use the features without having an
extension directive fails.
Check that if the extension is not supported trying to use the features without having an extension directive fails .
TEST_F(TextureCubeMapArrayTestNoExt, MissingExtensionDirective)
{
    const std::string &shaderString =
        R"(
        precision mediump float;
        uniform highp isamplerCubeArray u_sampler;
        void main()
        {
            vec4 color = vec4(texture(u_sampler, vec4(0, 0, 0, 0)));
        })";
    if (compile(shaderString))
    {
        FAIL() << "Shader compilation succeeded, expecting failure:\n" << mInfoLog;
    }
}
TEST_F ( TextureCubeMapArrayTestNoExt , MissingExtensionDirective ) { const std :: string & shaderString = R" ( 
        precision mediump float;
        uniform highp isamplerCubeArray u_sampler;
        void main()
        {
            vec4 color = vec4(texture(u_sampler, vec4(0, 0, 0, 0)));
        } ) " ; if ( compile ( shaderString ) ) { FAIL ( ) << " \n " << mInfoLog ; } }
Check that if the extension is not supported, trying to use the features without having an
extension directive fails.
Check that if the extension is not supported trying to use the features without having an extension directive fails .