Title: [247271] trunk/LayoutTests
Revision
247271
Author
[email protected]
Date
2019-07-09 12:38:54 -0700 (Tue, 09 Jul 2019)

Log Message

Remove rel=subresource tests
https://bugs.webkit.org/show_bug.cgi?id=199616

Patch by Rob Buis <[email protected]> on 2019-07-09
Reviewed by Ryosuke Niwa.

Remove rel=subresource references by deleting or using rel=prefetch
instead.

* TestExpectations:
* fast/dom/HTMLLinkElement/cachedresource-types.html:
* http/tests/misc/link-rel-prefetch-and-subresource.html: Removed.
* webarchive/test-link-rel-subresource-beforeload-expected.webarchive: Removed.
* webarchive/test-link-rel-subresource-beforeload.html: Removed.

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (247270 => 247271)


--- trunk/LayoutTests/ChangeLog	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/ChangeLog	2019-07-09 19:38:54 UTC (rev 247271)
@@ -1,3 +1,19 @@
+2019-07-09  Rob Buis  <[email protected]>
+
+        Remove rel=subresource tests
+        https://bugs.webkit.org/show_bug.cgi?id=199616
+
+        Reviewed by Ryosuke Niwa.
+
+        Remove rel=subresource references by deleting or using rel=prefetch
+        instead.
+
+        * TestExpectations:
+        * fast/dom/HTMLLinkElement/cachedresource-types.html:
+        * http/tests/misc/link-rel-prefetch-and-subresource.html: Removed.
+        * webarchive/test-link-rel-subresource-beforeload-expected.webarchive: Removed.
+        * webarchive/test-link-rel-subresource-beforeload.html: Removed.
+
 2019-07-09  Antoine Quint  <[email protected]>
 
         [Pointer Events] Scroll indicators should not show for scrollable content with touch-action: none

Modified: trunk/LayoutTests/TestExpectations (247270 => 247271)


--- trunk/LayoutTests/TestExpectations	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/TestExpectations	2019-07-09 19:38:54 UTC (rev 247271)
@@ -2339,7 +2339,6 @@
 webkit.org/b/3652 fast/dom/HTMLLinkElement/prefetch-onload.html [ Skip ]
 webkit.org/b/3652 fast/dom/HTMLLinkElement/prefetch-too-many-clients.html [ Skip ]
 webkit.org/b/3652 fast/dom/HTMLLinkElement/subresource.html [ Skip ]
-webkit.org/b/3652 http/tests/misc/link-rel-prefetch-and-subresource.html [ Skip ]
 webkit.org/b/3652 http/tests/misc/prefetch-purpose.html [ Skip ]
 
 # First-party-only cookie policy only supported on Cocoa platforms.

Modified: trunk/LayoutTests/fast/dom/HTMLLinkElement/cachedresource-types.html (247270 => 247271)


--- trunk/LayoutTests/fast/dom/HTMLLinkElement/cachedresource-types.html	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/fast/dom/HTMLLinkElement/cachedresource-types.html	2019-07-09 19:38:54 UTC (rev 247271)
@@ -3,7 +3,7 @@
     testRunner.dumpAsText();
 
 </script>
-<link rel="subresource" href=""
+<link rel="prefetch" href=""
 <img src=""
 
 This test passes if it does not crash.

Deleted: trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html (247270 => 247271)


--- trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html	2019-07-09 19:38:54 UTC (rev 247271)
@@ -1,73 +0,0 @@
-<html>
-<head>
-  <script>
-function CallCommand(cmd)
-{
- try {
-     var req = new XMLHttpRequest;
-     req.open("GET", "/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&command=" + cmd, false);
-     req.send(null);
-     return req.responseText;
- } catch (ex) {
-     return "";
- }
-}
-
-function startTest()
-{
-    if (window.testRunner) {
-        testRunner.dumpAsText();
-        testRunner.waitUntilDone();
-    }
-}
-
-function endTest()
-{
-    getResourceLog();
-    CallCommand("clear-resource-request-log");
-
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function getResourceLog()
-{
-    var log = CallCommand("get-resource-request-log");
-    var logLines = log.split('\n');
-    logLines.sort();
-    document.getElementById('result').innerText = logLines.join('\n');
-}
-
-CallCommand("start-resource-request-log");
-window.addEventListener('load', startTest, false);
-  </script>
-
-  <!-- link rel=subresource is very similar to link rel=prefetch, however it is
-       expected to have a higher network priority.  This test should confirm that the
-       priorities of the two types of prefetch are being observed -->
-
-  <script>
-  var linkLoadCount = 5;
-
-  function decrementLinkLoadCount()
-  {
-      linkLoadCount--;
-      if (linkLoadCount == 0) {
-          endTest();
-      }
-  }
-  </script>
-  <link rel=prefetch _onload_="decrementLinkLoadCount()" href=""
-  <link rel=subresource _onload_="decrementLinkLoadCount()" href=""
-  <link rel=prefetch _onload_="decrementLinkLoadCount()" href=""
-  <link rel=prefetch _onload_="decrementLinkLoadCount()" href=""
-  <link rel=subresource _onload_="decrementLinkLoadCount()" href=""
-</head>
-<body>
-
-  <div class="box bordered"></div>
-
-  <h2>Resource requests:</h2>
-  <pre id="result">Request log goes here in DRT</pre>
-</body>
-</html>

Deleted: trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload-expected.webarchive (247270 => 247271)


--- trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload-expected.webarchive	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload-expected.webarchive	2019-07-09 19:38:54 UTC (rev 247271)
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>WebMainResource</key>
-	<dict>
-		<key>WebResourceData</key>
-		<string>&lt;html&gt;&lt;head&gt;
-&lt;script&gt;
-function runTest()
-{
-    if (window.testRunner) {
-        testRunner.dumpDOMAsWebArchive();
-        testRunner.queueReload();
-    }
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body _onload_="runTest()"&gt;
-&lt;div id="console"&gt;&lt;div style="font-family: monospace; color: green;"&gt;PASS&lt;/div&gt;&lt;/div&gt;
-&lt;script&gt;
-function print(message, color) 
-{
-    var paragraph = document.createElement("div");
-    paragraph.appendChild(document.createTextNode(message));
-    paragraph.style.fontFamily = "monospace";
-    if (color)
-        paragraph.style.color = color;
-    document.getElementById("console").appendChild(paragraph);
-}
-&lt;/script&gt;
-&lt;p&gt;This test should have a green 'PASS' just above this line.  If it doesn't, you failed.
-&lt;link rel="subresource" _onbeforeload_="print('PASS','green');return false" href="" type="image/x-icon"&gt;
-
-
-&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-		<key>WebResourceFrameName</key>
-		<string></string>
-		<key>WebResourceMIMEType</key>
-		<string>text/html</string>
-		<key>WebResourceTextEncodingName</key>
-		<string>UTF-8</string>
-		<key>WebResourceURL</key>
-		<string>file:///LayoutTests/webarchive/test-link-rel-subresource-beforeload.html</string>
-	</dict>
-</dict>
-</plist>

Deleted: trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload.html (247270 => 247271)


--- trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload.html	2019-07-09 19:25:57 UTC (rev 247270)
+++ trunk/LayoutTests/webarchive/test-link-rel-subresource-beforeload.html	2019-07-09 19:38:54 UTC (rev 247271)
@@ -1,29 +0,0 @@
-<html>
-<head>
-<script>
-function runTest()
-{
-    if (window.testRunner) {
-        testRunner.dumpDOMAsWebArchive();
-        testRunner.queueReload();
-    }
-}
-</script>
-</head>
-<body _onload_="runTest()">
-<div id="console"></div>
-<script>
-function print(message, color) 
-{
-    var paragraph = document.createElement("div");
-    paragraph.appendChild(document.createTextNode(message));
-    paragraph.style.fontFamily = "monospace";
-    if (color)
-        paragraph.style.color = color;
-    document.getElementById("console").appendChild(paragraph);
-}
-</script>
-<p>This test should have a green 'PASS' just above this line.  If it doesn't, you failed.
-<link rel="subresource" _onbeforeload_="print('PASS','green');return false" href="" type="image/x-icon">
-</body>
-</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to