Title: [274489] trunk/LayoutTests
Revision
274489
Author
cgambr...@apple.com
Date
2021-03-16 10:30:06 -0700 (Tue, 16 Mar 2021)

Log Message

[LayoutTests] Convert http/tests/quicklook convert PHP to Python
https://bugs.webkit.org/show_bug.cgi?id=223212
<rdar://problem/75444850>

Reviewed by Jonathan Bedard.

* http/tests/quicklook/csp-header-ignored.html:
* http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php: Removed.
* http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py: Added.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (274488 => 274489)


--- trunk/LayoutTests/ChangeLog	2021-03-16 17:20:15 UTC (rev 274488)
+++ trunk/LayoutTests/ChangeLog	2021-03-16 17:30:06 UTC (rev 274489)
@@ -1,3 +1,15 @@
+2021-03-16  Chris Gambrell  <cgambr...@apple.com>
+
+        [LayoutTests] Convert http/tests/quicklook convert PHP to Python
+        https://bugs.webkit.org/show_bug.cgi?id=223212
+        <rdar://problem/75444850>
+
+        Reviewed by Jonathan Bedard.
+
+        * http/tests/quicklook/csp-header-ignored.html:
+        * http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php: Removed.
+        * http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py: Added.
+
 2021-03-16  Robert Jenner  <jen...@apple.com>
 
         [ macOS ARM64 ] webgl/2.0.0/conformance2/textures/misc/tex-mipmap-levels.html is constantly text failing

Modified: trunk/LayoutTests/http/tests/quicklook/csp-header-ignored.html (274488 => 274489)


--- trunk/LayoutTests/http/tests/quicklook/csp-header-ignored.html	2021-03-16 17:20:15 UTC (rev 274488)
+++ trunk/LayoutTests/http/tests/quicklook/csp-header-ignored.html	2021-03-16 17:30:06 UTC (rev 274489)
@@ -18,7 +18,7 @@
     if (window.testRunner)
         testRunner.notifyDone();
 };
-iframe.src = ""
+iframe.src = ""
 </script>
 </body>
 </html>

Deleted: trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php (274488 => 274489)


--- trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php	2021-03-16 17:20:15 UTC (rev 274488)
+++ trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php	2021-03-16 17:30:06 UTC (rev 274489)
@@ -1,5 +0,0 @@
-<?php
-header("Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document");
-header("Content-Security-Policy: frame-ancestors 'none'");
-readfile("pass.docx");
-?>

Added: trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py (0 => 274489)


--- trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py	                        (rev 0)
+++ trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py	2021-03-16 17:30:06 UTC (rev 274489)
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+sys.stdout.write(
+    'Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document\r\n'
+    'Content-Security-Policy: frame-ancestors \'none\'\r\n\r\n'
+)
+
+sys.stdout.flush()
+with open(os.path.join('/'.join(__file__.split('/')[0:-1]), 'pass.docx'), 'rb') as file:
+    sys.stdout.buffer.write(file.read())
\ No newline at end of file
Property changes on: trunk/LayoutTests/http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.py
___________________________________________________________________

Added: svn:executable

+* \ No newline at end of property
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to