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

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

Issue 11824045: Get GpuCrashTest running in content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/browser/gpu/gpu_crash_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/webgl.html
===================================================================
--- content/test/data/gpu/webgl.html (revision 175856)
+++ content/test/data/gpu/webgl.html (working copy)
@@ -34,6 +34,7 @@
if (extension) {
setTimeout(function() {
extension.restoreContext();
+ extension = null;
}, 0);
}
}
@@ -85,31 +86,21 @@
canvas = document.getElementById("canvas1");
w = canvas.width;
h = canvas.height;
- if (!canvas) {
- document.title = "FAILED: canvas element not found";
+ if (!canvas)
return;
- }
canvas.addEventListener("webglcontextlost", testContextLost, false);
canvas.addEventListener("webglcontextrestored", testContextRestored, false);
gl = canvas.getContext("experimental-webgl");
- if (!gl) {
- document.title = "FAILED: could not get webgl context for canvas";
+ if (!gl)
return;
- }
- if (!testHorizontalBands()) {
- document.title = "FAILED: did not render correctly";
+ if (!testHorizontalBands())
return;
- }
var query = /query=(.*)/.exec(window.location.href);
- if (query) {
+ if (query)
contextLostTest(query[1]);
- } else {
- var renderer = gl.getParameter(gl.RENDERER);
- document.title = "SUCCESS: " + renderer;
- }
}
</script>
</head>
« no previous file with comments | « content/browser/gpu/gpu_crash_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698