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> |