aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-06-26 10:48:30 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-26 10:48:30 +0200
commit1359e8e4624d10ceb0bf55bcb1cb2903141c6d38 (patch)
tree131f289fd18efb5b28653f6b5d83953f8e6c820b /tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing
parentf017169ae482effc446384050e79b752bd9ddfe5 (diff)
downloadservo-1359e8e4624d10ceb0bf55bcb1cb2903141c6d38.tar.gz
servo-1359e8e4624d10ceb0bf55bcb1cb2903141c6d38.zip
Move `tests/wpt/web-platform-tests` to `tests/wpt/tests`
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/001.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/002.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/003.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/004.html25
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/005.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/006.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/007.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/008.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/009.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/010.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/011.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/012.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/013.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/014.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015a.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/016.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/017.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/018.html35
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/019.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/020.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/021.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/022.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/023.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/024.html32
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/025.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/026.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/027.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/028.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/030.html39
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/031.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/032.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/033.html35
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/034.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/035.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/036.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/037.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/038.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/039.html39
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/040.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/041.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/042.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/043.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/044.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/045.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/046.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/047.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/048.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/049.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/050.html50
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/051.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/052.html26
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/053.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/054.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/055.html32
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/056.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/057.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/058.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/059.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/060.html32
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/061.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/062.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/063.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/064.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/065.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/066.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/067.html38
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/068.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/069.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/070.html48
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/071.html55
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/072.html50
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/073.html52
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/074.html49
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/075.html42
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/076.html32
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/077.html41
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/078.html44
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/079.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/081.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/082.html35
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/083.html48
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/084.html47
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/085.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/086.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/087.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/088.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/089.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/090.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/091.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/092.html26
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/094.html23
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/095.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/096.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/097.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/099.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/101.html35
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/102.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/103.html39
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/104.html39
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/105.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-import.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-import.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-import.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-noimport.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-noimport.html14
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import-xhtml.xhtml20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-import.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-noimport.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport-xhtml.xhtml20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-import.html21
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-noimport.html21
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/108.html25
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/109.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/110.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/111.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/112.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/113.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/114.html26
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/115.html26
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/116.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/117.html25
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/118.html25
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/119.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/120.html17
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/121.html17
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/122.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/123.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/124.html25
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/125.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/126.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/127.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/128.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/129.html40
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/130.html34
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/131.html22
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/132.html22
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/133.html29
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/134.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/135.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/136.html33
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/137.html21
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/138.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/139.html30
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/140.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/141.html26
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/142.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/143.html31
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/144.html28
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/145.html24
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146-href.html22
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146.html23
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/147.html40
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/148.html40
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/149.html59
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import-xhtml.xhtml21
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import.html20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport-xhtml.xhtml20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport.html20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/background.css1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/import.css1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/non-external-no-import.tentative.html27
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld-postMessage.html19
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld.html15
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/check-style-sheet.js4
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/count-script-tags.js1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-body.js4
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-foo.js2
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-1.js1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-10.js1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-11.js4
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-2.js1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-3.js3
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-4.js3
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-5.js7
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-6.js6
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-7.js1
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-8.js4
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-9.js2
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/testlib/testlib.js43
183 files changed, 0 insertions, 4937 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/001.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/001.html
deleted file mode 100644
index 3f54f764f98..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/001.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: inline in markup </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');</script>
- <script>log('inline script #2');</script>
-
- <script type="text/javascript">
-
- var t = async_test()
-
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/002.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/002.html
deleted file mode 100644
index df7ca957993..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/002.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: external in markup </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js"></script>
- <script src="scripts/include-2.js"></script>
-
- <script type="text/javascript">
-
- var t = async_test()
-
-
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'external script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/003.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/003.html
deleted file mode 100644
index 9c23b7e715e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/003.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: inline+external in markup </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1')</script>
- <script src="scripts/include-2.js"></script>
-
- <script type="text/javascript">
-
- var t = async_test()
-
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'external script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/004.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/004.html
deleted file mode 100644
index a21dd388ebc..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/004.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: external+inline in markup </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js"></script>
- <script>log('inline script #2')</script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'inline script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/005.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/005.html
deleted file mode 100644
index ff4a66d25e7..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/005.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write inline in markup </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script>log(\'doc write script\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'doc write script', 'end script #1' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/006.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/006.html
deleted file mode 100644
index b8785a60c6d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/006.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write inline - multiple</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script>log(\'doc write script 1\')<\/script>' );
- document.write( '<script>log(\'doc write script 2\')<\/script>' );
- eval('log(\'eval 1\')');
- document.write( '<script>log(\'doc write script 3\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'doc write script 1','doc write script 2', 'eval 1','doc write script 3', 'end script #1' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/007.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/007.html
deleted file mode 100644
index edd99207575..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/007.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/008.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/008.html
deleted file mode 100644
index dce763987f0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/008.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external - multiple</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- document.write( '<script src="scripts/include-2.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'external script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/009.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/009.html
deleted file mode 100644
index 9d5b2de081a..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/009.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external - multiple with doc.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- document.write( '<script src="scripts/include-3.js">log(\'ignore this\')<\/script>' );
- document.write( '<script src="scripts/include-2.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'external script before doc write', 'document.write external script', 'external script after doc write', 'external script #2' ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/010.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/010.html
deleted file mode 100644
index 69a462c301f..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/010.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external + inline - multiple with doc.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- document.write( '<script>log(\'inline with doc.write #1\')<\/script>' );
- document.write( '<script src="scripts/include-2.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'inline with doc.write #1', 'external script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/011.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/011.html
deleted file mode 100644
index 33024ba59e5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/011.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external + inline - multiple with doc.write + subsequent markup</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- document.write( '<script>log(\'inline with doc.write #1\')<\/script>' );
- document.write( '<script src="scripts/include-2.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'inline with doc.write #1', 'external script #2', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/012.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/012.html
deleted file mode 100644
index 01c9293b203..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/012.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write external and onload events </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script src="scripts/include-1.js" onload = "log(\'include-1 load\')">log(\'ignore this\')<\/script>' )
- document.write( '<script src="scripts/include-3.js" onload = "log(\'include-3 load\')"><\/script>' )
- document.write( '<script src="scripts/include-2.js" onload = "log(\'include-2 load\')">log(\'ignore this\')<\/script>' )
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'include-1 load', 'external script before doc write', 'document.write external script', 'external script after doc write', 'include-3 load', 'external script #2', 'include-2 load', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/013.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/013.html
deleted file mode 100644
index 09616a67d4c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/013.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added inline script earlier in document</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1','end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 100); })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/014.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/014.html
deleted file mode 100644
index 41c90a34216..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/014.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: SCRIPT elements that move themselves in DOM </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.getElementsByTagName('head')[0].appendChild(document.getElementsByTagName('script')[2]);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log('script #2');
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015.html
deleted file mode 100644
index 1fa67e22ed0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added inline+external+inline script earlier in document</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], false);
- var s = testlib.addScript('', { 'src':'scripts/include-1.js' }, document.getElementsByTagName('head')[0], false);
- testlib.addScript('log(\'head script #2\')', {}, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- ///XXX I think the spec allows this case to race
- onload = function(){
- setTimeout(t.step_func(
- function() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'head script #1', 'head script #2', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'head script #1', 'head script #2', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- }),
- 100);}
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015a.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015a.html
deleted file mode 100644
index 94763c3542e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/015a.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added inline+external+inline script earlier in document</title>
- <meta name="timeout" content="long">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], false);
- var s = testlib.addScript('', { 'src':'scripts/include-1.js?pipe=trickle(d1)' }, document.getElementsByTagName('head')[0], false);
- testlib.addScript('log(\'head script #2\')', {}, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1', 'head script #2', 'end script #1', 'inline script #2', 'external script #1']);
- t.done();
- }
- onload = function(){setTimeout(t.step_func(function() {test.apply(t)}), 2000); }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/016.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/016.html
deleted file mode 100644
index 1149dcc752f..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/016.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added inline script later in document</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'body script #1\')', {}, document.body, false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'body script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 100); })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/017.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/017.html
deleted file mode 100644
index 66675bcf114..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/017.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: multiple DOM added scripts later in document</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'body script #1\')', {}, document.getElementsByTagName('body')[0], false);
- testlib.addScript('', { 'src':'scripts/include-1.js' }, document.getElementsByTagName('body')[0], false);
- testlib.addScript('log(\'body script #2\')', {}, document.getElementsByTagName('body')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- //The order of the external script vs the second inline script is undefined because the added script is async by default
- //But we expect most UAs to have the second order
- onload = function() {setTimeout(t.step_func(function() {
- assert_any(assert_array_equals, eventOrder, [
- ['inline script #1', 'body script #1', 'body script #2', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'body script #1', 'body script #2', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- }), 100);}
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/018.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/018.html
deleted file mode 100644
index 5a349bf556f..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/018.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added scripts and doc.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('', { 'src':'scripts/include-3.js' }, document.getElementsByTagName('head')[0], false);
- testlib.addScript('log(\'body script #2\')', {}, document.getElementsByTagName('body')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- //XXX Need to test this delaying the document after we insert the external script and delaying the external script itself; afaict the spec allows us to race here on whether the document.write
- //ever actually happens or not according to whether the insertion point is defined at the point at which the script is executed.
- function test() {
- assert_any(assert_array_equals, eventOrder, [
- ['inline script #1', 'body script #2', 'end script #1', 'external script before doc write', 'document.write external script', 'external script after doc write', 'inline script #2'],
- ['inline script #1', 'body script #2', 'end script #1', 'inline script #2', 'external script before doc write', 'document.write external script', 'external script after doc write'],
- ['inline script #1', 'body script #2', 'end script #1', 'inline script #2', 'external script before doc write', 'external script after doc write']
- ]);
- t.done();
-}
- onload = t.step_func(function(){setTimeout(test.apply(t), 100); })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/019.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/019.html
deleted file mode 100644
index 64ee4f1c521..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/019.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added scripts and event handling </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script onload="log('inline #1 load')">
- log('inline script #1');
- testlib.addScript('', {'src':'scripts/include-1.js', 'onload':function(){log("external #1 load")}}, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'external #1 load', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'external script #1', 'external #1 load']
- ]);
- t.done();
- }
- onload = function(){setTimeout(t.step_func(test), 100); }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/020.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/020.html
deleted file mode 100644
index 7d8f953e407..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/020.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script with data: URL </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- testlib.addScript('', { 'src':'data:text/javascript,log("data URL script")' }, document.getElementsByTagName('body')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'data URL script', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'data URL script']]);
- t.done();
- }
- onload = function() {setTimeout( t.step_func(test), 100); }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/021.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/021.html
deleted file mode 100644
index 34fdc95cb1a..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/021.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script with javascript: URL </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- testlib.addScript('', { 'src':'javascript:log("JS URL script")' }, document.getElementsByTagName('body')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', /*'JS URL script',*/ 'inline script #2']);
- t.done();
- /* pass condition changed 2010-12-01 due to CT-198 */
- }
- onload = t.step_func(function(){setTimeout( test, 100); })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/022.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/022.html
deleted file mode 100644
index ccbcb347dc5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/022.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script, late .src </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- var script = testlib.addScript('', { }, document.getElementsByTagName('body')[0], false);
- script.src='scripts/include-1.js';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- onload = function() {setTimeout(t.step_func(
- function() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done()
- }),
- 100)}
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/023.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/023.html
deleted file mode 100644
index dc687ffe4d5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/023.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script, even later .src </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- var script = testlib.addScript('', { }, document.getElementsByTagName('body')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'external script #1']);
- t.done();
-}
- onload = t.step_func(function(){
- script.src='scripts/include-1.js';
- script.onload = t.step_func(test);
- })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/024.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/024.html
deleted file mode 100644
index ee807b56f98..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/024.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script, .src set twice</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- var script = testlib.addScript('', { }, document.getElementsByTagName('body')[0], false);
- script.src='scripts/include-1.js';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- }
- onload = t.step_func(function(){
- script.src='scripts/include-2.js'; // needs to be ignored, script already "is executed"
- setTimeout(t.step_func(test), 100);
- })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/025.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/025.html
deleted file mode 100644
index 05c6a972843..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/025.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM added script, .src set on script with content</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- var script = testlib.addScript('log("inline DOM script #1")', { }, document.getElementsByTagName('body')[0], false);
- script.src='scripts/include-1.js';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline DOM script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){
- setTimeout(t.step_func(test), 100);
- })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/026.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/026.html
deleted file mode 100644
index 34110ff5baf..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/026.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: doc write added script, .src set later</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- var t = async_test();
- document.write('<script><\/script>');
- var scripts = document.getElementsByTagName('script');
- scripts[scripts.length - 1].src = 'scripts/include-1.js';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
-
- onload = function() {
- setTimeout(
- t.step_func(function() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- }),
- 100);
- }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/027.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/027.html
deleted file mode 100644
index e9fbe7f15c0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/027.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: doc write added script with content, .src set later</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- document.write('<script>log(\'doc.write script\')<\/script>');
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- document.getElementsByTagName('script')[4].src='scripts/include-1.js';
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'doc.write script', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){
- setTimeout(t.step_func(test), 100);
- })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/028.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/028.html
deleted file mode 100644
index e383d4f1a64..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/028.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: javascript: URL</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <script>log('inline script #1');
- window.location.replace('javascript:log(\'JS URL\')');
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [
- ['inline script #1', 'end script #1', 'JS URL', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'JS URL']]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/030.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/030.html
deleted file mode 100644
index f01c257e0d1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/030.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: javascript: URL in HREF, onclick handler</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <p><a href="javascript:log('JS URL')" onclick="log('click event');return true;"></a></p>
- <script>log('inline script #1');
- if(document.links[0].click){
- document.links[0].click();
- }else{
- var evt = document.createEvent("MouseEvents");
- evt.initMouseEvent("click", true, true, window,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- document.links[0].dispatchEvent(evt);
- }
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- var w = window;
- onload = function() {setTimeout(
- t.step_func(function() {
- w.assert_any(w.assert_array_equals, w.eventOrder,
- [['inline script #1', 'click event', 'end script #1', 'JS URL', 'inline script #2'],
- ['inline script #1', 'click event', 'end script #1', 'inline script #2', 'JS URL']]);
- t.done();
- }), 200);
- }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/031.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/031.html
deleted file mode 100644
index 3ddb36ab8de..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/031.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: focus and blur events</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <form><input type="button" onclick="log('click event')" onfocus="log('focus event')" onblur="log('blur event')"><input type="button" onfocus="log('focus el 2 event')" onblur="log('blur event')"></form>
- <script>log('inline script #1');
- document.forms[0][0].focus();
- document.forms[0][1].click();
- document.forms[0][1].focus();
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log('inline script #2');
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'focus event', 'blur event', 'focus el 2 event', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 200);})
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/032.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/032.html
deleted file mode 100644
index da3969740c7..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/032.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: innerHTML and scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- // script added with innerHTML should not run..
- document.getElementsByTagName('div')[1].innerHTML = '<script>log("innerHTML script runs")<\/script><script src="scripts/include-1.js"><\/script>';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 200);})
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/033.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/033.html
deleted file mode 100644
index 5c41effcde6..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/033.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: innerHTML and scripts moved in DOM</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- // script added with innerHTML should not run..
- document.getElementsByTagName('div')[0].innerHTML = '<script>log("innerHTML script runs")<\/script><script src="scripts/include-1.js"><\/script>';
- try{
- document.body.appendChild( document.getElementsByTagName('div')[0].firstChild );
- document.body.appendChild( document.getElementsByTagName('div')[0].firstChild );
- }catch(e){
- log('ERROR while testing');
- }
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 200);})
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/034.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/034.html
deleted file mode 100644
index 13664253a24..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/034.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: innerHTML adding frames with JS in</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- document.getElementsByTagName('div')[1].innerHTML = '<iframe src="pages/helloworld.html"></iframe>';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'frame/popup script']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 200);})
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/035.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/035.html
deleted file mode 100644
index 406c3c548f4..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/035.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: innerHTML adding frames with JS in and moving scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- document.getElementsByTagName('div')[1].innerHTML = '<iframe src="pages/helloworld.html"></iframe>';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'frame/popup script']);
- t.done();
- /*, ['inline script #1', 'end script #1', 'frame/popup script', 'inline script #2'] */
- }
- onload = t.step_func(function(){
- try{
- document.body.appendChild(document.importNode( top.frames[0].document.getElementsByTagName('script')[0], true ));
- }catch(e){ log('ERROR - tested functionality not supported'); }
- setTimeout(t.step_func(test), 200);
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/036.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/036.html
deleted file mode 100644
index 113541dab9d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/036.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM cloning</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- try{
- var script = document.getElementsByTagName('script')[0].cloneNode(true);
- document.body.appendChild(script);
- }catch(e){ log('ERROR - tested functionality not supported'); }
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1', 'end script #1', 'inline script #2' ]);
- t.done();
- }
- onload = t.step_func(function(){
- setTimeout(t.step_func(test), 200);
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/037.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/037.html
deleted file mode 100644
index 15bd8a96e0b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/037.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM movement with appendChild, inline</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- var script = testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- try{
- document.body.appendChild(script);
- }catch(e){ log('ERROR - tested functionality not supported'); }
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1', 'end script #1', 'inline script #2' ]);
- t.done();
- }
- onload = t.step_func(function(){
- setTimeout(t.step_func(test), 200);
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/038.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/038.html
deleted file mode 100644
index db6cec35207..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/038.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM movement with appendChild, external</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- var script = testlib.addScript('', { 'src':'scripts/include-1.js' }, document.getElementsByTagName('head')[0], true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- try{
- document.body.appendChild(script);
- }catch(e){ log('ERROR - tested functionality not supported'); }
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- }
- onload = function() {
- setTimeout(t.step_func(test), 200);
- };
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/039.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/039.html
deleted file mode 100644
index 3720e248660..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/039.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: IFRAMEs added with DOM</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- for( var i=0; i<2; i++ ){
- var iframe=document.createElement('iframe');
- document.getElementsByTagName('div')[1].appendChild(iframe);
- iframe.src='pages/helloworld.html?'+i+'&'+Math.random();
- }
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- promise_test(() => {
- const frames = document.querySelectorAll("iframe");
- return Promise.all([
- new Promise(resolve => window.addEventListener('load', resolve)),
- new Promise(resolve => frames[0].addEventListener('load', resolve)),
- new Promise(resolve => frames[1].addEventListener('load', resolve)),
- ]).then(() => {
- assert_equals(eventOrder.length, 5);
- assert_array_equals(
- eventOrder.slice(0, 3),
- ['inline script #1', 'end script #1', 'inline script #2'],
- "inline scripts should run first");
- assert_in_array('frame/popup script 0', eventOrder.slice(3, 5), 'iframe should have loaded');
- assert_in_array('frame/popup script 1', eventOrder.slice(3, 5), 'iframe should have loaded');
- });
- }, 'iframes should load asynchronously after inline script run');
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/040.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/040.html
deleted file mode 100644
index 3cdf87f07bb..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/040.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: IFRAMEs added with DOM (innerHTML), javascript: URL</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>log('inline script #1');
- document.getElementsByTagName('div')[1].innerHTML = '<iframe src="javascript:parent.log(\'JS URL\');\'<html><script>parent.log(\\\'frame script\\\')<\/script></html>\'"></iframe>';
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [
- ['inline script #1', 'end script #1', 'JS URL', 'inline script #2', 'frame script'],
- /* the following combination seems quite unlikely? */
- ['inline script #1', 'end script #1', 'JS URL', 'frame script', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'JS URL', 'frame script']]);
- t.done();
- }
- onload = t.step_func(function(){
- setTimeout(t.step_func(test), 200);
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/041.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/041.html
deleted file mode 100644
index bce70411857..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/041.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write scripts that write scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.write( '<script>log(\'inline with doc.write #1\'); document.write(\'<script src="scripts/include-4.js"><\\\/script>\');log(\'end inline with doc.write\');<\/script>' );
- document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline with doc.write #1', 'end inline with doc.write', 'end script #1', 'include-4 before doc write', 'include-4 after doc write', 'external script before doc write', 'document.write external script', 'external script after doc write', 'external script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/042.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/042.html
deleted file mode 100644
index df3a2f88f29..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/042.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM mutation events when adding scripts: DOMNodeInserted </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.addEventListener( 'DOMNodeInserted', function(){ log('DOMNodeInserted'); }, false );
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1', 'DOMNodeInserted', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/043.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/043.html
deleted file mode 100644
index bcfd90cba47..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/043.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM mutation events when adding external scripts: DOMNodeInserted </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.addEventListener( 'DOMNodeInserted', function(){ log('DOMNodeInserted'); }, false );
- testlib.addScript('', { src: 'scripts/include-1.js' }, document.getElementsByTagName('head')[0], false);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'DOMNodeInserted', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'DOMNodeInserted', 'end script #1', 'inline script #2', 'external script #1']]
- );
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/044.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/044.html
deleted file mode 100644
index 8d412079e45..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/044.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM mutation events when adding scripts: DOMNodeInsertedIntoDocument </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('log(\'head script #1\')', {}, document.getElementsByTagName('head')[0], false, function(s){s.addEventListener( 'DOMNodeInsertedIntoDocument', function(){ log('DOMNodeInsertedIntoDocument'); }, false ); } );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'head script #1', 'DOMNodeInsertedIntoDocument', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/045.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/045.html
deleted file mode 100644
index 254e0d13662..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/045.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: DOM mutation events when adding external scripts: DOMNodeInsertedIntoDocument </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('', {src:'scripts/include-1.js'}, document.getElementsByTagName('head')[0], false, function(s){s.addEventListener( 'DOMNodeInsertedIntoDocument', function(){ log('DOMNodeInsertedIntoDocument'); }, false);});
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- onload = t.step_func(function() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'DOMNodeInsertedIntoDocument', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'DOMNodeInsertedIntoDocument', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/046.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/046.html
deleted file mode 100644
index 4f145d63e1d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/046.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: no readystatechange events when adding external scripts </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('', {src:'scripts/include-1.js', onreadystatechange:function() {log( 'readystatechange '+ this.readyState );}}, document.getElementsByTagName('head')[0], false );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/047.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/047.html
deleted file mode 100644
index 88509e9d435..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/047.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding and removing external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('', {src:'scripts/include-1.js'}, document.getElementsByTagName('head')[0], false );
- script.parentNode.removeChild(script);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/048.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/048.html
deleted file mode 100644
index 8879f035d37..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/048.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding inline script which sets its own .src </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('log(\'HEAD script start\');document.getElementsByTagName(\'script\')[0].src=\'scripts/include-1.js\';log(\'HEAD script end\')', {}, document.getElementsByTagName('head')[0], true );
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'HEAD script start', 'HEAD script end', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/049.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/049.html
deleted file mode 100644
index 455a20c549c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/049.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding external script but removeAttribute( src ) before it runs</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('log(\'HEAD script\');', { src:'scripts/include-1.js' }, document.getElementsByTagName('head')[0], false );
- script.removeAttribute('src');
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/050.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/050.html
deleted file mode 100644
index a400749f18e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/050.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding external script that removes all scripts from document</title>
- <meta name="timeout" content="long">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('', { src:'scripts/include-5.js' }, document.getElementsByTagName('head')[0], false );
- // caching might affect whether the below script runs or not. Adding Math.random() makes the test a bit more predictable? :-p
- var script=testlib.addScript('', { src:'scripts/include-1.js?pipe=trickle(d1)&'+Math.random() }, document.getElementsByTagName('head')[0], false );
- log('end script #1');
- </script>
- <script src="scripts/include-2.js?pipe=trickle(d4)"></script>
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- // Per-spec, non-blocking/async scripts can execute at any time.
- // Therefore, there are two possibilities for the script order here.
- // 1. inline script first, followed by include-5 (async), then
- // external script #1 (slow async) and finally external #2
- // (inline).
- // 2. inline script, external '2, 'include 5', then include-1.
- assert_array_equals(eventOrder.slice(0, 2), [
- 'inline script #1', 'end script #1'
- ]);
- if (eventOrder[2] == 'include-5 before removing scripts') {
- assert_array_equals(eventOrder.slice(3), [
- 'include-5 after removing scripts', 'external script #1',
- 'external script #2'
- ]);
- } else {
- assert_array_equals(eventOrder.slice(2), ['external script #2',
- 'include-5 before removing scripts',
- 'include-5 after removing scripts',
- 'external script #1'
- ]);
- }
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/051.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/051.html
deleted file mode 100644
index a0b674304f2..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/051.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: interaction of parsing and script execution - script added through DOM</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- testlib.addScript('', { src: 'scripts/count-script-tags.js' }, document.body, true);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'script tags in DOM: 5', 'inline script #2'],
- ['inline script #1', 'end script #1', 'inline script #2', 'script tags in DOM: 6']]);
- t.done();
- }
- onload = function(){setTimeout(t.step_func(test), 100); }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/052.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/052.html
deleted file mode 100644
index 21a151cb79c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/052.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: interaction of parsing and script execution - external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/count-script-tags.js"></script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['script tags in DOM: 4', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(function(){setTimeout(t.step_func(test), 100); })
- </script>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/053.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/053.html
deleted file mode 100644
index 810197437da..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/053.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding external script that removes itself from document when loading</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('', { src:'scripts/include-1.js', onload:function() {this.parentNode.removeChild(this);log('removed ' + this.localName);} }, document.getElementsByTagName('body')[0], true );
- log('end script #1');
- </script>
- <script src="scripts/include-2.js"></script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'end script #1', 'external script #1', 'removed script', 'external script #2', 'inline script #2'],
- ['inline script #1', 'end script #1', 'external script #2', 'external script #1', 'removed script', 'inline script #2'],
- ['inline script #1', 'end script #1', 'external script #2', 'inline script #2', 'external script #1', 'removed script']]
- );
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/054.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/054.html
deleted file mode 100644
index 29ede23414e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/054.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing newly inserted script from DOMNodeInserted handler - external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.addEventListener( 'DOMNodeInserted', function listener(e){
- log('DOMNodeInserted event');
- e.target.parentNode.removeChild(e.target);
- document.removeEventListener('DOMNodeInserted', listener);
- }, false );
- var script=testlib.addScript('', { src:'scripts/include-1.js?'+Math.random() }, document.getElementsByTagName('body')[0], true );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'DOMNodeInserted event', 'end script #1', 'inline script #2', 'external script #1'],
- ['inline script #1', 'DOMNodeInserted event', 'end script #1', 'external script #1', 'inline script #2']]);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/055.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/055.html
deleted file mode 100644
index c837d78174b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/055.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing newly inserted script from DOMNodeInserted handler - inline script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- document.addEventListener( 'DOMNodeInserted', function listener(e){
- log('DOMNodeInserted event');
- e.target.parentNode.removeChild(e.target);
- document.removeEventListener('DOMNodeInserted', listener);
- }, false );
- var script=testlib.addScript('log(\'added script\')', { }, document.getElementsByTagName('body')[0], true );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'added script', 'DOMNodeInserted event', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/056.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/056.html
deleted file mode 100644
index e2d0868034e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/056.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: appending code to initially empty SCRIPT tag in DOM </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- script.appendChild( document.createTextNode('log("injected script code");') );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- // Test asserts the injected script should run
- assert_array_equals(eventOrder, ['inline script #1', 'injected script code', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/057.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/057.html
deleted file mode 100644
index 4dc8e1384e1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/057.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: appending code to initially non-empty SCRIPT tag in DOM (whitespace only) </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>
- </script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- script.appendChild( document.createTextNode('log("injected script code");') );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/058.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/058.html
deleted file mode 100644
index 15deb785c2f..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/058.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: appending code to initially non-empty SCRIPT tag in DOM (comment only) </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>/**/</script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- script.appendChild( document.createTextNode('log("injected script code");') );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/059.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/059.html
deleted file mode 100644
index b3a34367b22..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/059.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: appending code to initially non-empty SCRIPT tag in DOM after removing its initial child </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>/**/</script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- script.removeChild(script.firstChild);
- script.appendChild( document.createTextNode('log("injected script code");') );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/060.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/060.html
deleted file mode 100644
index 905dfe233fa..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/060.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: appending code to initially non-empty SCRIPT tag in DOM after setting textContent/innerHTML</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>log('HEAD script');</script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- script.innerHTML='';
- script.appendChild( document.createTextNode('log("injected script code 1");') );
- script.textContent='';
- script.appendChild( document.createTextNode('log("injected script code 2");') );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['HEAD script', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/061.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/061.html
deleted file mode 100644
index 9950b1c7ac7..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/061.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode and script execution</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>log('HEAD script');</script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- document.body.appendChild( script.cloneNode(true) );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['HEAD script', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/062.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/062.html
deleted file mode 100644
index c5e0ee2d466..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/062.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode (shallow) and script execution</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>log('HEAD script');</script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- document.body.appendChild( script.cloneNode(false) ).appendChild(document.createTextNode('log("clone");'));
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['HEAD script', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/063.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/063.html
deleted file mode 100644
index 6824074a8c1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/063.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode (deep) of the currently executing script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>log('HEAD script');
- if( !window.already_cloned ){
- window.already_cloned=true;
- var script=document.getElementsByTagName('script')[3];
- document.getElementsByTagName('head')[0].appendChild( script.cloneNode(true) );
- }
- </script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['HEAD script', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/064.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/064.html
deleted file mode 100644
index ceedc3da2d7..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/064.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode with external script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script src="scripts/include-1.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3];
- document.body.appendChild( script.cloneNode(true) );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/065.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/065.html
deleted file mode 100644
index 5859dc9e0ba..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/065.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode with external script, changed .src</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script src="scripts/include-1.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3].cloneNode(true);
- script.src='scripts/include-2.js'
- document.body.appendChild( script );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/066.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/066.html
deleted file mode 100644
index a8e346dfd82..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/066.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: cloneNode with external script, removing .src and adding content</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script src="scripts/include-1.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=document.getElementsByTagName('script')[3].cloneNode(true);
- script.removeAttribute('src');
- script.appendChild(document.createTextNode( 'log("cloned script");' ));
- document.body.appendChild( script );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/067.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/067.html
deleted file mode 100644
index 7be0fd0ab0d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/067.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: is a script with syntax error marked as "has run"? </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>setup({allow_uncaught_exception:true})
- var t = async_test()
- </script>
- <script>
- log(This script will never run..
- </script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>t.step(function() {
- log('inline script #1');
- var script=document.getElementsByTagName('script')[3].cloneNode(true);
- script.removeChild(script.firstChild);
- script.appendChild(document.createTextNode( 'log("cloned script");' ));
- document.body.appendChild( script );
- log('end script #1');
- })
- </script>
- <script type="text/javascript">
- t.step(function() {
- log( 'inline script #2' );
- });
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2']);
- t.done();
- }
- onload = t.step_func(test);
-</script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/068.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/068.html
deleted file mode 100644
index a58158b6c0a..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/068.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: external script and parsing of markup added with document.write </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- log('inline script #1');
- document.write('<script src="scripts/find-foo.js">log(\'inline code in external script (not expected to run!!)\')<\/script>' + '<div id="foo"></div>');
- log('end script #1');
-
- var t = async_test()
-
-
- function test() {
- if(!window.findFooLoaded) {
- return setTimeout(t.step_func(test),200);
- }
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'found #foo element: NO']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/069.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/069.html
deleted file mode 100644
index 4d4aed26587..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/069.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external files added through DOM should not block further parsing while loading</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>
- testlib.addScript('',{src:'scripts/find-body.js?pipe=trickle(d1)'},document.getElementsByTagName('head')[0], true );
- </script>
-</head>
-<body>
- <script>
- testlib.addScript('', {src:'scripts/find-foo.js?pipe=trickle(d1)'}, document.getElementsByTagName('head')[0], true);
- </script>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <p><span id="foo"></span></p>
-
- <script type="text/javascript">
- var t = async_test()
-
- function test() {
- if(!(window.findFooLoaded && window.findBodyLoaded)) {
- return setTimeout(t.step_func(test), 200);
- }
- assert_any(assert_array_equals, eventOrder,
- [['document.body: <BODY>', 'found #foo element: YES'],
- ['found #foo element: YES', 'document.body: <BODY>']]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/070.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/070.html
deleted file mode 100644
index 4b82a9e83f9..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/070.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write into IFRAME a script that adds a SCRIPT through DOM</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe></iframe>
-
- <script type="text/javascript">
- var doc = document.getElementsByTagName('iframe')[0].contentDocument;
- doc.open();
-
- log("calling document.write");
- doc.write('<script>top.log("inline script #1");'+
- 'var s=document.createElement("script");'+
- 's.src="scripts/include-6.js?'+new Date().getTime()+'";'+
- 'document.getElementsByTagName("head")[0].appendChild(s);'+
- '<\/script>'+
- '<div id="foo"></div>'+
- '<script>top.log("inline script #2");<\/script>'
- );
-
- log("calling document.close");
- doc.close();
-
- var t = async_test()
-
-
- function test() {
- if(!window.include6Loaded) {
- return setTimeout(t.step_func(test),200);
- }
- assert_array_equals(eventOrder, ['calling document.write', 'inline script #1', 'inline script #2', 'calling document.close', 'external script (#foo found? YES)']);
- t.done();
- }
-
- onload = t.step_func(test)
- </script>
-</head>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/071.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/071.html
deleted file mode 100644
index 802c4a8ce36..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/071.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write several scripts into IFRAME </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe style="width:1px;height:1px"></iframe>
-
- <script type="text/javascript">
- var doc = document.getElementsByTagName('iframe')[0].contentDocument;
- doc.open();
-
- var html = '<html><head><title>test</title></head>'+
- '<script>top.log("inline script #1");'+
- '<\/script>'+
- /* made url unique because Chrome will change
- order depending on file cached status */
- '<script src="scripts/include-6.js?'+new Date().getTime()+'"><\/script>'+
- '</head>'+
- '<body>'+
- '<div id="foo"></div>'+
- '</body></html>'+
- '<script>top.log("inline script #2");<\/script>';
- log("calling document.write");
- doc.write(html);
-
- log("calling document.close");
- doc.close();
-
- var t = async_test()
-
-
- function test() {
- if( !window.include6Loaded )return setTimeout(t.step_func(test),200); // try checking again if external script didn't run yet
- assert_array_equals(eventOrder, ['calling document.write',
- 'inline script #1',
- 'calling document.close',
- 'external script (#foo found? NO)',
- 'inline script #2'
- ]);
- t.done();
- }
-
- onload = t.step_func(test)
- </script>
-</head>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/072.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/072.html
deleted file mode 100644
index e502a357366..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/072.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write into IFRAME a script that creates new inline script in parent </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe style="width:1px;height:1px"></iframe>
-
- <script type="text/javascript">
- var doc = document.getElementsByTagName('iframe')[0].contentDocument;
- doc.open();
-
- var html = '<html><head><title>test</title></head>'+
- '<script>top.log("inline script #1");'+
- '<\/script>'+
- '</head>'+
- '<body>'+
- '<div id="foo"></div>'+
- '</body></html>'+
- '<script>top.testlib.addScript( \'log("inline script added to parent")\', null, top.document.body, true )<\/script>';
- log("calling document.write");
- doc.write(html);
-
- log("calling document.close");
- doc.close();
-
- var t = async_test()
-
-
- function test() {
- assert_array_equals(eventOrder, ['calling document.write',
- 'inline script #1',
- 'inline script added to parent',
- 'calling document.close',
- ]);
- t.done();
- }
-
- onload = t.step_func(test)
- </script>
-</head>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/073.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/073.html
deleted file mode 100644
index 6f65c4ae195..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/073.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write into IFRAME a script that creates new external script in parent </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe style="width:1px;height:1px"></iframe>
-
- <script type="text/javascript">
- var doc = document.getElementsByTagName('iframe')[0].contentDocument;
- doc.open();
-
- var html = '<html><head><title>test</title></head>'+
- '<script>top.log("inline script #1");'+
- '<\/script>'+
- '</head>'+
- '<body>'+
- '<div id="foo"></div>'+
- '</body></html>'+
- '<script>top.testlib.addScript( \'\', { src:\'scripts/include-1.js\' }, top.document.body, true )<\/script>';
- log("calling document.write");
- doc.write(html);
-
- log("calling document.close");
- doc.close();
-
- var t = async_test()
-
-
- function test() {
-
- assert_array_equals(eventOrder, ['calling document.write',
- 'inline script #1',
- 'calling document.close',
- 'external script #1'
- ]);
-
- t.done();
- }
-
- onload = t.step_func(test)
- </script>
-</head>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/074.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/074.html
deleted file mode 100644
index 70d7b88b748..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/074.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: document.write into IFRAME a script that creates new inline script in parent that again adds script to IFRAME </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe style="width:1px;height:1px"></iframe>
-
- <script type="text/javascript">
- var doc = document.getElementsByTagName('iframe')[0].contentDocument;
- doc.open();
- var str1='';
- var html = '<html><head><title>test</title></head>'+
- '<script>top.log("inline script #1");'+
- '<\/script>'+
- '</head>'+
- '<body>'+
- '<script>top.testlib.addScript( \'top.log("inline script added to parent");top.doc.write( "<script>top.log(\\\\"inline script added to iframe\\\\")<\\\/script>");\', null, top.document.body, true ) <\/script>'+
- '</body></html>';
- log("calling document.write");
- doc.write(html);
-
- log("calling document.close");
- doc.close();
-
- var t = async_test()
-
-
- function test() {
- assert_array_equals(eventOrder, ['calling document.write',
- 'inline script #1',
- 'inline script added to parent',
- 'inline script added to iframe',
- 'calling document.close',
- ]);
- t.done();
- }
-
- onload = t.step_func(test)
- </script>
-</head>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/075.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/075.html
deleted file mode 100644
index 40ec9bbb6a5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/075.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>dispatchEvent from child frame during document.write :-o </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- </head>
- <body onclick="log('click event')">
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <iframe></iframe>
- <script>
- var doc = document.getElementsByTagName("iframe")[0].contentDocument;
- doc.open("text/html");
- doc.write('<html><head><title>event dispatcher</title></head><body>Before script<script>top.log("inline script before event");var ev = parent.document.createEvent("MouseEvents");ev.initMouseEvent("click", true, false, null, 0, 0, 0, 0, 0, false, false, false, false, 0, null);parent.document.body.dispatchEvent(ev);top.log("inline script after event");</sc'+'ript> After script</body>');
- log( 'end main script' );
-
-
- </script>
-
-<script>
- var t = async_test()
-
- function test() {
- if(test.ran)return; test.ran=true;
-
- assert_array_equals(eventOrder, ['inline script before event',
- 'click event',
- 'inline script after event',
- 'end main script'
- ]);
- doc.close();
- t.done();
-}
-
- onload = t.step_func(test)
- /* onload doesn't fire in this test, a fallback.. */
- setTimeout(t.step_func(test), 800 );
-</script>
- </body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/076.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/076.html
deleted file mode 100644
index 2b8b692d926..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/076.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding and removing external and inline scripts </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>log('inline script #1');
- var script=testlib.addScript('', {src:'scripts/include-1.js', onload:function(e){ e.target.parentNode.removeChild(e.target); }}, document.getElementsByTagName('head')[0], false );
- var script=testlib.addScript( 'log( "dynamically added inline script" )', null, document.getElementsByTagName('head')[0], false );
- script.parentNode.removeChild(script);
- log('end script #1');
- </script>
-
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- }
- onload = t.step_func(function() {
- assert_any(assert_array_equals, eventOrder, [['inline script #1', 'dynamically added inline script', 'end script #1', 'external script #1', 'inline script #2'],
- ['inline script #1', 'dynamically added inline script', 'end script #1', 'inline script #2', 'external script #1']]);
- t.done();
- })
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/077.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/077.html
deleted file mode 100644
index dbcd16bea50..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/077.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title> adding several types of scripts through the DOM and removing some of them confuses scheduler </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script type="text/javascript">
- var head = document.getElementsByTagName('head')[0];
- function createScript(url, contents) {
- props = {};
- if (url) {
- props.src = url;
- }
- return testlib.addScript(contents, props, head, false);
- }
- var t = async_test()
-
- function test() {
- var script = createScript('data:text\/javascript,log("Script %231 ran")');
- var script2 = createScript('','log("Script #2 ran")');
- if(script2) {
- head.removeChild(script2);
- }
- var script3 = createScript('data:text\/javascript, log("Script %233 ran"); createScript(\'\', \'log("Script %234 ran")\')');
- if(script3) {
- head.removeChild(script3);
- }
- setTimeout(t.step_func(function(){
- assert_array_equals(eventOrder, ['Script #2 ran', 'Script #1 ran', 'Script #3 ran','Script #4 ran']);
- t.done();
- }), 400);
-
- };
- onload = t.step_func(test)
- </script>
- </head>
- <body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- </body>
-</html*>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/078.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/078.html
deleted file mode 100644
index da4db4a2e62..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/078.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title> adding several types of scripts through the DOM and removing some of them confuses scheduler (slow-loading scripts) </title>
-<meta name="timeout" content="long">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="testlib/testlib.js"></script>
-<script type="text/javascript">
- setup({ explicit_done: true });
- var head = document.getElementsByTagName('head')[0];
- function createScript(url, contents) {
- props = {};
- if (url) {
- props.src = url;
- }
- return testlib.addScript(contents, props, head, false);
- }
- var t = async_test()
-
- function test() {
- document.getElementById("log").textContent = "Please wait..."
- var url = 'scripts/include-1.js?pipe=trickle(d1)';
- var script = createScript(url);
- var script2 = createScript('', 'log("Script #2 ran")');
- head.removeChild(script2);
- var url = 'scripts/include-2.js?pipe=trickle(d2)';
- var script3 = createScript(url);
- head.removeChild(script3);
-
- setTimeout(t.step_func(function () {
- done();
- assert_array_equals(eventOrder, ['Script #2 ran', 'external script #1', 'external script #2']);
- t.done();
- }), 5500);
-
- };
- onload = t.step_func(test)
-</script>
-</head>
-<body>
-<div id="log">FAILED (This TC requires JavaScript enabled)</div>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/079.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/079.html
deleted file mode 100644
index 8d684cebf2b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/079.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title> setting location to javascript URL from event handler </title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="testlib/testlib.js"></script>
-<script type="text/javascript">
-log('inline script #1');
-var t = async_test()
-
-onload = t.step_func(function() {
- log('onload handler');
- document.getElementById("log").textContent = 'please wait...';
- window.location='javascript:log("javascript: URL")';
- setTimeout(t.step_func(function(){
- log('timeout');
- assert_array_equals(eventOrder, ['inline script #1', 'onload handler', 'onload ends', 'javascript: URL', 'timeout']);
- t.done();
- }), 200);
- log('onload ends');
-});
-</script>
-</head>
-<body>
-<div id="log">FAILED (This TC requires JavaScript enabled)</div>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/081.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/081.html
deleted file mode 100644
index 1b9bc991c69..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/081.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: slow loading external script added with DOM (appendChild)</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>
- var t = async_test()
- log('inline script #1');
- testlib.addScript('', { src:'scripts/include-1.js?pipe=trickle(d1)&'+Math.random() }, document.getElementsByTagName('head')[0], false );
- log('end script #1');
- </script>
- <script src="scripts/include-2.js"></script>
- <script>
- log( 'inline script #2' );
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #2', 'inline script #2', 'external script #1']);
- t.done();
- }
- onload = t.step_func(function() {
- setTimeout(t.step_func(test), 12);
- });
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/082.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/082.html
deleted file mode 100644
index 3e88fc73d40..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/082.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: multiple slow loading external scripts added with DOM (appendChild)</title>
- <meta name="timeout" content="long">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div></div>
- <script>
-
- log('inline script #1');
- function scriptLoadListener(){
- log( 'load on '+this.src.match( /include-\d\.js/ ) );
- }
- var script=testlib.addScript('', { src:'scripts/include-1.js?pipe=trickle(d1)&' + Math.random(), onload:scriptLoadListener }, document.getElementsByTagName('head')[0], false );
- var script=testlib.addScript('', { src:'scripts/include-2.js?pipe=trickle(d3)&' + Math.random(), onload:scriptLoadListener }, document.getElementsByTagName('head')[0], false );
- var script=testlib.addScript('', { src:'scripts/include-7.js?pipe=trickle(d2)&' + Math.random() , onload:scriptLoadListener }, document.getElementsByTagName('head')[0], false );
- log('end script #1');
- </script>
- <script type="text/javascript">
- log('inline script #2');
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'external script #1', 'load on include-1.js', 'external script #7', 'load on include-7.js', 'external script #2', 'load on include-2.js']);
- t.done();
- }
- onload = function() {setTimeout(t.step_func(test), 12)};
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/083.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/083.html
deleted file mode 100644
index 2ac0015c8b7..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/083.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: event listener defined by script in a document in history</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <iframe src="about:blank"></iframe>
- <script>
- log('inline script #1');
- function fireFooEvent(){
- var evt=document.createEvent('Event');
- evt.initEvent('foo', true, true);
- document.dispatchEvent(evt);
- }
- var doc = frames[0].document;
- doc.open('text/html');
- doc.write('<script>top.log("IFRAME script");top.document.addEventListener("foo", function(e){ top.log("event: "+e.type); }, false)<\/script>');
- log('end script #1');
- </script>
- <script>
- fireFooEvent();
- frames[0].location='about:blank'; // returning to about:blank should de-activate document that defined event listener..?
- </script>
- <script>
- fireFooEvent();
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_equals(frames[0].location.toString(), "about:blank");
- assert_array_equals(eventOrder, ['inline script #1',
- 'IFRAME script',
- 'end script #1',
- 'event: foo',
- 'inline script #2'
- ]);
- t.done();
- }
- onload = function() {setTimeout(t.step_func(function() {fireFooEvent(); test()}), 80)};
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/084.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/084.html
deleted file mode 100644
index 3027fa19944..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/084.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: event listener defined by script in a removed IFRAME</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <iframe src="about:blank"></iframe>
- <script>
- log('inline script #1');
- function fireFooEvent(){
- var evt=document.createEvent('Event');
- evt.initEvent('foo', true, true);
- document.dispatchEvent(evt);
- }
- var doc=frames[0].document;
- doc.open( 'text/html' );
- doc.write( '<script>top.log("IFRAME script");top.document.addEventListener("foo", function(e){ top.log("event: "+e.type); }, false)<\/script>' );
- log('end script #1');
- </script>
- <script>
- fireFooEvent();
- frames[0].frameElement.parentNode.removeChild( frames[0].frameElement ); // removing the IFRAME should de-activate document that defined event listener..?
- </script>
- <script>
- fireFooEvent();
- </script>
- <script type="text/javascript">
- log( 'inline script #2' );
- var t = async_test()
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1',
- 'IFRAME script',
- 'end script #1',
- 'event: foo',
- 'inline script #2'
- ]);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/085.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/085.html
deleted file mode 100644
index 6577527a8e5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/085.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: async script and slow-loading defer script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js?pipe=trickle(d1)" defer></script>
- <script src="scripts/include-2.js" async></script>
-
- <script type="text/javascript">
- var t = async_test();
- function test() {
- assert_array_equals(eventOrder, ['external script #2', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/086.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/086.html
deleted file mode 100644
index 4ccd16de894..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/086.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: async script and slow-loading async script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js?pipe=trickle(d2)" async></script>
- <script src="scripts/include-2.js" async></script>
-
- <script type="text/javascript">
- var t = async_test();
- function test() {
- assert_array_equals(eventOrder, ['external script #2', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/087.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/087.html
deleted file mode 100644
index 8e225f48ae1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/087.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: multiple defer scripts, one slow loading</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js?pipe=trickle(d2)" defer></script>
- <script src="scripts/include-2.js" defer></script>
-
- <script type="text/javascript">
- var t = async_test();
- function test() {
- assert_array_equals(eventOrder, ['external script #1', 'external script #2']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/088.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/088.html
deleted file mode 100644
index f41f3d5be2b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/088.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: multiple scripts with defer and async attributes</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script src="scripts/include-1.js?pipe=trickle(d2)" defer async></script>
- <script src="scripts/include-2.js" defer async></script>
-
- <script type="text/javascript">
- var t = async_test();
- function test() {
- assert_array_equals(eventOrder, ['external script #2', 'external script #1']);
- t.done();
- }
- onload = t.step_func(test);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/089.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/089.html
deleted file mode 100644
index 9ed5e0e1da1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/089.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: async attribute on inline script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script async>
- var t = async_test();
- log('inline script #1');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1']);
- });
- </script>
- <script async>
- log('inline script #2');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline script #2']);
- });
- </script>
-
- <script>
- log('inline script #3');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline script #2', 'inline script #3']);
- });
- onload = function() {t.done()};
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/090.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/090.html
deleted file mode 100644
index 17d1d1effe3..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/090.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer attribute on inline script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script defer>
- var t = async_test();
- log('inline script #1');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1']);
- });
- </script>
- <script defer>
- log('inline script #2');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline script #2']);
- });
- </script>
-
- <script>
- log('inline script #3');
- t.step(function() {
- assert_array_equals(eventOrder, ['inline script #1', 'inline script #2', 'inline script #3']);
- });
- onload = function() {t.done()};
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/091.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/091.html
deleted file mode 100644
index f706cd31f52..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/091.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: force-async off on non-parser-inserted script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- var t = async_test();
-
- sources = ["scripts/include-1.js?pipe=trickle(d2)", "scripts/include-2.js?pipe=trickle(d1)"];
- sources.forEach(function(x) {
- var script = document.createElement("script");
- script.src = x;
- t.step(function() {assert_equals(script.async, true, "async IDL attribute on script creation")});
- script.async = false;
- t.step(function() {assert_equals(script.async, false, "async IDL attribute after setting")});
- t.step(function() {assert_equals(script.getAttribute("async"), null, "async content attribute after setting")});
- document.head.appendChild(script);
- });
-
- onload = t.step_func(function() {
- assert_array_equals(eventOrder, ['external script #1', 'external script #2']);
- t.done();
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/092.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/092.html
deleted file mode 100644
index 40fda5a0c0d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/092.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer script and slow-loading non-async external script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- var t = async_test();
-
- var script = document.createElement("script");
- script.src = "scripts/include-2.js?pipe=trickle(d2)";
- script.async = false;
- document.head.appendChild(script);
-
- onload = t.step_func(function() {
- assert_array_equals(eventOrder, ['external script #1', 'external script #2']);
- t.done();
- });
- </script>
- <script defer src="scripts/include-1.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/094.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/094.html
deleted file mode 100644
index cc9d1bf0fbe..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/094.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: parser-created defer script after document load</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <iframe id="myFrame"></iframe>
-
- <script>
- var t = async_test();
- onload = t.step_func(function() {
- var doc = document.getElementById("myFrame").contentDocument;
- var win = document.getElementById("myFrame").contentWindow;
- doc.open();
- doc.write("<title> scheduler: parser-created defer script after document load</title><script src='/resources/testharness.js'><\/script><script src='/resources/testharnessreport.js'><\/script><script src='testlib/testlib.js'><\/script><script>var t=async_test()<\/script><div id=log></div><script defer src='data:text/javascript,parent.t.done();'><\/script>");
- doc.close();
- })
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/095.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/095.html
deleted file mode 100644
index 5e3b388cf1e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/095.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: slow-loading script added from defer blocking load event</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- var t = async_test();
- function test() {
- t.step(function() {
- assert_array_equals(eventOrder, ['external script #8', 'external script #9']);
- t.done();
- });
- }
- //assert that the test is completed before onload fires
- onload = t.step_func(function() {assert_unreached()});
- </script>
- <script defer src="scripts/include-8.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/096.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/096.html
deleted file mode 100644
index a2e15b782a5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/096.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer script added from document.write relative to DOMContentLoaded</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- log("inline script #1");
- document.write("<script defer src='scripts/include-1.js'><\/script>")
- </script>
- <script>
- log("inline script #2");
- var t = async_test();
-
- addEventListener("DOMContentLoaded", t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1"]);
- log("inline script #3");
- }), false);
-
- onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1", "inline script #3"]);
- t.done();
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/097.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/097.html
deleted file mode 100644
index a31d49e5b09..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/097.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: slow-loading async script added from document.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- log("inline script #1");
- document.write("<script async src='scripts/include-1.js?pipe=trickle(d2)'><\/script>")
- </script>
- <script>
- log("inline script #2");
- var t = async_test();
-
- addEventListener("DOMContentLoaded", t.step_func(function() {assert_array_equals(eventOrder, ["inline script #1", "inline script #2"])}), false);
-
- onload = t.step_func(
- function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1"]);
- t.done();
- });
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/099.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/099.html
deleted file mode 100644
index 987fcc7c711..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/099.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer adding iframe containing script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script defer src="scripts/include-11.js"></script>
- <script>
- var t = async_test();
-
- onload = t.step_func(function() {assert_array_equals(eventOrder, ["external script before adding iframe", "script in iframe"]); t.done();});
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/101.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/101.html
deleted file mode 100644
index b868f9a4470..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/101.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer script after initial onload event</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <iframe id="myFrame"></iframe>
-
- <script>
- var t = async_test();
- onload = t.step_func(
- function() {
- var doc = document.getElementById("myFrame").contentDocument;
- var win = document.getElementById("myFrame").contentWindow;
- doc.open();
- doc.write("<title> scheduler: defer script after initial onload event</title><script src='testlib/testlib.js'><\/script><div id='log'>document.written content</div><script>log('inline script #1');<\/script><script src='scripts/include-1.js'><\/script><script defer src='scripts/include-2.js'><\/script>");
- doc.close();
- //Note that the *window* object has changed but the *global scope* of the script has not.
- var run_t = window.t.step_func(function() {
- if (!win.eventOrder || win.eventOrder.length != 3) {
- window.setTimeout(run_t, 100);
- return;
- }
- window.assert_array_equals(win.eventOrder, ['inline script #1', 'external script #1', 'external script #2']);
- window.t.done();
- });
- run_t();
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/102.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/102.html
deleted file mode 100644
index 439023833f4..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/102.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: defer script after initial onload event</title>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- onload = function() {
- document.open();
- document.write("<title> scheduler: defer script after initial onload event</title><script src='/resources/testharness.js'><\/script><script src='/resources/testharnessreport.js'><\/script><script src='testlib/testlib.js'><\/script><div id='log'>document.written content</div><script>var t = async_test(); log('inline script #1')<\/script><script src='scripts/include-1.js'><\/script><script async src='scripts/include-2.js'><\/script>");
- document.close();
- window.setTimeout(function() {
- window.t.step(function() {
- window.assert_any(window.assert_array_equals, window.eventOrder,
- [['inline script #1', 'external script #1', 'external script #2'],
- ['inline script #1', 'external script #2', 'external script #1']]);
- window.t.done();
- })},
- 1000);
- };
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/103.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/103.html
deleted file mode 100644
index f619472a4f1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/103.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing defer attribute at runtime</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="defer-script" defer src="scripts/include-2.js"></script>
- <script src="scripts/include-1.js"></script>
-
- <script>
- var t = async_test();
-
- t.step(function() {
- document.getElementById("defer-script").removeAttribute("defer");
- });
-
- var ran_defer_check = false;
-
- document.addEventListener("readystatechange", t.step_func(function () {
- if (document.readyState == "interactive") {
- ran_defer_check = true;
- assert_array_equals(eventOrder, ["external script #1"]);
- }
- }), false);
-
- addEventListener("load", t.step_func(function () {
- assert_true(ran_defer_check);
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/104.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/104.html
deleted file mode 100644
index 95a5a222378..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/104.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding defer attribute at runtime</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="defer-script" src="scripts/include-1.js"></script>
- <script src="scripts/include-2.js"></script>
-
- <script>
- var t = async_test();
-
- t.step(function() {
- document.getElementById("defer-script").setAttribute("defer", "defer");
- });
-
- var ran_defer_check = false;
-
- document.addEventListener("readystatechange", t.step_func(function () {
- if (document.readyState == "interactive") {
- ran_defer_check = true;
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- }
- }), false);
-
- addEventListener("load", t.step_func(function () {
- assert_true(ran_defer_check);
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/105.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/105.html
deleted file mode 100644
index 19be9e1d03c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/105.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: adding async attribute at runtime</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- var t = async_test();
-
- var sources = ["scripts/include-1.js?pipe=trickle(d2)",
- "scripts/include-2.js"]
- var scripts = sources.map(function(x) {
- var script = document.createElement("script");
- script.src = x;
- script.async = false;
- document.body.appendChild(script);
- return script;
- });
- scripts[0].async = true;
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-import.html
deleted file mode 100644
index 451e218ef74..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-import.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking defer scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script defer src="scripts/check-style-sheet.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html
deleted file mode 100644
index 704b880bcfb..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking defer scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script defer src="scripts/check-style-sheet.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-import.html
deleted file mode 100644
index 4fe526a2744..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-import.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking external parser-blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script src="scripts/check-style-sheet.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-import.html
deleted file mode 100644
index ea873746e0c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-import.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking external module scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script src="scripts/check-style-sheet.js" type="module"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-noimport.html
deleted file mode 100644
index 71c59fb4d60..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-module-noimport.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking external module scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script src="scripts/check-style-sheet.js" type="module"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-noimport.html
deleted file mode 100644
index 3694481b86a..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-external-noimport.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking external parser-blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script src="scripts/check-style-sheet.js"></script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import-xhtml.xhtml b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import-xhtml.xhtml
deleted file mode 100644
index 3b2e8b52967..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import-xhtml.xhtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Stylesheet in XHTML HEAD with @import blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)" />
-</head>
-<body>
- <div id="test">Test</div>
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import.html
deleted file mode 100644
index b8afeda1357..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-import.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-import.html
deleted file mode 100644
index d3f02ffd19c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-import.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking module scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script type="module">
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-noimport.html
deleted file mode 100644
index 83cd29f2674..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-module-noimport.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking module scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script type="module">
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport-xhtml.xhtml b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport-xhtml.xhtml
deleted file mode 100644
index 1cae3c99653..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport-xhtml.xhtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Stylesheet in XHTML HEAD blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)" />
-</head>
-<body>
- <div id="test">Test</div>
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport.html
deleted file mode 100644
index bd8ec8633e4..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/106-noimport.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-import.html
deleted file mode 100644
index 0b572b07243..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-import.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking scripts document.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <!-- this stylesheet blocks scripts -->
- <script>
- test(function() {
- document.write("<link rel='stylesheet' href='css/import.css?pipe=trickle(d2)'>");
- // note that the pass condition here is not per spec (but does match implementations) as of 2012-06-26
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "static");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-noimport.html
deleted file mode 100644
index ce57d1f1c52..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/107-noimport.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: stylesheets blocking scripts document.write</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
-
- <!-- this stylesheet blocks scripts -->
- <script>
- test(function() {
- document.write("<link rel='stylesheet' href='css/background.css?pipe=trickle(d2)'>");
- // note that the pass condition here is not per spec (but does match implementations) as of 2012-06-26
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "static");
- });
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/108.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/108.html
deleted file mode 100644
index 79be9721d22..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/108.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: javascript URL in iframe</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">Not tested</div>
- <script>
- var t = async_test();
- var iframe_onload = false;
-
- t.step(function() {
- log('inline script #1');
- document.write("<iframe src='javascript:void(top.log(&quot;iframe script #1&quot;));'></iframe>");
- log('inline script #2')
- })
-
- onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "iframe script #1"]);
- t.done();
- });
- </script>
-</body>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/109.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/109.html
deleted file mode 100644
index d103ffcbd75..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/109.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: javascript URL in iframe, src set via DOM</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">Not tested</div>
- <script>
- var t = async_test();
-
- t.step(function() {
- var iframe_onload = false;
- log("inline script #1");
- var iframe = document.createElement("iframe");
- iframe.src = "javascript:void(top.log('JS URL'));";
- log("inline script #2");
- iframe.onload = function () { log("iframe onload") };
- document.body.appendChild(iframe);
- log("inline script #3");
- })
-
- onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3", "JS URL", "iframe onload"]);
- t.done();
- });
- </script>
-</body>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/110.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/110.html
deleted file mode 100644
index 5affb9ed231..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/110.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing defer script at runtime</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="defer-script" defer src="scripts/include-2.js"></script>
- <script src="scripts/include-1.js"></script>
-
- <script>
- var t = async_test();
-
- t.step(function() {
- var s = document.getElementById("defer-script");
- s.parentNode.removeChild(s);
- });
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/111.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/111.html
deleted file mode 100644
index c932a7b95c2..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/111.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing async attribute at runtime</title>
- <meta name="timeout" content="long">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="async-script" async src="scripts/include-2.js?pipe=trickle(d3)"></script>
-
- <script>
- var t = async_test();
-
- t.step(function() {
- document.getElementById("async-script").removeAttribute("async");
- var s = document.createElement("script");
- s.async = false;
- s.src = "scripts/include-1.js";
- document.body.appendChild(s);
- });
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/112.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/112.html
deleted file mode 100644
index a0cc647e0d0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/112.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: removing async attribute at runtime, script also has defer attribute</title>
- <meta name="timeout" content="long">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="async-script" async defer src="scripts/include-1.js?pipe=trickle(d3)"></script>
-
- <script>
- var t = async_test();
- document.getElementById("async-script").removeAttribute("async");
-
- addEventListener("DOMContentLoaded", t.step_func(function () {
- assert_array_equals(eventOrder, []);
- }), false);
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1"]);
- t.done();
- }), false);
-
- </script>
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/113.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/113.html
deleted file mode 100644
index 32740be37e1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/113.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: Altering DOM using innerHTML during parse </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script>
- var t = async_test();
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2"]);
- t.done();
- }), false);
-
- </script>
- <div id="container">
- <script>t.step(function() {
- log("inline script #1");
- document.getElementById("container").innerHTML = "";
- });
- </script>
- <script>t.step(function() {log("inline script #2")});</script>
- </div>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/114.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/114.html
deleted file mode 100644
index ce3733208b3..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/114.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: Changing src of defer script before it runs </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="defer-script" defer src="scripts/include-1.js"></script>
-
- <script>
- var t = async_test();
-
- document.getElementById("defer-script").src = "scripts/include-2.js"
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1"]);
- t.done();
- }), false);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/115.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/115.html
deleted file mode 100644
index 6234e02020c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/115.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> scheduler: Removing src of defer script before it runs </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
- <div id="test"></div>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-
- <script id="defer-script" defer src="scripts/include-1.js">t.step(function() {assert_unreached()})</script>
-
- <script>
- var t = async_test();
-
- document.getElementById("defer-script").removeAttribute("src");
-
- addEventListener("load", t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1"]);
- t.done();
- }), false);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/116.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/116.html
deleted file mode 100644
index 62da3988685..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/116.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: adding script to head of frameset document</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
- <script>
- // add a script that looks for document.body as first child of HEAD
- testlib.addScript('',{src:'scripts/find-body.js'},document.getElementsByTagName('head')[0], true );
- var div = document.createElement("div");
- div.id = "log";
- var t = async_test();
- function test() {
- if(!(window.findBodyLoaded)) {
- return setTimeout(t.step_func(test),200);
- }
- document.body.appendChild(div);
- assert_array_equals(eventOrder, ['document.body: <FRAMESET>']);
- t.done();
- }
- onload = t.step_func(test)
- </script>
-</head>
-<frameset>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/117.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/117.html
deleted file mode 100644
index 46a9900c94d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/117.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: inline script created with createContextualFragment</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
- <div id="log"></div>
- <script>
- log('inline script #1');
- var t = async_test();
-
- t.step(function() {
- var range = document.createRange();
- var fragment = range.createContextualFragment("<script>log('fragment script #1')<\/script>");
- document.body.appendChild(fragment.firstChild);
- });
-
- function test() {
- assert_array_equals(eventOrder, ['inline script #1', 'fragment script #1', 'end inline script #1']);
- t.done();
- }
- onload = t.step_func(test)
- log('end inline script #1');
- </script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/118.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/118.html
deleted file mode 100644
index e002ea96011..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/118.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external script created with createContextualFragment</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
- <div id="log"></div>
- <script>
- log('inline script #1');
- var t = async_test();
-
- t.step(function() {
- var range = document.createRange();
- var fragment = range.createContextualFragment("<script src='scripts/include-1.js'><\/script>");
- document.body.appendChild(fragment.firstChild);
- });
-
- addEventListener("load", t.step_func(function() {
- assert_array_equals(eventOrder, ['inline script #1', 'end inline script #1', 'external script #1']);
- t.done();
- }), false);
-
- log('end inline script #1');
- </script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/119.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/119.html
deleted file mode 100644
index d1ed8230934..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/119.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external defer script created with createContextualFragment</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log"></div>
- <script>
- log('inline script #1');
- var t = async_test();
-
- t.step(function () {
- var range = document.createRange();
- var fragment = range.createContextualFragment("<script defer src='scripts/include-1.js?pipe=trickle(d1)'><\/script>");
- document.body.appendChild(fragment.firstChild);
- });
-
- addEventListener("DOMContentLoaded", t.step_func(function () {
- assert_array_equals(eventOrder, ['inline script #1', 'end inline script #1']);
- }));
-
- addEventListener("load", t.step_func_done(function () {
- assert_array_equals(eventOrder, ['inline script #1', 'end inline script #1', 'external script #1']);
- }));
-
- log('end inline script #1');
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/120.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/120.html
deleted file mode 100644
index 2cfe5221ddb..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/120.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: script created without a window </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-
- var doc = document.implementation.createHTMLDocument("");
- doc.write("<script>t.step(function() {assert_unreached()})<\/script>");
-
- document.body.appendChild(doc.head.firstChild);
-
- onload = function() {t.done()}
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/121.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/121.html
deleted file mode 100644
index d6de27025fc..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/121.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain">t.step(function() {assert_unreached()}</script>
-<script>
-t.step(function() {
- document.getElementById("test").removeAttribute("type");
- setTimeout(t.step_func(function() {t.done()}), 100);
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/122.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/122.html
deleted file mode 100644
index a8994c6aebb..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/122.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute and adding/removing external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain" src="scripts/include-1.js?pipe=trickle(d1)"></script>
-<script>
-t.step(function() {
- var script = document.getElementById("test");
- script.removeAttribute("type");
- var marker = document.createElement("script");
- marker.src = "scripts/include-2.js?pipe=trickle(d2)";
- marker.async = false;
- script.parentNode.appendChild(marker);
- script.parentNode.appendChild(script);
- test(function() {assert_true(script.async)}, "Reinserted script async IDL attribute");
-});
-onload = t.step_func(function () {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/123.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/123.html
deleted file mode 100644
index dc145eb550b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/123.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute and adding/removing external script with async=false </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain" src="scripts/include-2.js?pipe=trickle(d1)"></script>
-<script>
-t.step(function() {
- var script = document.getElementById("test");
- script.removeAttribute("type");
- script.async = false;
- var marker = document.createElement("script");
- marker.src = "scripts/include-1.js?pipe=trickle(d2)";
- marker.async = false;
- script.parentNode.appendChild(marker);
- script.parentNode.appendChild(script);
-});
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/124.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/124.html
deleted file mode 100644
index 5c7208dfde5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/124.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute and changing script data inline script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain">t.step(function() {log("inline script #1")});</script>
-<script>
-t.step(function() {
- log("inline script #2");
- var script = document.getElementById("test");
- script.removeAttribute("type");
- script.appendChild(document.createTextNode(""));
- log("end inline script #2");
-});
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #2", "inline script #1", "end inline script #2"]);
- t.done();
-})
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/125.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/125.html
deleted file mode 100644
index 5074f2a107b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/125.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute and changing script data external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain" src="scripts/include-1.js?pipe=trickle(d1)"></script>
-<script>
-t.step(function() {
- var script = document.getElementById("test");
- script.removeAttribute("type");
- var marker = document.createElement("script");
- marker.src = "scripts/include-2.js?pipe=trickle(d2)";
- marker.async = false;
- script.parentNode.appendChild(marker);
- script.appendChild(document.createTextNode(""));
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/126.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/126.html
deleted file mode 100644
index 1b2bb176348..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/126.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: altering the type attribute and changing script data external script async=false </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test" type="text/plain" src="scripts/include-2.js"></script>
-<script>
-t.step(function() {
- var script = document.getElementById("test");
- script.removeAttribute("type");
- script.async = false;
- var marker = document.createElement("script");
- marker.src = "scripts/include-1.js?pipe=trickle(d2)";
- marker.async = false;
- script.parentNode.appendChild(marker);
- script.appendChild(document.createTextNode(""));
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/127.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/127.html
deleted file mode 100644
index 149078a327e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/127.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: appending non-text children to script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test"></script>
-<script>
-t.step(function() {
- log("inline script #1");
- var script = document.getElementById("test");
-
- var frag = document.createDocumentFragment();
- var div = document.createElement("div");
-
- div.textContent = "assert_unreached();"
- frag.appendChild(document.createTextNode("t.step(function() {log('inline script #2');\n"));
- frag.appendChild(div);
- frag.appendChild(document.createTextNode("log('end inline script #2');})"));
-
- script.appendChild(frag);
- log("end inline script #1");
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "end inline script #2", "end inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/128.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/128.html
deleted file mode 100644
index 39ec24f6816..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/128.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: appending script element to script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test"></script>
-<script>
-t.step(function() {
- log("inline script #1");
- var script = document.getElementById("test");
-
- var frag = document.createDocumentFragment();
- var inner_script = document.createElement("script");
-
- inner_script.textContent = "t.step(function() {log('inline script #3');});"
- frag.appendChild(document.createTextNode("t.step(function() {log('inline script #2');\n"));
- frag.appendChild(inner_script);
- frag.appendChild(document.createTextNode("log('end inline script #2');})"));
-
- script.appendChild(frag);
- log("end inline script #1");
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #3", "inline script #2", "end inline script #2", "end inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/129.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/129.html
deleted file mode 100644
index 8c12735677b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/129.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: appending multiple script elements</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<div id="container"></div>
-<script>
-t.step(function() {
- log("inline script #1");
-
- var frag = document.createDocumentFragment();
-
- scripts = ["2", "3", "4"].map(function(x) {
- var s = document.createElement("script");
- s.textContent = "t.step(function() {log('inline script #" + x + "')});";
- return s
- });
-
-
- frag.appendChild(scripts[0]);
- var div = document.createElement(div);
- div.appendChild(scripts[1]);
- frag.appendChild(div);
- frag.appendChild(scripts[2]);
-
- document.getElementById("container").appendChild(frag);
- log("end inline script #1");
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3", "inline script #4", "end inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/130.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/130.html
deleted file mode 100644
index c6643d9fdf0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/130.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: appending external script element to script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<script id="test"></script>
-<script>
-t.step(function() {
- log("inline script #1");
- var script = document.getElementById("test");
-
- var frag = document.createDocumentFragment();
- var inner_script = document.createElement("script");
-
- inner_script.src = "scripts/include-1.js?pipe=trickle(d1)";
- frag.appendChild(document.createTextNode("t.step(function() {log('inline script #2');\n"));
- frag.appendChild(inner_script);
- frag.appendChild(document.createTextNode("log('end inline script #2');})"));
-
- script.appendChild(frag);
- log("end inline script #1");
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "end inline script #2", "end inline script #1", "external script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/131.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/131.html
deleted file mode 100644
index 541483ed6bd..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/131.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: inline svg script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
- log("inline script #1")
-</script>
-<svg>
-<script>log("inline script #2")</script>
-</svg>
-<script>
-log("inline script #3");
-t.step(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/132.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/132.html
deleted file mode 100644
index 3edb9595941..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/132.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external svg script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
- log("inline script #1")
-</script>
-<svg>
-<script xlink:href="scripts/include-1.js"></script>
-</svg>
-<script>
-log("inline script #2");
-t.step(function() {
- assert_array_equals(eventOrder, ["inline script #1", "external script #1", "inline script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/133.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/133.html
deleted file mode 100644
index e6b327f7094..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/133.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: inline HTML script added by SVG script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
- log("inline script #1")
-</script>
-<svg>
-<script>
-log("inline script #2")
-var s = document.createElement("script");
-s.textContent = "log('inline script #3');";
-document.getElementsByTagName("svg")[0].appendChild(s);
-log("end inline script #2");
-</script>
-</svg>
-<script>
-log("inline script #4");
-t.step(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3",
- "end inline script #2", "inline script #4"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/134.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/134.html
deleted file mode 100644
index bb2ad4f66b4..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/134.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external HTML script added by SVG script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
- log("inline script #1")
-</script>
-<svg>
-<script>
-log("inline script #2")
-var s = document.createElement("script");
-s.src = "scripts/include-1.js"
-document.getElementsByTagName("svg")[0].appendChild(s);
-log("end inline script #2");
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2",
- "end inline script #2", "external script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/135.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/135.html
deleted file mode 100644
index dd8b8952184..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/135.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: external SVG script added by SVG script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
- log("inline script #1")
-</script>
-<svg>
-<script>
-log("inline script #2")
-var s = document.createElementNS("http://www.w3.org/2000/svg", "script");
-s.setAttributeNS("http://www.w3.org/1999/xlink", "href", "scripts/include-1.js");
-document.getElementsByTagName("svg")[0].appendChild(s);
-log("end inline script #2");
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2",
- "end inline script #2", "external script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/136.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/136.html
deleted file mode 100644
index b08a8b97989..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/136.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: DOM added external SVG script, force-async? </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
-
-var s1 = document.createElement("script");
-s1.src = "scripts/include-1.js";
-s1.async = false;
-
-var s = document.createElementNS("http://www.w3.org/2000/svg", "script");
-s.setAttributeNS("http://www.w3.org/1999/xlink", "href", "scripts/include-2.js?pipe=trickle(d2)");
-
-document.getElementsByTagName("svg")[0].appendChild(s);
-document.getElementsByTagName("svg")[0].appendChild(s1);
-
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- <!-- assumes that the SVg script should be async -->
- assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/137.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/137.html
deleted file mode 100644
index 35a49b806d9..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/137.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script empty xlink:href</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script xlink:href="">
-t.step(function() {assert_unreached()});
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/138.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/138.html
deleted file mode 100644
index 0ff25471e0f..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/138.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script nested inlines</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
-t.step(function() {
-log("inline script #2");
-var a = {
- <script>
- t.step(function() {log("inline script #1")})
- </script>
-a:1}
-log("end inline script #2");
-});
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "end inline script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/139.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/139.html
deleted file mode 100644
index 7bb703d8a2c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/139.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script nested external in inline</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
-t.step(function() {
-log("inline script #1");
-var a = {
- <script xlink:href="scripts/include-1.js">
- t.step(function() {assert_unreached()})
- </script>
-a:1}
-log("end inline script #1");
-});
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["external script #1", "inline script #1", "end inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/140.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/140.html
deleted file mode 100644
index 9b54d09d58d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/140.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script nested inline in external</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script xlink:href="scripts/include-1.js">
- <script>
- t.step(function() {log("inline script #1")});
- </script>
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "external script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/141.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/141.html
deleted file mode 100644
index 54aa3f3686e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/141.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG inline script that document.writes inline script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
- t.step(function() {
- log('inline script #1');
- document.write("<" + "script>t.step(function() {log('inline script #2')})<" + "/script>");
- log('end inline script #1');
- });
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "end inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/142.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/142.html
deleted file mode 100644
index d314eddb906..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/142.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG inline script that document.writes external script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
- t.step(function() {
- log('inline script #1');
- document.write("<" + "script xlink:href='scripts/include-1.js'><" + "/script>");
- log('end inline script #1');
- });
-</script>
-<script>t.step(function() {log("inline script #2")});</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "end inline script #1", "external script #1", "inline script #2"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/143.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/143.html
deleted file mode 100644
index a0d9012f687..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/143.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG nested inline script that document.writes inline script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script>
- t.step(function() {
- log('inline script #3');
- });
- <script>
- log("inline script #1")
- document.write("<" + "script>t.step(function() {log('inline script #2')})<" + "/script><" + "/script>");
- </script>
- t.step(function() {
- assert_unreached():
- });
-</script>
-</svg>
-<script>
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/144.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/144.html
deleted file mode 100644
index 3962c4d6923..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/144.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG inline script changing the type attribute </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script type="text/plain">
-t.step(function() {assert_unreached()});
-</script>
-</svg>
-<script>
-t.step(function() {
- var s = document.querySelector("svg > script");
- s.textContent = "t.step(function() {log('inline script #1')})";
- s.type = "";
- s.parentNode.appendChild(s);
-});
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/145.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/145.html
deleted file mode 100644
index 9e2d73bafcd..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/145.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG inline script adding text to empty script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>
- var t = async_test();
-</script>
-<svg>
-<script></script>
-</svg>
-<script>
-t.step(function() {
- var s = document.querySelector("svg > script");
- s.textContent = "t.step(function() {log('inline script #1')})";
-});
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146-href.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146-href.html
deleted file mode 100644
index 6c0869db541..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146-href.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script adding src attribute </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>var t = async_test();</script>
-<svg>
-<script></script>
-</svg>
-<script>
-t.step(function() {
- var s = document.querySelector("svg > script");
- s.setAttribute("href", "scripts/include-1.js");
-});
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["external script #1"]);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146.html
deleted file mode 100644
index 333ac3fa0fd..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/146.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: SVG script adding src attribute </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<div id="log"></div>
-<script>var t = async_test();</script>
-<svg>
-<script></script>
-</svg>
-<script>
-t.step(function() {
- var s = document.querySelector("svg > script");
- s.src = "scripts/include-1.js";
-});
-onload = t.step_func(function() {
- // SVG <script> element uses href attribute, so src attribute is ignored.
- assert_array_equals(eventOrder, []);
- t.done();
-});
-</script>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/147.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/147.html
deleted file mode 100644
index 07dc4d97c96..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/147.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: insert multiple inline scripts; first script moves subsequent scripts </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-var t = async_test();
-</script>
-<div id="container"></div>
-<script>
-t.step(function() {
- log("inline script #1");
- var container = document.getElementById("container");
-
- var frag = document.createDocumentFragment();
- var frag_script_1 = document.createElement("script");
- var frag_script_2 = document.createElement("script");
- frag_script_2.id = "movee";
- var frag_script_3 = document.createElement("script");
-
- frag_script_1.textContent = "t.step(function() {log('inline script #2'); var s = document.getElementById('movee'); s.parentNode.appendChild(s)});";
- frag_script_2.textContent = "t.step(function() {log('inline script #3');})";
- frag_script_3.textContent = "t.step(function() {log('inline script #4');})";
-
- [frag_script_1, frag_script_2, frag_script_3].forEach(function(x) {frag.appendChild(x)});
-
- container.appendChild(frag);
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3", "inline script #4"]);
- t.done();
-});
-</script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/148.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/148.html
deleted file mode 100644
index e2da8e8f0b1..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/148.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: insert multiple inline scripts; first script deletes subsequent script </title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-var t = async_test();
-</script>
-<div id="container"></div>
-<script>
-t.step(function() {
- log("inline script #1");
- var container = document.getElementById("container");
-
- var frag = document.createDocumentFragment();
- var frag_script_1 = document.createElement("script");
- var frag_script_2 = document.createElement("script");
- frag_script_2.id = "delete";
- var frag_script_3 = document.createElement("script");
-
- frag_script_1.textContent = "t.step(function() {log('inline script #2'); var s = document.getElementById('delete'); s.parentNode.removeChild(s)});";
- frag_script_2.textContent = "t.step(function() {log('inline script #3');})";
- frag_script_3.textContent = "t.step(function() {log('inline script #4');})";
-
- [frag_script_1, frag_script_2, frag_script_3].forEach(function(x) {frag.appendChild(x)});
-
- container.appendChild(frag);
-});
-
-onload = t.step_func(function() {
- assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "inline script #3", "inline script #4"]);
- t.done();
-});
-</script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/149.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/149.html
deleted file mode 100644
index 40594d80488..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/149.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>scheduler: event/for attribute on script</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-
-attributes = [
- {for:"window", event:"onload()", expect:true},
- {for:"window", event:"onload", expect:true},
- {for:" WINdow\t\n", event:"ONload\t\n", expect:true},
- {for:"window", event:"load", expect:false},
- {for:"window", event:"onpageshow", expect:false},
- {for:"document", event:"onload", expect:false},
-]
-
-function test_maker(array_name) {
- return function(x, i) {
- var title = "for='" + x.for + "' event='" + x.event + "' " + array_name.replace("_", " ") + " " + (x.expect ? "executes immediately" : "does not execute");
- script_content = "var d =" + array_name + "[" + i + "];"
- script_content += x.expect?"d[1].step(function() {d[3] = true});":"d[1].step(function() {assert_unreached()});"
- return [x, async_test(title), script_content, false];
- }
-}
-
-parser_inserted = attributes.map(test_maker("parser_inserted"));
-dom_inserted = attributes.map(test_maker("dom_inserted"));
-
-parser_inserted.forEach(function(x) {
- var d = x[0];
- document.write("<script for='" + d.for + "' event='" + d.event + "'>" + x[2] + "<\/script>");
-});
-
-dom_inserted.forEach(function(x) {
- var d = x[0];
- var s = document.createElement("script");
- s.setAttribute("event", d.event);
- s.setAttribute("for", d.for);
- s.textContent = x[2];
- document.body.appendChild(s);
-});
-</script>
-
-<script>
-var all_tests = parser_inserted.concat(dom_inserted);
-
-all_tests.filter(function(x) {return x[0]["expect"]}).forEach(function(x) {var t = x[1]; t.step(function() {assert_true(x[3])});})
-
-onload = function() {
- all_tests.forEach(function(x) {var t = x[1]; t.step(function() {t.done()})});
-}
-</script>
-
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import-xhtml.xhtml b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import-xhtml.xhtml
deleted file mode 100644
index d6144795db6..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import-xhtml.xhtml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Stylesheet in XHTML BODY with @import blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="log">FAILED (This TC requires JavaScript enabled)</div>
- <div id="test">Test</div>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)" />
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import.html
deleted file mode 100644
index 40223ed104c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-import.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Stylesheet in BODY with @import blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="test">Test</div>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)">
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport-xhtml.xhtml b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport-xhtml.xhtml
deleted file mode 100644
index fa587a2ddba..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport-xhtml.xhtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Stylesheet in XHTML BODY blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="test">Test</div>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)" />
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport.html
deleted file mode 100644
index b5829d4da5d..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/150-noimport.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Stylesheet in BODY blocking scripts</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="testlib/testlib.js"></script>
-</head>
-<body>
- <div id="test">Test</div>
- <!-- this stylesheet blocks scripts -->
- <link rel="stylesheet" href="css/background.css?pipe=trickle(d2)">
- <script>
- test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
- });
- </script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/background.css b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/background.css
deleted file mode 100644
index 86a155b811a..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/background.css
+++ /dev/null
@@ -1 +0,0 @@
-#test {position:fixed} \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/import.css b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/import.css
deleted file mode 100644
index d1664c29a14..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/css/import.css
+++ /dev/null
@@ -1 +0,0 @@
-@import url("background.css") \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/non-external-no-import.tentative.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/non-external-no-import.tentative.html
deleted file mode 100644
index 50836e0d7be..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/non-external-no-import.tentative.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Module scripts with no imports always execute asynchronously</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <link rel="help" href="https://github.com/whatwg/html/issues/3746">
-</head>
-<body>
-<script>
-async_test(t => {
- window.results = [];
- window.logExecution = msg => window.results.push(msg);
-
- const script = document.createElement('script');
- script.type = 'module';
- script.textContent = "window.logExecution('module')";
- document.body.append(script);
- window.logExecution('classic');
-
- window.onload = t.step_func_done(e => {
- assert_array_equals(window.results, ['classic', 'module']);
- });
-});
-</script>
-</body>
-</html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld-postMessage.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld-postMessage.html
deleted file mode 100644
index 2ed8731ceb5..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld-postMessage.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> TC component </title>
-</head>
-<body>
-
- <p>This page should appear in popup or frame</p>
-
- <script type="text/javascript">
- var target = opener || top;
- var id = location.search?' '+location.search.substring(1) : '';
- target.log('frame/popup script'+id);
- window.onload=function(){
- target.log('load event inside frame/popup script'+id);
- target.postMessage('msg evt frame/popup script'+id, '*');
- }
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld.html
deleted file mode 100644
index 271bc8f569e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title> TC component </title>
-</head>
-<body>
-
- <p>This page should appear in popup or frame</p>
-
- <script type="text/javascript">
- var target = top || opener;
- var id = location.search?' '+parseInt(location.search.substring(1)) : '';
- target.log('frame/popup script'+id);
- </script>
-
-</body></html>
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/check-style-sheet.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/check-style-sheet.js
deleted file mode 100644
index cbab154f5ae..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/check-style-sheet.js
+++ /dev/null
@@ -1,4 +0,0 @@
-test(function() {
- assert_equals(getComputedStyle(document.getElementById("test")).position,
- "fixed");
-});
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/count-script-tags.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/count-script-tags.js
deleted file mode 100644
index 8fba4ecb3c0..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/count-script-tags.js
+++ /dev/null
@@ -1 +0,0 @@
-log('script tags in DOM: '+document.getElementsByTagName('script').length); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-body.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-body.js
deleted file mode 100644
index 1ce198f13ed..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-body.js
+++ /dev/null
@@ -1,4 +0,0 @@
-log(
- 'document.body: ' +
- (document.body ? '<' + document.body.localName.toUpperCase() + '>' : null));
-var findBodyLoaded=true;
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-foo.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-foo.js
deleted file mode 100644
index 52d0ec91cb4..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/find-foo.js
+++ /dev/null
@@ -1,2 +0,0 @@
-log('found #foo element: ' + ( document.getElementById('foo') ? 'YES' : 'NO' ));
-var findFooLoaded=true; \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-1.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-1.js
deleted file mode 100644
index 8ff291ad57e..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-1.js
+++ /dev/null
@@ -1 +0,0 @@
-log('external script #1'); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-10.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-10.js
deleted file mode 100644
index 8dc770ddc05..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-10.js
+++ /dev/null
@@ -1 +0,0 @@
-document.write("<script src='scripts/include-9.js?pipe=trickle(d2)' defer></script>");
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-11.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-11.js
deleted file mode 100644
index 016913c4b80..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-11.js
+++ /dev/null
@@ -1,4 +0,0 @@
-log("external script before adding iframe");
-var iframe = document.createElement("iframe");
-iframe.srcdoc = "<script>parent.log('script in iframe')</script>"
-document.body.appendChild(iframe);
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-2.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-2.js
deleted file mode 100644
index 31319423afd..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-2.js
+++ /dev/null
@@ -1 +0,0 @@
-log('external script #2'); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-3.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-3.js
deleted file mode 100644
index 53352e0f83c..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-3.js
+++ /dev/null
@@ -1,3 +0,0 @@
-log('external script before doc write');
-document.write( '<script>log(\'document.write external script\');</script>');
-log('external script after doc write'); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-4.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-4.js
deleted file mode 100644
index 0597a226242..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-4.js
+++ /dev/null
@@ -1,3 +0,0 @@
-log('include-4 before doc write');
-document.write( '<script src="scripts/include-3.js"></script>');
-log('include-4 after doc write'); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-5.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-5.js
deleted file mode 100644
index 52952d73791..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-5.js
+++ /dev/null
@@ -1,7 +0,0 @@
-log('include-5 before removing scripts');
-var scripts=[].slice.call(document.getElementsByTagName('script'), 3);
-for(var i = 0; i < scripts.length; i++) {
- var s = scripts[i];
- s.parentNode.removeChild(s);
-}
-log('include-5 after removing scripts');
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-6.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-6.js
deleted file mode 100644
index 77da2af2329..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-6.js
+++ /dev/null
@@ -1,6 +0,0 @@
-top.log(
- 'external script (#foo found? ' +
- (document.getElementById('foo') ? 'YES' : 'NO' ) +
- ')'
-);
-top.include6Loaded=true; \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-7.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-7.js
deleted file mode 100644
index 57c55080158..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-7.js
+++ /dev/null
@@ -1 +0,0 @@
-log('external script #7'); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-8.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-8.js
deleted file mode 100644
index 960f2129feb..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-8.js
+++ /dev/null
@@ -1,4 +0,0 @@
-log("external script #8");
-var s = document.createElement("script")
-s.src='scripts/include-9.js?pipe=trickle(d2)'
-document.body.appendChild(s);
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-9.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-9.js
deleted file mode 100644
index 9042882024b..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/scripts/include-9.js
+++ /dev/null
@@ -1,2 +0,0 @@
-log("external script #9");
-test(); \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/testlib/testlib.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/testlib/testlib.js
deleted file mode 100644
index a6fd39426b9..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/execution-timing/testlib/testlib.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-* Utility functions for script scheduler test
-*/
-(function(){ /* namespace hiding local variables like arOrderOfAllEvents from global scope */
- window.testlib = {};
- window.eventOrder = [];
- var arNumberOfScriptsParsedPerEvent=[];
- window.log = function (str){
- eventOrder.push(str);
- arNumberOfScriptsParsedPerEvent.push(document.getElementsByTagName('script').length);
- }
-
- window.testlib.addScript = function(source, attributes, parent, firstInParent,funcPrepare) {
- try{
- parent = parent||document.body;
- var script = document.createElement('script');
- if(funcPrepare) {
- funcPrepare(script);
- }
- if(source)script.appendChild( document.createTextNode(source) );
- for( var name in attributes){
- if(/^on/i.test(name)) {
- script[name] = attributes[name];
- } else {
- script.setAttribute(name, attributes[name]);
- }
- }
- if (firstInParent && parent.firstChild) {
- parent.insertBefore(script, parent.firstChild);
- } else {
- parent.appendChild(script);
- }
- } catch(e) {
- log('ERROR when adding script to DOM!');
- alert(e);
- }
- return script;
- }
-
- window.testlib.urlParam = function(relativeURL) {
- return location.href.replace( /\d*\.html$/, relativeURL);
- }
-})();