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

Unified Diff: chrome/test/data/gpu/feature_webgl.html

Issue 8510032: Add tests to make sure gpu blacklist actually block gpu features. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/test/data/gpu/feature_compositing.html ('k') | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/gpu/feature_webgl.html
===================================================================
--- chrome/test/data/gpu/feature_webgl.html (revision 0)
+++ chrome/test/data/gpu/feature_webgl.html (revision 0)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>GPU Feature Testing: WebGL</title>
+<script>
+function init() {
+ var canvas = document.createElement("canvas");
+ if (!canvas)
+ return null;
+ var context = null;
+ try {
+ context = canvas.getContext("webgl");
+ } catch(e) {}
+ if (!context) {
+ try {
+ context = canvas.getContext("experimental-webgl");
+ } catch(e) {}
+ }
+ return context;
+}
+
+function runTest() {
+ var gl = init();
+ domAutomationController.setAutomationId(1);
+ domAutomationController.send("FINISHED");
+}
+</script>
+</head>
+<body onload="runTest()">
+WebGL should trigger GPU process launch if it is allowed.
+</body>
+</html>
Property changes on: chrome/test/data/gpu/feature_webgl.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/data/gpu/feature_compositing.html ('k') | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698