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

Unified Diff: content/test/data/gpu/webgl_debug_renderer_info.html

Issue 48113021: Expose WebGL extension WEBGL_debug_renderer_info to Google domains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update the test Created 7 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
Index: content/test/data/gpu/webgl_debug_renderer_info.html
diff --git a/content/test/data/gpu/webgl_debug_renderer_info.html b/content/test/data/gpu/webgl_debug_renderer_info.html
new file mode 100644
index 0000000000000000000000000000000000000000..308139d2a2baf055f977dd12ec869388f2d0c37b
--- /dev/null
+++ b/content/test/data/gpu/webgl_debug_renderer_info.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script type="text/javascript">
+function runTest() {
+ var canvas = document.getElementById("canvas1");
+ if (!canvas)
+ return false;
+ var gl = canvas.getContext("experimental-webgl");
+ if (!gl)
+ gl = canvas.getContext("webgl");
+ if (!gl)
+ return false;
+ var extension = gl.getExtension("WEBGL_debug_renderer_info") != null;
+
+ var query = /query=(.*)/.exec(window.location.href);
+ if (!query)
+ return false;
+ if (query[1] != "enabled" && query[1] != "disabled" &&
+ query[1] != "bypassed")
+ return false;
+ var enabled = query[1] == "enabled";
+ return extension == enabled;
+}
+
+function onLoad() {
+ if (runTest())
+ window.domAutomationController.send("SUCCESS");
+ else
+ window.domAutomationController.send("FAILURE");
+}
+</script>
+</head>
+<body onload="onLoad()">
+<canvas id="canvas1" width="16px" height="16px">
+</canvas>
+</body>
+</html>
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | content/test/gpu/gpu_tests/webgl_debug_renderer_info.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698