| Index: third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html b/third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html
|
| index 9b3042944fd0183795fd41919cff393a6c606822..d191d4e0aa826cf6c7ca3adf2701405d618f4f3e 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html
|
| @@ -1,10 +1,9 @@
|
| -<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| -<html>
|
| -<head>
|
| -<script src="../../resources/js-test.js"></script>
|
| -</head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +
|
| <script>
|
| - description("This test checks behavior of drawImage on a canvas that failed to allocate its backing store. This test passes by not crashing.");
|
| +test(function(){
|
| +
|
| var canvas1 = document.createElement("canvas");
|
| var ctx1 = canvas1.getContext('2d');
|
| var canvas2 = document.createElement("canvas");
|
| @@ -13,6 +12,6 @@
|
| canvas2.height = 1000000;
|
| var ctx2 = canvas2.getContext('2d');
|
| ctx2.drawImage(canvas1, 0, 0);
|
| +
|
| +}, "This test checks behavior of drawImage on a canvas that failed to allocate its backing store. This test passes by not crashing.");
|
| </script>
|
| -</body>
|
| -</html>
|
|
|