| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-oom.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-oom.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-oom.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2dbf68b48ccf0a946aea3ba3104654572f50ffb5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toDataURL-oom.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| +}
|
| +var canvas = document.createElement('canvas');
|
| +canvas.width = 100;
|
| +canvas.height = 100;
|
| +var ctx = canvas.getContext('2d');
|
| +if (!window.internals) {
|
| + testFailed('Test requires the internals interface.');
|
| +} else {
|
| + var url;
|
| + internals.fakeOutOfMemoryForNextArrayBufferAllocation();
|
| + shouldThrow('url = ctx.toDataURL("image/png")');
|
| + shouldNotThrow('url = ctx.toDataURL("image/png")');
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|