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

Unified Diff: conformance/gl-geterror.html

Issue 8344024: Remove older revision of webgl conformance tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « conformance/gl-get-calls.html ('k') | conformance/gl-getshadersource.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: conformance/gl-geterror.html
===================================================================
--- conformance/gl-geterror.html (revision 106149)
+++ conformance/gl-geterror.html (working copy)
@@ -1,64 +0,0 @@
-<!--
-Copyright (c) 2009 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-<title>WebGL get error conformance test.</title>
-<link rel="stylesheet" href="../resources/js-test-style.css"/>
-<script src="../resources/desktop-gl-constants.js" type="text/javascript"></script>
-<script src="../resources/js-test-pre.js"></script>
-<script src="resources/webgl-test.js"> </script>
-<script src="resources/webgl-test-utils.js"> </script>
-</head>
-<body>
-<canvas id="example" width="1" height="1" style="width: 256px; height: 48px;"></canvas>
-<div id="description"></div><div id="console"></div>
-<script>
-description("Test getError.");
-var wtu = WebGLTestUtils;
-var canvas = document.getElementById("example");
-var gl = wtu.create3DContext(canvas);
-var tex = gl.createTexture();
-gl.bindTexture(gl.TEXTURE_2D, tex);
-
-gl.enable(desktopGL.ALPHA_TEST);
-glErrorShouldBe(gl, gl.INVALID_ENUM, "should generate INVALID_ENUM");
-gl.viewport(-1, -1, -1, -1);
-glErrorShouldBe(gl, gl.INVALID_VALUE, "should generate INVALID_VALUE");
-gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
-glErrorShouldBe(gl, gl.INVALID_OPERATION, "should generate INVALID_OPERATION");
-
-// Generate errors of each type.
-// Generate 2 of each type to make sure the implementation is using a flag
-// per type and not a list of errors.
-gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
-gl.viewport(-1, -1, -1, -1);
-gl.enable(desktopGL.ALPHA_TEST);
-gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
-gl.viewport(-1, -1, -1, -1);
-// Note: This error is specifically last because we know it will be synthasized
-// by WebGL at least when implemented on top of Desktop OpenGL
-gl.enable(desktopGL.ALPHA_TEST);
-
-debug("There should be 3 errors, one of each type");
-var err1 = gl.getError();
-var err2 = gl.getError();
-var err3 = gl.getError();
-
-shouldBeTrue('err1 != err2 && err1 != err3 && err2 != err3');
-shouldBeTrue('err1 == gl.INVALID_ENUM || err1 == gl.INVALID_VALUE || err1 == gl.INVALID_OPERATION');
-shouldBeTrue('err2 == gl.INVALID_ENUM || err2 == gl.INVALID_VALUE || err2 == gl.INVALID_OPERATION');
-shouldBeTrue('err3 == gl.INVALID_ENUM || err3 == gl.INVALID_VALUE || err3 == gl.INVALID_OPERATION');
-shouldBeTrue('gl.getError() == gl.NO_ERROR');
-
-debug("");
-successfullyParsed = true;
-</script>
-<script src="../resources/js-test-post.js"></script>
-</body>
-</html>
-
« no previous file with comments | « conformance/gl-get-calls.html ('k') | conformance/gl-getshadersource.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698