Title: [272860] trunk/LayoutTests
- Revision
- 272860
- Author
- commit-qu...@webkit.org
- Date
- 2021-02-15 10:00:48 -0800 (Mon, 15 Feb 2021)
Log Message
[LayoutTests] Convert http/tests/svg convert PHP to Python
https://bugs.webkit.org/show_bug.cgi?id=221859
<rdar://problem/74298062>
Patch by Chris Gambrell <cgambr...@apple.com> on 2021-02-15
Reviewed by Jonathan Bedard.
* http/tests/svg/cached-image-sizing.html:
* http/tests/svg/resources/delayCachedLoad.php: Removed.
* http/tests/svg/resources/delayCachedLoad.py: Added.
* imported/blink/http/tests/svg/svgload-vs-load.svg:
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (272859 => 272860)
--- trunk/LayoutTests/ChangeLog 2021-02-15 18:00:04 UTC (rev 272859)
+++ trunk/LayoutTests/ChangeLog 2021-02-15 18:00:48 UTC (rev 272860)
@@ -1,5 +1,18 @@
2021-02-15 Chris Gambrell <cgambr...@apple.com>
+ [LayoutTests] Convert http/tests/svg convert PHP to Python
+ https://bugs.webkit.org/show_bug.cgi?id=221859
+ <rdar://problem/74298062>
+
+ Reviewed by Jonathan Bedard.
+
+ * http/tests/svg/cached-image-sizing.html:
+ * http/tests/svg/resources/delayCachedLoad.php: Removed.
+ * http/tests/svg/resources/delayCachedLoad.py: Added.
+ * imported/blink/http/tests/svg/svgload-vs-load.svg:
+
+2021-02-15 Chris Gambrell <cgambr...@apple.com>
+
[LayoutTests] Convert http/tests/incremental convert PHP to Python
https://bugs.webkit.org/show_bug.cgi?id=221902
<rdar://problem/74348931>
Modified: trunk/LayoutTests/http/tests/svg/cached-image-sizing.html (272859 => 272860)
--- trunk/LayoutTests/http/tests/svg/cached-image-sizing.html 2021-02-15 18:00:04 UTC (rev 272859)
+++ trunk/LayoutTests/http/tests/svg/cached-image-sizing.html 2021-02-15 18:00:48 UTC (rev 272860)
@@ -2,7 +2,7 @@
<html>
<body>
Test for webkit.org/b/106733: This test passes if there is a green square (not rectangle) below:<br/>
-<img src="" width="200" height="200">
+<img src="" width="200" height="200">
<script>
if (window.testRunner)
Deleted: trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.php (272859 => 272860)
--- trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.php 2021-02-15 18:00:04 UTC (rev 272859)
+++ trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.php 2021-02-15 18:00:48 UTC (rev 272860)
@@ -1,7 +0,0 @@
-<?php
- // Delay load by 0.07s. This was found to be the lowest value
- // required for webkit.org/b/106733
- usleep(70000);
- header('Cache-Control: no-cache, must-revalidate');
- header('Location: http://127.0.0.1:8000/svg/resources/greenSquare.svg');
-?>
Added: trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.py (0 => 272860)
--- trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.py (rev 0)
+++ trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.py 2021-02-15 18:00:48 UTC (rev 272860)
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import sys
+import time
+
+# Delay load by 0.07s. This was found to be the lowest value
+# required for webkit.org/b/106733
+time.sleep(0.07)
+
+sys.stdout.write(
+ 'Cache-Control: no-cache, must-revalidate\r\n'
+ 'Location: http://127.0.0.1:8000/svg/resources/greenSquare.svg\r\n'
+ 'Content-Type: text/html\r\n\r\n'
+)
\ No newline at end of file
Property changes on: trunk/LayoutTests/http/tests/svg/resources/delayCachedLoad.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/LayoutTests/imported/blink/http/tests/svg/svgload-vs-load.svg (272859 => 272860)
--- trunk/LayoutTests/imported/blink/http/tests/svg/svgload-vs-load.svg 2021-02-15 18:00:04 UTC (rev 272859)
+++ trunk/LayoutTests/imported/blink/http/tests/svg/svgload-vs-load.svg 2021-02-15 18:00:48 UTC (rev 272860)
@@ -20,5 +20,5 @@
}
</script>
<image id="image" _onload_="loaded(evt)" _onerror_="loaded(evt)" x="20" y="20"
- width="100" height="100" xlink:href="" />
+ width="100" height="100" xlink:href="" />
</svg>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes