Update web-platform-tests to revision c2b30ef30749b6a8f2cc832761dfe011e63d5e94

This commit is contained in:
WPT Sync Bot 2018-10-05 21:34:34 -04:00
parent 987e376ca7
commit eda9b9b73a
142 changed files with 3513 additions and 851 deletions

View file

@ -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>

View file

@ -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()