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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!-- This is a regression test for crbug.com/537711, in which printing
2 was causing a crash on the main thread of the render process -->
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="console"></div>
8 <script>
9 var can = document.createElement('canvas');
10 can.width = can.height = 17000;
11 document.body.appendChild(can);
12 var ctx = can.getContext("webgl");
13 ctx.clearColor(0, 0, 0, 1);
14 ctx.clear(ctx.COLOR_BUFFER_BIT);
15
16 if (!window.testRunner) {
17 testFailed("Requires window.testRunner");
18 } else {
19 testRunner.setPrinting();
20 testRunner.waitUntilDone();
21 testRunner.capturePixelsAsyncThen(function() {
22 testRunner.clearPrinting();
23 testPassed("Printed without crashing.");
24 testRunner.notifyDone();
25 });
26 }
27 </script>
28 </body>
OLDNEW
« 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