Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-toDataURL-jpeg-crash.html
blobcd4c042ad41733f1b69ec0fd3ce0ff4104ca43b0
1 Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=69681">bug 69681</a>,
2 canvas.toDataURL("image/jpeg") should not crash.<br>
3 <p id="log"></p>
4 <canvas id="canvas" width="2000" height="2000"></canvas>
5 <script>
6 var test = document.getElementById('canvas').toDataURL('image/jpeg');
7 // Test passes if we don't crash.
8 document.getElementById('log').innerHTML = 'PASS';
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 </script>