Title: [182769] trunk/LayoutTests/imported/w3c
Revision
182769
Author
[email protected]
Date
2015-04-13 17:07:35 -0700 (Mon, 13 Apr 2015)

Log Message

imported/w3c/canvas/2d.text.measure.width.empty.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=143671

Reviewed by Tim Horton.

* canvas/2d.text.measure.width.empty.html:
* canvas/2d.text.measure.width.empty-expected.txt:
Updated the test to trunk, where it uses testharness, which knows about waitUntilDone.

* fonts: Added.
* fonts/CanvasTest.ttf: Added.
While at it, added a font that this test includes (probably for no good reason).
This avoids hitting a sandbox violation.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (182768 => 182769)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2015-04-14 00:05:17 UTC (rev 182768)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2015-04-14 00:07:35 UTC (rev 182769)
@@ -1,3 +1,19 @@
+2015-04-13  Alexey Proskuryakov  <[email protected]>
+
+        imported/w3c/canvas/2d.text.measure.width.empty.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=143671
+
+        Reviewed by Tim Horton.
+
+        * canvas/2d.text.measure.width.empty.html:
+        * canvas/2d.text.measure.width.empty-expected.txt:
+        Updated the test to trunk, where it uses testharness, which knows about waitUntilDone.
+
+        * fonts: Added.
+        * fonts/CanvasTest.ttf: Added.
+        While at it, added a font that this test includes (probably for no good reason).
+        This avoids hitting a sandbox violation.
+
 2015-04-06  Youenn Fablet  <[email protected]>
 
         W3C test importer should generate the modules installed dynamically to run wpt tests

Modified: trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty-expected.txt (182768 => 182769)


--- trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty-expected.txt	2015-04-14 00:05:17 UTC (rev 182768)
+++ trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty-expected.txt	2015-04-14 00:07:35 UTC (rev 182769)
@@ -1,5 +1,6 @@
 2d.text.measure.width.empty
 The empty string has zero width
-Spec references: 2d.text.measure
 Actual output:
 
+PASS The empty string has zero width 
+

Modified: trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty.html (182768 => 182769)


--- trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty.html	2015-04-14 00:05:17 UTC (rev 182768)
+++ trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty.html	2015-04-14 00:07:35 UTC (rev 182769)
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <title>Canvas test: 2d.text.measure.width.empty</title>
-<meta name="author" content="Philip Taylor">
+<script src=""
+<script src=""
 <script src=""
 <link rel="stylesheet" href=""
 <style>
@@ -11,14 +12,9 @@
 </style>
 <body class="show_output">
 
-<h1><a href="" href="" href="" href=""
+<h1>2d.text.measure.width.empty</h1>
 <p class="desc">The empty string has zero width</p>
 
-<div class="refs">Spec references:
-<ul>
-<li><a href=""
-</ul>
-</div>
 
 <span style="font-family: CanvasTest; position: absolute; visibility: hidden">A</span>
 <p class="output">Actual output:</p>
@@ -26,10 +22,11 @@
 
 <ul id="d"></ul>
 <script>
+var t = async_test("The empty string has zero width");
 _addTest(function(canvas, ctx) {
 
 deferTest();
-setTimeout(wrapFunction(function () {
+setTimeout(t.step_func_done(function () {
     ctx.font = '50px CanvasTest';
     _assertSame(ctx.measureText("").width, 0, "ctx.measureText(\"\").width", "0");
 }), 500);
@@ -37,4 +34,3 @@
 
 });
 </script>
-

Added: trunk/LayoutTests/imported/w3c/fonts/CanvasTest.ttf (0 => 182769)


--- trunk/LayoutTests/imported/w3c/fonts/CanvasTest.ttf	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/fonts/CanvasTest.ttf	2015-04-14 00:07:35 UTC (rev 182769)
@@ -0,0 +1,13 @@
+\x80`BASE\xFA42	|HFFTMUŠ\xC8	\xC4OS/2Yf/hVcmaptK\xE4\cvt "\x88@gasp\xFF\xFF	tglyf@-FJ`\x80head\xF0\xBEB\xEC6hhea	p\xFE\xB4$$hmtx8\xFC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\xEA	b	\x83	L\x98	+	 .	aCopyright (c) 2010 Philip Taylor.
+
+Released under the MIT License: http://www.opensource.org/licenses/mit-license.phpCopyright (c) 2010 Philip Taylor.
+
+Released under the MIT License: http://www.opensource.org/licenses/mit-license.phpCanvasTestCanvasTestMediumMediumFontForge 2.0 : CanvasTest : 27-2-2010FontForge 2.0 : CanvasTest : 27-2-2010CanvasTestCanvasTestVersion 001.000 Version 001.000 CanvasTestCanvasTest\xFF\x813+$%&'(uni000Duni0009uni000Auni000Buni000C\xFF\xFFhangideomathromnDFLT\x80\x80\xC6e\xB7\xCAǭ\xD4RǮ\xFE\xAB
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to