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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/drawImage-with-bad-canvas.html

Issue 2700823002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698