mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
|
@ -17,12 +17,12 @@
|
|||
var t = async_test()
|
||||
|
||||
function test() {
|
||||
var script = createScript('data:text\/javascript,log("Script #1 ran")');
|
||||
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 #3 ran"); createScript(\'\', \'log("Script #4 ran")\')');
|
||||
var script3 = createScript('data:text\/javascript, log("Script %233 ran"); createScript(\'\', \'log("Script #4 ran")\')');
|
||||
if(script3) {
|
||||
head.removeChild(script3);
|
||||
}
|
||||
|
|
|
@ -20,4 +20,26 @@ test(() => {
|
|||
assert_equals(importMetaOnDependentModule.url,
|
||||
base + "/import-meta-dependent.js");
|
||||
}, "import.meta.url in a dependent external script");
|
||||
|
||||
import { importMetaOnRootModule as hashedImportMetaOnRootModule1,
|
||||
importMetaOnDependentModule as hashedImportMetaOnDependentModule1 }
|
||||
from "./import-meta-root.js#1";
|
||||
|
||||
import { importMetaOnRootModule as hashedImportMetaOnRootModule2,
|
||||
importMetaOnDependentModule as hashedImportMetaOnDependentModule2 }
|
||||
from "./import-meta-root.js#2";
|
||||
|
||||
test(() => {
|
||||
assert_equals(hashedImportMetaOnRootModule1.url,
|
||||
base + "/import-meta-root.js#1");
|
||||
assert_equals(hashedImportMetaOnRootModule2.url,
|
||||
base + "/import-meta-root.js#2");
|
||||
|
||||
// Must not be affected
|
||||
assert_equals(hashedImportMetaOnDependentModule1.url,
|
||||
base + "/import-meta-dependent.js");
|
||||
assert_equals(hashedImportMetaOnDependentModule2.url,
|
||||
base + "/import-meta-dependent.js");
|
||||
}, "import.meta.url when importing the module with different fragments");
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue