Index: gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc |
diff --git a/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc b/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc |
index 1ac777b1966bcf4ddc1d9ad6747ae831381f5115..c709a9394931568c88a17f72c784a0db2b7de874 100644 |
--- a/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc |
+++ b/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc |
@@ -275,6 +275,13 @@ TEST_F(GLCompressedCopyTextureCHROMIUMTest, InvalidTextureIds) { |
EXPECT_TRUE(glGetError() == GL_NO_ERROR); |
} |
+TEST_F(GLCompressedCopyTextureCHROMIUMTest, InvalidTextureTarget) { |
+ glBindTexture(GL_TEXTURE_CUBE_MAP, textures_[0]); |
+ glBindTexture(GL_TEXTURE_CUBE_MAP, textures_[1]); |
+ glCompressedCopyTextureCHROMIUM(textures_[0], textures_[1]); |
+ EXPECT_TRUE(glGetError() == GL_INVALID_VALUE); |
+} |
+ |
// Validate that some basic GL state is not touched upon execution of |
// the extension. |
TEST_F(GLCompressedCopyTextureCHROMIUMTest, BasicStatePreservation) { |