Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/error-reporting.html

Issue 1601093008: Remove duplicated WebGL layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/webgl/error-reporting.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/error-reporting.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/error-reporting.html
deleted file mode 100644
index 0e953b6d3a69ab759e1cc7deca432b7c0ff3f564..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/error-reporting.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="resources/webgl-test.js"></script>
-</head>
-<body>
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-description("Tests generation of synthetic and real GL errors");
-
-if (window.internals)
- window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
-
-var context = create3DContext();
-var program = loadStandardProgram(context);
-
-// Other tests in this directory like getActiveTest and
-// incorrect-context-object-behaviour already test the raising of many
-// synthetic GL errors. This test verifies the raising of certain
-// known real GL errors, and contains a few regression tests for bugs
-// discovered in the synthetic error generation and in the WebGL
-// implementation itself.
-
-glErrorShouldBe(context, context.NO_ERROR);
-
-debug("Testing getActiveAttrib");
-// Synthetic OpenGL error
-shouldBeNull("context.getActiveAttrib(null, 2)");
-glErrorShouldBe(context, context.INVALID_VALUE);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-// Real OpenGL error
-shouldBeNull("context.getActiveAttrib(program, 2)");
-glErrorShouldBe(context, context.INVALID_VALUE);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-
-debug("Testing getActiveUniform");
-// Synthetic OpenGL error
-shouldBeNull("context.getActiveUniform(null, 0)");
-glErrorShouldBe(context, context.INVALID_VALUE);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-// Real OpenGL error
-shouldBeNull("context.getActiveUniform(program, 50)");
-glErrorShouldBe(context, context.INVALID_VALUE);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-
-debug("Testing attempts to manipulate the default framebuffer");
-shouldBeUndefined("context.bindFramebuffer(context.FRAMEBUFFER, null)");
-glErrorShouldBe(context, context.NO_ERROR);
-shouldBeUndefined("context.framebufferRenderbuffer(context.FRAMEBUFFER, context.DEPTH_ATTACHMENT, context.RENDERBUFFER, null)");
-// Synthetic OpenGL error
-glErrorShouldBe(context, context.INVALID_OPERATION);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-shouldBeUndefined("context.framebufferTexture2D(context.FRAMEBUFFER, context.COLOR_ATTACHMENT0, context.TEXTURE_2D, null, 0)");
-// Synthetic OpenGL error
-glErrorShouldBe(context, context.INVALID_OPERATION);
-// Error state should be clear by this point
-glErrorShouldBe(context, context.NO_ERROR);
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698