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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-text-ideographic-space.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-ideographic-space.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-ideographic-space.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-ideographic-space.html
index 5982e026674f8fd20a8b02f81502156ab1a66992..c82dbbed4209610ec24ffe2422cb84990bafe285 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-ideographic-space.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-text-ideographic-space.html
@@ -1,24 +1,20 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charcode="utf-16">
- <script src="../../resources/js-test.js"></script>
- <style>
-
+<meta charcode="utf-16">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
span {
padding : 0px;
font-size : 12px;
font-family : Arial;
display : inline;
}
-
- </style>
-</head>
+</style>
<body>
- <div><span>a&#x3000;b&#x3000;c</span></div>
- <div><canvas></canvas></div>
- <script>
+<div><span>a&#x3000;b&#x3000;c</span></div>
+<div><canvas></canvas></div>
+<script>
+test(function(t) {
var canvas = document.querySelector("canvas");
var context = canvas.getContext("2d");
var span = document.querySelector("span");
@@ -29,8 +25,7 @@
spanWidth = span.offsetWidth;
canvasWidth = context.measureText(abc).width;
- shouldBeTrue("spanWidth == canvasWidth");
-
- </script>
+ assert_true(spanWidth == canvasWidth);
+}, 'Test canvas text ideographic space.');
+</script>
</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698