<!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>[177231] trunk/LayoutTests</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/177231">177231</a></dd>
<dt>Author</dt> <dd>ap@apple.com</dd>
<dt>Date</dt> <dd>2014-12-12 13:01:10 -0800 (Fri, 12 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=139591

Reviewed by Antti Koivisto.

* http/tests/css/resources/empty.css: Added.
* http/tests/css/resources/500.php: Copied from LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php.
* http/tests/css/resources/slow-loading-sheet-in-error.php: Removed.
* http/tests/css/resources/slow-loading-sheet.php: Removed.
These scripts were not &quot;slow&quot; at all - 100 microseconds is nothing. Furthermore,
slow-loading-sheet-in-error.php wasn't even used, because of a typo in the test.
And worst of all, WebCore has its own ideas about when to load stylesheets - notably,
default stylesheet loading blocks script execution, so we cannot do anything before
the stylesheet loads.

* http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html:
* http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html:
Removed built-in timeout for the tests, we don't need it. Also, fixed a number of
small stylistic issues.

* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Removed.
* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Removed.
Moved inside HTML, because having tests in a separate file is useless and harmful.

* platform/mac-wk2/TestExpectations: These tests were always flaky, not 100% failing.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestscsslinkcssdisabledvaluewithslowloadingsheetinerrorhtml">trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html</a></li>
<li><a href="#trunkLayoutTestshttptestscsslinkcssdisabledvaluewithslowloadingsheethtml">trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2TestExpectations">trunk/LayoutTests/platform/mac-wk2/TestExpectations</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestscssresources500php">trunk/LayoutTests/http/tests/css/resources/500.php</a></li>
<li><a href="#trunkLayoutTestshttptestscssresourcesemptycss">trunk/LayoutTests/http/tests/css/resources/empty.css</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestscssresourceslinkcssdisabledvaluewithslowloadingsheetinerrorjs">trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js</a></li>
<li><a href="#trunkLayoutTestshttptestscssresourceslinkcssdisabledvaluewithslowloadingsheetjs">trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js</a></li>
<li><a href="#trunkLayoutTestshttptestscssresourcesslowloadingsheetinerrorphp">trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php</a></li>
<li><a href="#trunkLayoutTestshttptestscssresourcesslowloadingsheetphp">trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/ChangeLog        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,3 +1,31 @@
</span><ins>+2014-12-12  Alexey Proskuryakov  &lt;ap@apple.com&gt;
+
+        http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=139591
+
+        Reviewed by Antti Koivisto.
+
+        * http/tests/css/resources/empty.css: Added.
+        * http/tests/css/resources/500.php: Copied from LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php.
+        * http/tests/css/resources/slow-loading-sheet-in-error.php: Removed.
+        * http/tests/css/resources/slow-loading-sheet.php: Removed.
+        These scripts were not &quot;slow&quot; at all - 100 microseconds is nothing. Furthermore,
+        slow-loading-sheet-in-error.php wasn't even used, because of a typo in the test.
+        And worst of all, WebCore has its own ideas about when to load stylesheets - notably,
+        default stylesheet loading blocks script execution, so we cannot do anything before
+        the stylesheet loads.
+
+        * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html:
+        * http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html:
+        Removed built-in timeout for the tests, we don't need it. Also, fixed a number of
+        small stylistic issues.
+
+        * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Removed.
+        * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Removed.
+        Moved inside HTML, because having tests in a separate file is useless and harmful.
+
+        * platform/mac-wk2/TestExpectations: These tests were always flaky, not 100% failing.
+
</ins><span class="cx"> 2014-12-12  Radu Stavila  &lt;stavila@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         animations/cross-fade-webkit-mask-image.html is flaky
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscsslinkcssdisabledvaluewithslowloadingsheetinerrorhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,14 +1,46 @@
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><del>-&lt;link rel=&quot;stylesheet&quot; href=&quot;resources/slow-loading-sheet.php?color=green&quot; media=&quot;all&quot; title=&quot;Default Style Sheet&quot; type=&quot;text/css&quot; /&gt;
-&lt;link rel=&quot;alternate stylesheet&quot; href=&quot;resources/slow-loading-sheet.php-in-error&quot; media=&quot;all&quot; title=&quot;green&quot; type=&quot;text/css&quot; /&gt;
</del><ins>+&lt;link rel=&quot;stylesheet&quot; href=&quot;resources/empty.css?link-css-disabled-value-with-slow-loading-sheet-in-error&amp;default&quot; media=&quot;all&quot; title=&quot;Default Style Sheet&quot; type=&quot;text/css&quot;&gt;
+&lt;link rel=&quot;alternate stylesheet&quot; href=&quot;resources/500.php&quot; media=&quot;all&quot; title=&quot;green&quot; type=&quot;text/css&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;/js-test-resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
</span><span class="cx"> &lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
</span><del>-&lt;script src=&quot;resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js&quot;&gt;&lt;/script&gt;
</del><ins>+&lt;script&gt;
+description(&quot;Test that HTMLLinkElement's disabled attribute is properly cached while set when loading a stylesheet.&quot;);
+
+window.jsTestIsAsync = true;
+
+mainSheetLink = document.getElementsByTagName(&quot;link&quot;)[0];
+alternateSheetLink = document.getElementsByTagName(&quot;link&quot;)[1];
+
+mainSheetLink.disabled = true;
+alternateSheetLink.disabled = false;
+
+debug(&quot;Testing value of 'disabled' prior to load just after setting them&quot;);
+shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
+shouldBeNull(&quot;alternateSheetLink.sheet&quot;);
+shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
+shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
+
+debug(&quot;Testing the values when the alternate sheet is loaded (as this is the only one that has sheet() === null)&quot;);
+
+var testTimer = setInterval(function() {
+    if (!alternateSheetLink.sheet)
+        return;
+    shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
+    shouldBeNonNull(&quot;alternateSheetLink.sheet&quot;);
+    shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
+    shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
+
+    clearInterval(testTimer);
+    finishJSTest();
+}, 25);
+
+var successfullyParsed = true;
+&lt;/script&gt;
</ins><span class="cx"> &lt;script src=&quot;/js-test-resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscsslinkcssdisabledvaluewithslowloadingsheethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,14 +1,46 @@
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
</del><ins>+&lt;!DOCTYPE html&gt;
</ins><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><del>-&lt;link rel=&quot;stylesheet&quot; href=&quot;resources/slow-loading-sheet.php?color=red&quot; media=&quot;all&quot; title=&quot;Default Style Sheet&quot; type=&quot;text/css&quot; /&gt;
-&lt;link rel=&quot;alternate stylesheet&quot; href=&quot;resources/slow-loading-sheet.php?color=green&quot; media=&quot;all&quot; title=&quot;green&quot; type=&quot;text/css&quot; /&gt;
</del><ins>+&lt;link rel=&quot;stylesheet&quot; href=&quot;resources/empty.css?link-css-disabled-value-with-slow-loading-sheet&amp;default&quot; media=&quot;all&quot; title=&quot;Default Style Sheet&quot; type=&quot;text/css&quot;&gt;
+&lt;link rel=&quot;alternate stylesheet&quot; href=&quot;resources/empty.css?link-css-disabled-value-with-slow-loading-sheet&amp;alternate&quot; media=&quot;all&quot; title=&quot;green&quot; type=&quot;text/css&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;/js-test-resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
</span><span class="cx"> &lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
</span><del>-&lt;script src=&quot;resources/link-css-disabled-value-with-slow-loading-sheet.js&quot;&gt;&lt;/script&gt;
</del><ins>+&lt;script&gt;
+description(&quot;Test that HTMLLinkElement's disabled attribute is properly cached while set when loading a stylesheet.&quot;);
+
+window.jsTestIsAsync = true;
+
+mainSheetLink = document.getElementsByTagName(&quot;link&quot;)[0];
+alternateSheetLink = document.getElementsByTagName(&quot;link&quot;)[1];
+
+mainSheetLink.disabled = true;
+alternateSheetLink.disabled = false;
+
+debug(&quot;Testing value of 'disabled' prior to load just after setting them&quot;);
+shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
+shouldBeNull(&quot;alternateSheetLink.sheet&quot;);
+shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
+shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
+
+debug(&quot;Testing the values when the alternate sheet is loaded (as this is the only one that has sheet() === null)&quot;);
+
+var testTimer = setInterval(function() {
+    if (!alternateSheetLink.sheet)
+        return;
+    shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
+    shouldBeNonNull(&quot;alternateSheetLink.sheet&quot;);
+    shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
+    shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
+
+    clearInterval(testTimer);
+    finishJSTest();
+}, 25);
+
+var successfullyParsed = true;
+&lt;/script&gt;
</ins><span class="cx"> &lt;script src=&quot;/js-test-resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscssresources500phpfromrev177168trunkLayoutTestshttptestscssresourcesslowloadingsheetinerrorphp"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/css/resources/500.php (from rev 177168, trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php) (0 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/resources/500.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/css/resources/500.php        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+&lt;?php
+// We sleep here so that we are have enough time to test the different attributes before the stylesheet is fully loaded.
+usleep(100);
+
+header(&quot;HTTP/1.0 500 Internal Error&quot;);
+header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
+header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+header(&quot;Content-Type: text/css&quot;);
+
+ob_flush();
+flush();
+?&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestscssresourcesemptycss"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/css/resources/empty.css ( => )</h4>
<pre class="diff"><span>
<span class="info">Deleted: trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js
===================================================================
</span><del>--- trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js        2014-12-12 20:54:07 UTC (rev 177230)
</del><ins>+++ trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js        2014-12-12 21:01:10 UTC (rev 177231)
</ins><span class="lines">@@ -1,45 +0,0 @@
</span><del>-description(&quot;Test that HTMLLinkElement's disabled attribute is properly cached while set when loading a stylesheet.&quot;);
-
-if (window.testRunner)
-    testRunner.waitUntilDone();
-
-window.jsTestIsAsync = true;
-
-mainSheetLink = document.getElementsByTagName(&quot;link&quot;)[0];
-alternateSheetLink = document.getElementsByTagName(&quot;link&quot;)[1];
-
-mainSheetLink.disabled = true;
-alternateSheetLink.disabled = false;
-
-debug(&quot;Testing value of 'disabled' prior to load just after setting them&quot;);
-shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
-shouldBeNull(&quot;alternateSheetLink.sheet&quot;);
-shouldBeTrue(&quot;mainSheetLink.disabled&quot;, true);
-shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
-
-debug(&quot;Testing the values when the alternate sheet is loaded (as this is the only one that has sheet() === null)&quot;);
-
-function onSheetLoaded(f, elem, maxtime) {
-    if (elem.sheet || maxtime &lt;= 0)
-        f();
-    else
-        setTimeout(function () { onSheetLoaded(f, elem, maxtime - 25);}, 25);
-}
-
-function testWhenLoaded() {
-        // Those next 2 lines are a sanity check.
-        // If the second check fails, it is likely that the test timed out and thus
-        // you can discard the rest of results as it is not testing what we want
-        // (namely that the disabled value is passed to the final sheet).
-        shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
-        shouldBeNonNull(&quot;alternateSheetLink.sheet&quot;);
-
-        shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
-        shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
-
-        finishJSTest();
-}
-
-onSheetLoaded(testWhenLoaded, alternateSheetLink, 500);
-
-var successfullyParsed = true;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestscssresourceslinkcssdisabledvaluewithslowloadingsheetjs"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,45 +0,0 @@
</span><del>-description(&quot;Test that HTMLLinkElement's disabled attribute is properly cached while set when loading a stylesheet.&quot;);
-
-if (window.testRunner)
-    testRunner.waitUntilDone();
-
-window.jsTestIsAsync = true;
-
-mainSheetLink = document.getElementsByTagName(&quot;link&quot;)[0];
-alternateSheetLink = document.getElementsByTagName(&quot;link&quot;)[1];
-
-mainSheetLink.disabled = true;
-alternateSheetLink.disabled = false;
-
-debug(&quot;Testing value of 'disabled' prior to load just after setting them&quot;);
-shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
-shouldBeNull(&quot;alternateSheetLink.sheet&quot;);
-shouldBeTrue(&quot;mainSheetLink.disabled&quot;, true);
-shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
-
-debug(&quot;Testing the values when the alternate sheet is loaded (as this is the only one that has sheet() === null)&quot;);
-
-function onSheetLoaded(f, elem, maxtime) {
-    if (elem.sheet || maxtime &lt;= 0)
-        f();
-    else
-        setTimeout(function () { onSheetLoaded(f, elem, maxtime - 25);}, 25);
-}
-
-function testWhenLoaded() {
-        // Those next 2 lines are a sanity check.
-        // If the second check fails, it is likely that the test timed out and thus
-        // you can discard the rest of results as it is not testing what we want
-        // (namely that the disabled value is passed to the final sheet).
-        shouldBeNonNull(&quot;mainSheetLink.sheet&quot;);
-        shouldBeNonNull(&quot;alternateSheetLink.sheet&quot;);
-
-        shouldBeTrue(&quot;mainSheetLink.disabled&quot;);
-        shouldBeFalse(&quot;alternateSheetLink.disabled&quot;);
-
-        finishJSTest();
-}
-
-onSheetLoaded(testWhenLoaded, alternateSheetLink, 500);
-
-var successfullyParsed = true;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestscssresourcesslowloadingsheetinerrorphp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet-in-error.php        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,13 +0,0 @@
</span><del>-&lt;?php
-// We sleep here so that we are have enough time to test the different attributes before the stylesheet is fully loaded.
-usleep(100);
-
-header(&quot;HTTP/1.0 500 Internal Error&quot;);
-header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
-header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
-header(&quot;Pragma: no-cache&quot;);
-header(&quot;Content-Type: text/css&quot;);
-
-ob_flush();
-flush();
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestscssresourcesslowloadingsheetphp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet.php (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet.php        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/http/tests/css/resources/slow-loading-sheet.php        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -1,15 +0,0 @@
</span><del>-&lt;?php
-// We sleep here so that we are have enough time to test the different attributes before the stylesheet is fully loaded.
-usleep(100);
-
-header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
-header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
-header(&quot;Pragma: no-cache&quot;);
-header(&quot;Content-Type: text/css&quot;);
-
-$color = $_GET['color'];
-
-echo &quot;h1 { background-color: $color }\n&quot;;
-ob_flush();
-flush();
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (177230 => 177231)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/TestExpectations        2014-12-12 20:54:07 UTC (rev 177230)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations        2014-12-12 21:01:10 UTC (rev 177231)
</span><span class="lines">@@ -564,8 +564,8 @@
</span><span class="cx"> webkit.org/b/138688 [ Mavericks+ ] http/tests/navigation/ping-cookie.html [ Skip ]
</span><span class="cx"> 
</span><span class="cx"> # There is no network load scheduling or prioritization with NetworkProcess.
</span><del>-webkit.org/b/123431 [ Mavericks+ ] http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html [ Failure ]
-webkit.org/b/123431 [ Mavericks+ ] http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html [ Failure ]
</del><ins>+webkit.org/b/123431 [ Mavericks+ ] http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html [ Pass Failure ]
+webkit.org/b/123431 [ Mavericks+ ] http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html [ Pass Failure ]
</ins><span class="cx"> webkit.org/b/123431 [ Mavericks+ ] http/tests/local/link-stylesheet-load-order-preload.html [ Failure ]
</span><span class="cx"> webkit.org/b/123431 [ Mavericks+ ] http/tests/local/link-stylesheet-load-order.html [ Failure ]
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>