From eccee3ede4f1debb1ad5bd34e6122bcb2cadce48 Mon Sep 17 00:00:00 2001 From: hiroshige-g Date: Wed, 27 May 2020 23:54:19 +0900 Subject: [PATCH] Test whether parse document check is done in #prepare-a-script (#23162) This PR adds empty-src tests, which moves diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-fetch-error-external-module.html index 79a36234ed863e..09ee1490c1b6c6 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-classic.html index e940df58c5ba20..477abd32cf6796 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-module.html index 40b88a47246119..9da22764086e96 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-classic.html index 22aaf05ada3ca2..bc4deb6f170e60 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-module.html index c08d2807e37c0e..ff76954f9df608 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-createHTMLDocument-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-classic.html index 2f51bc64a42be1..768120e9d8f037 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-module.html index a423a5150a4d27..50dd80662dc8c1 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-classic.html index d689e03dad25b8..981a0682302325 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-module.html index f104bde62396a4..6debb4189ec09f 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-inline-classic.html index e2ea35eebbd412..53389f20db5270 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-parse-error-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-classic.html index c4f018187d30bd..9c4a12226a0bc9 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-module.html index 31243eb7a58012..0a0490cfc14b04 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-inline-classic.html index e0c9b6d08be4bf..932825709f0c26 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/after-prepare-iframe-success-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-classic.html index f67f90fa9bc1e0..444382ac20909f 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-module.html index 23399bcb1e15e4..e1a1f7c08f36ed 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-classic.html index 792873fa6e62ce..6bb5ebddbd29e3 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-module.html index 1b1f20190e30d8..10a6549f62d84d 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-classic.html index 41b358bf96bfff..28bd9359956ca0 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-module.html index d52210f2db5ede..e665a75629ab31 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-parse-error-inline-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-classic.html new file mode 100644 index 00000000000000..8ee0dd1de197dc --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-classic.html @@ -0,0 +1,14 @@ + + + +Moving script elements between documents + + + + + + + + diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module.html new file mode 100644 index 00000000000000..4791149c571cd5 --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module.html @@ -0,0 +1,14 @@ + + + +Moving script elements between documents + + + + + + + + diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-classic.html index f6a36234a1a4a9..3a3aceaf26ee6f 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-module.html index 2ba6e606aca9cc..c15b4fc77fd4e3 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-classic.html index d8b5018d8e79e1..576f4d468456ab 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-module.html index 4941ec96a38012..c84d61c89ad240 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-inline-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-classic.html index b8455144727d88..febf6fcc55a0af 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-module.html index 277f6a9200253e..f936260b8ce710 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-classic.html index 38dd5acb891843..870c900abf0595 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-module.html index ef28de29e7e36b..fb44a89df1047c 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-classic.html index fc9c1c051850f5..986e4fa3963072 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-module.html index d20595b755a924..3a3fc384794f03 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-parse-error-inline-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-classic.html new file mode 100644 index 00000000000000..4f03a9435812af --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-classic.html @@ -0,0 +1,14 @@ + + + +Moving script elements between documents + + + + + + + + diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-module.html new file mode 100644 index 00000000000000..a7bd42fd32fe22 --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-empty-src-module.html @@ -0,0 +1,14 @@ + + + +Moving script elements between documents + + + + + + + + diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-classic.html index 80e7d317878b00..08a8ac4afae2bd 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-module.html index 932d8d7d3b3600..b8c3f79feaed0a 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-classic.html index 9150714cf3f5ec..b639f6109d136f 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-module.html index a6191c0ede6a64..616e46310f6bf6 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-iframe-success-inline-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-classic.html index 150d1ef7e33183..745c62d8983726 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-module.html index 41d8f271b953a6..f6353a05fcbcf9 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-classic.html index 2fed35acf84d93..21099c3ff97b11 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-module.html index 34fe929185af04..2eb153acfe563a 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-classic.html index 7f7fb9a26570ec..88821826edb16c 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-module.html index 13a53f1c7c435e..f2a9d9574122c2 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-createHTMLDocument-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-classic.html index 81a822e8ec58ec..d96bfe0d505e43 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-module.html index 7c7f5306305a03..7e71bfbe158a77 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-fetch-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-classic.html index 45a95bc0fca966..757c879897e351 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-module.html index 3d2df395bd7989..6ec6c5970efa4e 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-inline-classic.html index 7875282087ac5f..c0b0f9d4047136 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-parse-error-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-classic.html index 6409e2cb829ff2..7955dbce627b75 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-module.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-module.html index fbe63beeba0f06..af17eb01f75b31 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-module.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-external-module.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-inline-classic.html b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-inline-classic.html index 4bd10a39d296f7..8a44e2feaf1df8 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-inline-classic.html +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/move-back-iframe-success-inline-classic.html @@ -3,7 +3,6 @@ Moving script elements between documents - diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/resources/moving-between-documents-helper.js b/html/semantics/scripting-1/the-script-element/moving-between-documents/resources/moving-between-documents-helper.js index 01fb366aa86f2d..de4af6ac10abf6 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/resources/moving-between-documents-helper.js +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/resources/moving-between-documents-helper.js @@ -30,10 +30,9 @@ function createDocument(documentType, result, inlineOrExternal, type, hasBlockin }); } -window.scriptErrorEventFired = false; window.didExecute = undefined; -// For a script, there are four associated Documents that can +// For a script, there are three associated Documents that can // potentially different: // // [1] script's parser document @@ -48,7 +47,7 @@ window.didExecute = undefined; // // This helper is for tests where [1]/[2]/[3] are different. -// In the spec, scripts are not executed only if [1]/[2]/[3] are all the same +// In the spec, scripts are executed only if [1]/[2]/[3] are all the same // (or [1] is null and [2]==[3]). // // A check for [1]==[2] is in #prepare-a-script and @@ -75,6 +74,11 @@ window.didExecute = undefined; // https://github.com/whatwg/html/issues/1349 // https://github.com/chrishtr/rendering/blob/master/stylesheet-loading-proposal.md // +// TODO(domfarolino): Remove the "parsing but moved back" tests, because if a +// """ % (type, result, random.random()) + elif inlineOrExternal == "empty-src": + time.sleep(1) + body += """ + + + """ % (type,) # // if readyToEvaluate is false, the script is probably # // wasn't blocked by stylesheets as expected. diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents/tools/generate.py b/html/semantics/scripting-1/the-script-element/moving-between-documents/tools/generate.py index 0612023fd4c970..80a655e821b8b0 100644 --- a/html/semantics/scripting-1/the-script-element/moving-between-documents/tools/generate.py +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents/tools/generate.py @@ -3,7 +3,6 @@ Moving script elements between documents - @@ -18,13 +17,35 @@ n = 0 for timing in ["before-prepare", "after-prepare", "move-back"]: for destType in ["iframe", "createHTMLDocument"]: - for result in ["fetch-error", "parse-error", "success"]: - for inlineOrExternal in ["inline", "external"]: + for inlineOrExternal in ["inline", "external", "empty-src"]: + for result in ["fetch-error", "parse-error", "success"]: for type in ["classic", "module"]: - # No fetch error for inline scripts. - if result == "fetch-error" and inlineOrExternal == "inline": + # The |inlineOrExternal| keyword creates a certain kind of script, + # and the |result| keyword can influence the generated script in + # different ways i.e., giving the script a parse-error, or creating + # a script that fails to load. When we're creating an inline script, + # it doesn't make sense to test the fetch-error case, so we ignore + # this combination, as the server will not react to it in any + # meaningful way. + if inlineOrExternal == "inline" and result == "fetch-error": continue + if inlineOrExternal == "empty-src": + # The "empty-src" tests aim to exercise #prepare-a-script step 26 + # substep 2, where the