<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[182769] trunk/LayoutTests/imported/w3c</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/182769">182769</a></dd>
<dt>Author</dt> <dd>ap@apple.com</dd>
<dt>Date</dt> <dd>2015-04-13 17:07:35 -0700 (Mon, 13 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>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.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3ccanvas2dtextmeasurewidthemptyexpectedtxt">trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3ccanvas2dtextmeasurewidthemptyhtml">trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty.html</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/imported/w3c/fonts/</li>
<li><a href="#trunkLayoutTestsimportedw3cfontsCanvasTestttf">trunk/LayoutTests/imported/w3c/fonts/CanvasTest.ttf</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (182768 => 182769)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2015-04-13  Alexey Proskuryakov  &lt;ap@apple.com&gt;
+
+        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.
+
</ins><span class="cx"> 2015-04-06  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         W3C test importer should generate the modules installed dynamically to run wpt tests
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3ccanvas2dtextmeasurewidthemptyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty-expected.txt (182768 => 182769)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,5 +1,6 @@
</span><span class="cx"> 2d.text.measure.width.empty
</span><span class="cx"> The empty string has zero width
</span><del>-Spec references: 2d.text.measure
</del><span class="cx"> Actual output:
</span><span class="cx"> 
</span><ins>+PASS The empty string has zero width 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3ccanvas2dtextmeasurewidthemptyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/canvas/2d.text.measure.width.empty.html (182768 => 182769)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;title&gt;Canvas test: 2d.text.measure.width.empty&lt;/title&gt;
</span><del>-&lt;meta name=&quot;author&quot; content=&quot;Philip Taylor&quot;&gt;
</del><ins>+&lt;script src=&quot;../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> &lt;script src=&quot;../common/canvas-tests.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;link rel=&quot;stylesheet&quot; href=&quot;../common/canvas-tests.css&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="lines">@@ -11,14 +12,9 @@
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;body class=&quot;show_output&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;h1&gt;&lt;a href=&quot;index.2d.html&quot;&gt;2d&lt;/a&gt;.&lt;a href=&quot;index.2d.text.html&quot;&gt;text&lt;/a&gt;.&lt;a href=&quot;index.2d.text.measure.html&quot;&gt;measure&lt;/a&gt;.&lt;a href=&quot;index.2d.text.measure.width.html&quot;&gt;width&lt;/a&gt;.empty&lt;/h1&gt;
</del><ins>+&lt;h1&gt;2d.text.measure.width.empty&lt;/h1&gt;
</ins><span class="cx"> &lt;p class=&quot;desc&quot;&gt;The empty string has zero width&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;refs&quot;&gt;Spec references:
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;../annotated-spec/canvas.html#testrefs.2d.text.measure&quot;&gt;2d.text.measure&lt;/a&gt;
-&lt;/ul&gt;
-&lt;/div&gt;
</del><span class="cx"> 
</span><span class="cx"> &lt;span style=&quot;font-family: CanvasTest; position: absolute; visibility: hidden&quot;&gt;A&lt;/span&gt;
</span><span class="cx"> &lt;p class=&quot;output&quot;&gt;Actual output:&lt;/p&gt;
</span><span class="lines">@@ -26,10 +22,11 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;ul id=&quot;d&quot;&gt;&lt;/ul&gt;
</span><span class="cx"> &lt;script&gt;
</span><ins>+var t = async_test(&quot;The empty string has zero width&quot;);
</ins><span class="cx"> _addTest(function(canvas, ctx) {
</span><span class="cx"> 
</span><span class="cx"> deferTest();
</span><del>-setTimeout(wrapFunction(function () {
</del><ins>+setTimeout(t.step_func_done(function () {
</ins><span class="cx">     ctx.font = '50px CanvasTest';
</span><span class="cx">     _assertSame(ctx.measureText(&quot;&quot;).width, 0, &quot;ctx.measureText(\&quot;\&quot;).width&quot;, &quot;0&quot;);
</span><span class="cx"> }), 500);
</span><span class="lines">@@ -37,4 +34,3 @@
</span><span class="cx"> 
</span><span class="cx"> });
</span><span class="cx"> &lt;/script&gt;
</span><del>-
</del></span></pre></div>
<a id="trunkLayoutTestsimportedw3cfontsCanvasTestttf"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/fonts/CanvasTest.ttf (0 => 182769)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+\x80`BASE\xFA42        |HFFTMUŠ\xC8        \xC4OS/2Yf/hVcmaptK\xE4\cvt &quot;\x88@gasp\xFF\xFF        tglyf@-FJ`\x80head\xF0\xBEB\xEC6hhea        p\xFE\xB4$$hmtx 8\xFC\x8B\xC0&quot;loca\xBE\x88DmaxpRMH name\xFEK\x96\xC5\xE00post$        d\xF0Vu_&lt;\xF5 Ǯ\xFE\xB8Ǯ\xFE\xB8\xFC\xFC\xDB,\xD1\xD1\xFC\xDB\\xFC\xFD\xD4,+@.\xF4\x99\xCC\x8F\x99\xCC\xEB3                PfEd@        E\xFF\\xD1%&quot;\xFCV:+ E\xFF\xFF         A\xFF\xFF\xFF\xE7\xFF\xC7        
+ &quot;\x88**D^x\x92\xAC\xAC\xBA\xC6\xFC2@&quot;2\xAA.\xB1/&lt;\xB2\xED2\xB1\xDC&lt;\xB2\xED2\xB1/&lt;\xB2\xED2\xB2\xFC&lt;\xB2\xED23!'3#&quot;\xEE\xCC\xCC\xAA\xFDV&quot;f\xCF\xED 77''7F\x8FU\x80\x8AP\x89vKo\x84_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xCF\xED 77''7F\x8FU\x80\x8AP\x89vKo\x84_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xCF\xED 77''7F\x8FU\x80\x8AP\x89vKo\x84_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xCF\xED 77''7F\x8FU\x80\x8AP\x89vKo\x84_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xCF\xED 77''7F\x8FU\x80\x8AP\x89vKo\x84_\x8D\x97U\x95\x88_\x8A\x8AZ\x84!!\xFC\xFD\xFF1!!\xFC\xFF\xFC\xDB\xD1 77
 ''7!!''7'7F\x8FU\x80\x8AP\x89vKo\xFE`\xFClU\x80\x8AP\x89vKo\x88F\x8Fh_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xFD&quot;\xFCTU\x95\x88_\x8A\x8AZ\x84\x8A_\x8D\xFC\xFF, 77''7!!''7'7\xFCF\x8FU\x80\x8AP\x89vKoc\xFC\xCDU\x80\x8AP\x89vKo\x88F\x8F\xC2_\x8D\x97U\x95\x88_\x8A\x8AZ\x84\xC8\xFCOU\x95\x88_\x8A\x8AZ\x84\x8A_\x8D\xFF!!\xFC\xFC\xAEu\xEC
+x\x91&amp;\xE6
+#P
+w        \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+$%&amp;'(uni000Duni0009uni000Auni000Buni000C\xFF\xFFhangideomathromnDFLT \x80\x80\xC6e\xB7\xCAǭ\xD4RǮ\xFE\xAB
</ins><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>