Auto merge of #5727 - jdm:parserinterrupt2, r=mbrubeck

...r parsing. Hook up document loading to async networking events.

Relies on https://github.com/servo/html5ever/pull/107, so we'll likely need to backport it rather than wait for the next rustc upgrade.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5727)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-21 12:37:06 -05:00
commit dd319c1a99
36 changed files with 442 additions and 302 deletions

View file

@ -1,5 +0,0 @@
[async_006.htm]
type: testharness
[dynamically created external script executes asynchronously]
expected: FAIL

View file

@ -1,5 +0,0 @@
[async_008.htm]
type: testharness
[Async script element execution delays the window's load event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[015.html]
type: testharness
[ scheduler: DOM added inline+external+inline script earlier in document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[015a.html]
type: testharness
[ scheduler: DOM added inline+external+inline script earlier in document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[017.html]
type: testharness
[ scheduler: multiple DOM added scripts later in document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[020.html]
type: testharness
[ scheduler: DOM added script with data: URL ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[022.html]
type: testharness
[ scheduler: DOM added script, late .src ]
expected: FAIL

View file

@ -1,6 +0,0 @@
[023.html]
type: testharness
expected: TIMEOUT
[ scheduler: DOM added script, even later .src ]
expected: TIMEOUT

View file

@ -1,5 +0,0 @@
[024.html]
type: testharness
[ scheduler: DOM added script, .src set twice]
expected: FAIL

View file

@ -1,5 +0,0 @@
[038.html]
type: testharness
[ scheduler: DOM movement with appendChild, external]
expected: FAIL

View file

@ -1,5 +0,0 @@
[046.html]
type: testharness
[ scheduler: no readystatechange events when adding external scripts ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[047.html]
type: testharness
[ scheduler: adding and removing external script ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[049.html]
type: testharness
[ scheduler: adding external script but removeAttribute( src ) before it runs]
expected: FAIL

View file

@ -1,5 +0,0 @@
[050.html]
type: testharness
[ scheduler: adding external script that removes all scripts from document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[051.html]
type: testharness
[ scheduler: interaction of parsing and script execution - script added through DOM]
expected: FAIL

View file

@ -1,5 +0,0 @@
[053.html]
type: testharness
[ scheduler: adding external script that removes itself from document when loading]
expected: FAIL

View file

@ -1,5 +0,0 @@
[069.html]
type: testharness
[scheduler: external files added through DOM should not block further parsing while loading]
expected: FAIL

View file

@ -1,5 +0,0 @@
[076.html]
type: testharness
[ scheduler: adding and removing external and inline scripts ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[078.html]
type: testharness
[ adding several types of scripts through the DOM and removing some of them confuses scheduler (slow-loading scripts) ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[081.html]
type: testharness
[ scheduler: slow loading external script added with DOM (appendChild)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[082.html]
type: testharness
[ scheduler: multiple slow loading external scripts added with DOM (appendChild)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[092.html]
type: testharness
[ scheduler: defer script and slow-loading non-async external script]
expected: FAIL

View file

@ -0,0 +1,4 @@
[105.html]
type: testharness
[ scheduler: adding async attribute at runtime]
expected: FAIL

View file

@ -1,8 +1,5 @@
[122.html]
type: testharness
[scheduler: altering the type attribute and adding/removing external script ]
expected: FAIL
[Reinserted script async IDL attribute]
expected: FAIL

View file

@ -0,0 +1,4 @@
[123.html]
type: testharness
[scheduler: altering the type attribute and adding/removing external script with async=false ]
expected: FAIL

View file

@ -1,5 +1,4 @@
[125.html]
[126.html]
type: testharness
[scheduler: altering the type attribute and changing script data external script ]
[scheduler: altering the type attribute and changing script data external script async=false ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[130.html]
type: testharness
[scheduler: appending external script element to script ]
expected: FAIL