mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision c2b30ef30749b6a8f2cc832761dfe011e63d5e94
This commit is contained in:
parent
987e376ca7
commit
eda9b9b73a
142 changed files with 3513 additions and 851 deletions
|
@ -95,5 +95,5 @@ function finish() {
|
|||
|
||||
<div></div>
|
||||
|
||||
<p>Save <a href="/common/large.py?size=32Mb">32MB.txt</a> to your desktop. Use your pointing device to drag the saved file from your desktop onto the orange box, and release it. If a confirmation dialog appears, accept it. Fail if this text is not replaced with a pass message. Fail if the UI locks up immediately after dropping the file.</p>
|
||||
<p>Save <a href="../resources/32mb.py">32MB.txt</a> to your desktop. Use your pointing device to drag the saved file from your desktop onto the orange box, and release it. If a confirmation dialog appears, accept it. Fail if this text is not replaced with a pass message. Fail if the UI locks up immediately after dropping the file.</p>
|
||||
<noscript><p>Enable JavaScript and reload</p></noscript>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
thirty_two_megabytes = 32 * 1024 * 1024
|
||||
chunk = 'ab' * 512 * 512
|
||||
chunk_length = len(chunk)
|
||||
|
||||
def main(request, response):
|
||||
def content():
|
||||
bytes_sent = 0
|
||||
while bytes_sent < thirty_two_megabytes:
|
||||
yield chunk
|
||||
bytes_sent += chunk_length
|
||||
|
||||
return [("Content-Type", "text/plain")], content()
|
Loading…
Add table
Add a link
Reference in a new issue