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 b c</span></div> |
- <div><canvas></canvas></div> |
- <script> |
+<div><span>a b 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> |