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

Unified Diff: content/test/data/gpu/functional_files/context.js

Issue 2611263002: Port gpu_process tests to gpu_integration_test harness. (Closed)
Patch Set: Added workaround for flakiness on Android. Created 3 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
« no previous file with comments | « content/test/data/gpu/functional_canvas_demo.html ('k') | content/test/gpu/generate_buildbot_json.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/functional_files/context.js
diff --git a/content/test/data/gpu/functional_files/context.js b/content/test/data/gpu/functional_files/context.js
index af56f6faeaa3734e1f1e541eabcd69cf80998263..90ba3369fa9ee304c811cc3f156ab1d550a03b97 100644
--- a/content/test/data/gpu/functional_files/context.js
+++ b/content/test/data/gpu/functional_files/context.js
@@ -10,9 +10,14 @@ initializeWebGL = function(canvas) {
// Try to grab the standard context.
gl_context = canvas.getContext("webgl") ||
canvas.getContext("experimental-webgl");
- // If we don't have a GL context, give up now
+ // If we don't have a GL context, give up now.
if (!gl_context) {
- alert("Unable to initialize WebGL. Your browser may not support it.");
+ err = "Unable to initialize WebGL. Your browser may not support it.";
+ if (domAutomationController) {
+ console.log(err);
+ } else {
+ alert(err);
+ }
}
}
@@ -30,4 +35,7 @@ startWebGLContext = function() {
gl_context.clear(gl_context.COLOR_BUFFER_BIT |
gl_context.DEPTH_BUFFER_BIT);
}
-}
+
+ domAutomationController.setAutomationId(0);
+ domAutomationController.send("FINISHED");
+}
« no previous file with comments | « content/test/data/gpu/functional_canvas_demo.html ('k') | content/test/gpu/generate_buildbot_json.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698