src/third_party/angle/src/tests/compiler_tests/OES_texture_cube_map_array_test.cpp
// Check that if the extension is enabled, trying to use the features without the extension
// enabled fails.
Check that if the extension is enabled, trying to use the features without the extension
enabled fails.
Check that if the extension is enabled trying to use the features without the extension enabled fails .
TEST_F(OESTextureCubeMapArrayTest, ExtensionEnabledEXT)
{
    const std::string &shaderString =
        R"(#version 310 es
        #extension GL_EXT_texture_cube_map_array : enable
        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 ( OESTextureCubeMapArrayTest , ExtensionEnabledEXT ) { const std :: string & shaderString = R" ( #version 310 es
        #extension GL_EXT_texture_cube_map_array : enable
        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 enabled, trying to use the features without the extension
enabled fails.
Check that if the extension is enabled trying to use the features without the extension enabled fails .