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

Unified Diff: third_party/WebKit/LayoutTests/printing/webgl-oversized-printing.html

Issue 1380633003: Fixed WebGL printing crash due to failed buffer allocation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced canvas size in test to prevent OOM on win7 Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/webgl-oversized-printing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/printing/webgl-oversized-printing.html
diff --git a/third_party/WebKit/LayoutTests/printing/webgl-oversized-printing.html b/third_party/WebKit/LayoutTests/printing/webgl-oversized-printing.html
new file mode 100644
index 0000000000000000000000000000000000000000..b82776fe4d8be6420b13567e6af095b3b8f52217
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/webgl-oversized-printing.html
@@ -0,0 +1,28 @@
+<!-- This is a regression test for crbug.com/537711, in which printing
+ was causing a crash on the main thread of the render process -->
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body>
+<div id="console"></div>
+<script>
+var can = document.createElement('canvas');
+can.width = can.height = 17000;
+document.body.appendChild(can);
+var ctx = can.getContext("webgl");
+ctx.clearColor(0, 0, 0, 1);
+ctx.clear(ctx.COLOR_BUFFER_BIT);
+
+if (!window.testRunner) {
+ testFailed("Requires window.testRunner");
+} else {
+ testRunner.setPrinting();
+ testRunner.waitUntilDone();
+ testRunner.capturePixelsAsyncThen(function() {
+ testRunner.clearPrinting();
+ testPassed("Printed without crashing.");
+ testRunner.notifyDone();
+ });
+}
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/webgl-oversized-printing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698