mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +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
|
@ -9,6 +9,7 @@ testText("<div>abc\ndef", "abc def", "\\n converted to space");
|
|||
testText("<div>abc\rdef", "abc def", "\\r converted to space");
|
||||
testText("<div>abc\tdef", "abc def", "\\t converted to space");
|
||||
testText("<div>abc <br>def", "abc\ndef", "Trailing whitespace before hard line break removed");
|
||||
testText("<div>abc<br> def", "abc\ndef", "Leading whitespace after hard line break removed");
|
||||
|
||||
/**** <pre> ****/
|
||||
|
||||
|
@ -52,6 +53,9 @@ testText("<div style='white-space:pre-line'>abc\tdef", "abc def", "\\t converted
|
|||
testText("<div><span>abc </span> def", "abc def", "Whitespace collapses across element boundaries");
|
||||
testText("<div><span>abc </span><span></span> def", "abc def", "Whitespace collapses across element boundaries");
|
||||
testText("<div><span>abc </span><span style='white-space:pre'></span> def", "abc def", "Whitespace collapses across element boundaries");
|
||||
testText("<div>abc <input> def", "abc def", "Whitespace around <input> should not be collapsed");
|
||||
testText("<div>abc <span style='display:inline-block'></span> def", "abc def", "Whitespace around inline-block should not be collapsed");
|
||||
testText("<div>abc <span style='display:inline-block'> def </span> ghi", "abc def ghi", "Trailing space at end of inline-block should be collapsed");
|
||||
|
||||
/**** Soft line breaks ****/
|
||||
|
||||
|
|
|
@ -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