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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html

Issue 2671853004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html b/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
index 3796142dc60b8122fb629ec208ac732d970e34b1..9e7a48810386ce831ffbc1b37be64fa1192bed95 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
@@ -1,10 +1,16 @@
-This test ensures that accessing the context of a zero sized canvas does not crash.
-<canvas id="canvas" width="0" height="0"></canvas><br />
+<html>
+<head>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+</head>
+<canvas id="canvas" width="0" height="0"></canvas>
+<body>
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-var context = document.getElementById("canvas").getContext("2d");
-context.fillStyle = "green";
-
+test(function(t) {
+ var context = document.getElementById("canvas").getContext("2d");
+ context.fillStyle = "green";
+}, 'This test ensures that accessing the context of a zero sized canvas does not crash.');
</script>
+</body>
+</html>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698