⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 273783 in webkit


Ignore:
Timestamp:
Mar 2, 2021, 6:30:33 PM (6 years ago)
Author:
Chris Gambrell
Message:

[LayoutTests] Convert http/tests/download convert PHP to Python
​https://bugs.webkit.org/show_bug.cgi?id=222618
<rdar://problem/74949253>

Reviewed by Jonathan Bedard.

  • http/tests/download/anchor-download-attribute-content-disposition-no-extension-octet-stream.html:
  • http/tests/download/anchor-download-attribute-content-disposition-no-extension-text-plain.html:
  • http/tests/download/anchor-download-attribute-content-disposition.html:
  • http/tests/download/basic-ascii-expected.txt:
  • http/tests/download/basic-ascii.html:
  • http/tests/download/resources/basic-ascii.php: Removed.
  • http/tests/download/resources/basic-ascii.py: Added.
  • http/tests/download/resources/content-disposition-pass-no-extension-octet-stream.php: Removed.
  • http/tests/download/resources/content-disposition-pass-no-extension-octet-stream.py: Added.
  • http/tests/download/resources/content-disposition-pass-no-extension-text-plain.php: Removed.
  • http/tests/download/resources/content-disposition-pass-no-extension-text-plain.py: Added.
  • http/tests/download/resources/content-disposition-pass.php: Removed.
  • http/tests/download/resources/content-disposition-pass.py: Added.
Location:
trunk/LayoutTests
Files:
4 added
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r273782 r273783  
     12021-03-02  Chris Gambrell  <cgambrell@apple.com>
     2
     3        [LayoutTests] Convert http/tests/download convert PHP to Python
     4        https://bugs.webkit.org/show_bug.cgi?id=222618
     5        <rdar://problem/74949253>
     6
     7        Reviewed by Jonathan Bedard.
     8
     9        * http/tests/download/anchor-download-attribute-content-disposition-no-extension-octet-stream.html:
     10        * http/tests/download/anchor-download-attribute-content-disposition-no-extension-text-plain.html:
     11        * http/tests/download/anchor-download-attribute-content-disposition.html:
     12        * http/tests/download/basic-ascii-expected.txt:
     13        * http/tests/download/basic-ascii.html:
     14        * http/tests/download/resources/basic-ascii.php: Removed.
     15        * http/tests/download/resources/basic-ascii.py: Added.
     16        * http/tests/download/resources/content-disposition-pass-no-extension-octet-stream.php: Removed.
     17        * http/tests/download/resources/content-disposition-pass-no-extension-octet-stream.py: Added.
     18        * http/tests/download/resources/content-disposition-pass-no-extension-text-plain.php: Removed.
     19        * http/tests/download/resources/content-disposition-pass-no-extension-text-plain.py: Added.
     20        * http/tests/download/resources/content-disposition-pass.php: Removed.
     21        * http/tests/download/resources/content-disposition-pass.py: Added.
     22
    1232021-03-02  Chris Gambrell  <cgambrell@apple.com>
    224
  • trunk/LayoutTests/http/tests/download/anchor-download-attribute-content-disposition-no-extension-octet-stream.html

    r250369 r273783  
    1515<p>Tests that the filename from the Content-Disposition header is used even if a download attribute is specified in HTML.</p>
    1616<p>The suggested filename above should be "PASS" (without extension) and the download should succeed.</p>
    17 <a id="download-url" href="resources/content-disposition-pass-no-extension-octet-stream.php" download="FAIL.txt">Link with download attribute.</a>
     17<a id="download-url" href="resources/content-disposition-pass-no-extension-octet-stream.py" download="FAIL.txt">Link with download attribute.</a>
    1818<script>
    1919function click(elmt)
  • trunk/LayoutTests/http/tests/download/anchor-download-attribute-content-disposition-no-extension-text-plain.html

    r250369 r273783  
    1515<p>Tests that the filename from the Content-Disposition header is used even if a download attribute is specified in HTML.</p>
    1616<p>The suggested filename above should be "PASS.txt" (with extension) and the download should succeed.</p>
    17 <a id="download-url" href="resources/content-disposition-pass-no-extension-text-plain.php" download="FAIL.txt">Link with download attribute.</a>
     17<a id="download-url" href="resources/content-disposition-pass-no-extension-text-plain.py" download="FAIL.txt">Link with download attribute.</a>
    1818<script>
    1919function click(elmt)
  • trunk/LayoutTests/http/tests/download/anchor-download-attribute-content-disposition.html

    r240530 r273783  
    1515<p>Tests that the filename from the Content-Disposition header is used even if a download attribute is specified in HTML.</p>
    1616<p>The suggested filename above should be "PASS.txt" and the download should succeed.</p>
    17 <a id="download-url" href="resources/content-disposition-pass.php" download="FAIL.txt">Link with download attribute.</a>
     17<a id="download-url" href="resources/content-disposition-pass.py" download="FAIL.txt">Link with download attribute.</a>
    1818<script>
    1919function click(elmt)
  • trunk/LayoutTests/http/tests/download/basic-ascii-expected.txt

    r105369 r273783  
    1 Policy delegate: attempt to load http://127.0.0.1:8000/download/resources/basic-ascii.php with navigation type 'other'
     1Policy delegate: attempt to load http://127.0.0.1:8000/download/resources/basic-ascii.py with navigation type 'other'
    22Policy delegate: resource is an attachment, suggested file name 'test file.txt'
    33Download file name should be "test file.txt".
  • trunk/LayoutTests/http/tests/download/basic-ascii.html

    r120167 r273783  
    77</script>
    88<p>Download file name should be "test file.txt".</p>
    9 <iframe src="resources/basic-ascii.php"></iframe>
     9<iframe src="resources/basic-ascii.py"></iframe>
Note: See TracChangeset for help on using the changeset viewer.