[webkit-changes] [WebKit/WebKit] b720c5: Make network-simulator.py a little more useful
Simon Fraser
noreply at github.com
Sat Jan 27 08:43:39 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b720c5d85f453afe369678698d8d44fb244f21f0
https://github.com/WebKit/WebKit/commit/b720c5d85f453afe369678698d8d44fb244f21f0
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2024-01-27 (Sat, 27 Jan 2024)
Changed paths:
A LayoutTests/http/tests/harness/resources/chunked.txt
A LayoutTests/http/tests/harness/slow-loading-html-iframe-expected.html
A LayoutTests/http/tests/harness/slow-loading-html-iframe.html
M LayoutTests/http/tests/resources/network-simulator.py
Log Message:
-----------
Make network-simulator.py a little more useful
https://bugs.webkit.org/show_bug.cgi?id=268142
rdar://121642038
Reviewed by Dewei Zhu and Alexey Proskuryakov.
Enhance http/tests/resources/network-simulator.py to support an initial response delay,
and variable chunk size, and chunk delay. This makes it possible to use to simulate
a slow-loading resource (potentially replacing the various "slow.pl" scripts we already have).
Add PDF as a valid resource type, and fix some typos.
A new test exercises the added functionality.
* LayoutTests/http/tests/harness/resources/chunked.txt: Added.
* LayoutTests/http/tests/harness/slow-loading-html-iframe.html: Added.
* LayoutTests/http/tests/resources/network-simulator.py:
(content_type):
(generate_response):
(file_to_stdout):
(chunked_file_to_stdout):
(handle_increase_resource_count_command):
(handle_increate_resource_count_command): Deleted.
Canonical link: https://commits.webkit.org/273607@main
More information about the webkit-changes
mailing list