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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-text-space-characters.html

Issue 2695963004: 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-text-space-characters.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-space-characters.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-space-characters.html
index b42f32855a513fbc311f6ea363e8962382f255c6..f2936d8ac657ca1877b216b60559d6219dfc10a3 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-space-characters.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-space-characters.html
@@ -1,16 +1,10 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charcode="utf-16">
- <script src="../../resources/js-test.js"></script>
-</head>
+<meta charcode="utf-16">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<canvas></canvas
<body>
- <canvas></canvas>
- <script>
-
- if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-
+<script>
+test(function(t) {
var canvas = document.querySelector("canvas");
var context = canvas.getContext("2d");
@@ -24,8 +18,7 @@
testStr1Width = context.measureText(testStr1).width;
testStr2Width = context.measureText(testStr2).width;
- shouldBeTrue("testStr1Width == testStr2Width");
-
- </script>
+ assert_true(testStr1Width == testStr2Width);
+}, 'Test canvas text characters space.');
+</script>
</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698