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

Unified Diff: ManualTests/webgl-save-image-as.html

Issue 309933004: Fix imageSourceURL() for WebGL elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | Source/core/html/HTMLCanvasElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ManualTests/webgl-save-image-as.html
diff --git a/ManualTests/webgl-save-image-as.html b/ManualTests/webgl-save-image-as.html
new file mode 100644
index 0000000000000000000000000000000000000000..30040a78efdf887dedaf013fa8afb4e18653e0ae
--- /dev/null
+++ b/ManualTests/webgl-save-image-as.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html>
+<script>
+var gl;
+function runTest() {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ gl = document.getElementById('canvas').getContext("webgl");
+ if (!gl) {
+ alert("No WebGL context found");
+ return;
+ }
+
+ gl.enable(gl.SCISSOR_TEST);
+ gl.clearColor(1, 0, 0, 1);
+ gl.clear(gl.COLOR_BUFFER_BIT);
+}
+
+</script>
+<body onload='runTest()'>
+ Right click red square and save image. A red square image should be saved. <br>
+ <canvas id='canvas' width="100" height="100"></canvas>
+</body>
+</html>
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698