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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html

Issue 2694703004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: 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/canvas-measureText.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html
index 4ead2e809299713296a586438d6dded15d38d447..b6139310d387f11a62a1f8215bacbf3ffdf4a27b 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html
@@ -1,21 +1,15 @@
-<!DOCTYPE html>
-<html>
-<body>
-<p>Regression test for bug <a href="http://webkit.org/b/106244">106244</a></p>
-<p>Test passes by not crashing.</p>
-<canvas id="test"></canvas>
-</body>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
+test(function(t) {
-var canvas = document.getElementById("test");
-var context = canvas.getContext("2d");
-for (x = 0; x < 100; x++) {
- context.restore();
- context.save();
- context.save();
- context.measureText("a", 0, 0, 0);
-}
+ var canvas = document.createElement('canvas');
+ var context = canvas.getContext("2d");
+ for (x = 0; x < 100; x++) {
+ context.restore();
+ context.save();
+ context.save();
+ context.measureText("a", 0, 0, 0);
+ }
+}, 'Regression test for bug http://webkit.org/b/106244. Test passes by not crashing.');
</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698