diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-10-12 09:25:50 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2017-10-12 12:36:21 -0400 |
commit | 1f531f66ea9d1ecb33cadb2ad6442673b016907a (patch) | |
tree | 601c5180196c97d6db33a47c50fd5738febf4081 /tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py | |
parent | 462c2723806b91e4a0a888d2521a5ce778433949 (diff) | |
download | servo-1f531f66ea9d1ecb33cadb2ad6442673b016907a.tar.gz servo-1f531f66ea9d1ecb33cadb2ad6442673b016907a.zip |
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
Diffstat (limited to 'tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py')
-rw-r--r-- | tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py b/tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py deleted file mode 100644 index 45989505cee..00000000000 --- a/tests/wpt/web-platform-tests/css-font-display/resources/slow-ahem-loading.py +++ /dev/null @@ -1,16 +0,0 @@ -import os -import time - -def main(request, response): - body = open(os.path.join(os.path.dirname(__file__), "../../css/fonts/ahem/ahem.ttf"), "rb").read() - delay = float(request.GET.first("ms", 500)) - if delay > 0: - time.sleep(delay / 1E3); - - response.add_required_headers = False - response.writer.write_status(200) - response.writer.write_header("content-length", len(body)) - response.writer.write_header("content-type", "application/octet-stream") - response.writer.end_headers() - - response.writer.write(body) |