зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1484803 [wpt PR 12575] - Convert Scroll-linked Animations IDL test to use idl_test, a=testonly
Automatic update from web-platform-testsConvert Scroll-linked Animations IDL test to use idl_test (#12575) The current test is broken because of missing dependencies: https://staging.wpt.fyi/results/scroll-animations/idlharness.html?label=stable&sha=6aef6676d2 -- wpt-commits: eece8a17099ad0789532d570f916bcc3a0d17a67 wpt-pr: 12575
This commit is contained in:
Родитель
23b4eaa21b
Коммит
31cb719d06
|
@ -388869,9 +388869,9 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"scroll-animations/idlharness.html": [
|
||||
"scroll-animations/idlharness.window.js": [
|
||||
[
|
||||
"/scroll-animations/idlharness.html",
|
||||
"/scroll-animations/idlharness.window.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
|
@ -629550,8 +629550,8 @@
|
|||
"0123b6b0e333e7a487a7dfd6fba19e40ee691ca9",
|
||||
"support"
|
||||
],
|
||||
"scroll-animations/idlharness.html": [
|
||||
"82dd59c64e0844f43708424c3833e3c1c175f913",
|
||||
"scroll-animations/idlharness.window.js": [
|
||||
"90157580ce00716403346f369b1e25bba8db23c2",
|
||||
"testharness"
|
||||
],
|
||||
"secure-contexts/META.yml": [
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>scroll-animations IDL tests</title>
|
||||
<link rel="help" href="https://wicg.github.io/scroll-animations/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
promise_test(async () => {
|
||||
const idl = await fetch('/interfaces/scroll-animations.idl').then(r => r.text());
|
||||
const web = await fetch('/interfaces/web-animations.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(web);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.add_objects({
|
||||
ScrollTimeline: ['new ScrollTimeline()'],
|
||||
});
|
||||
idl_array.test();
|
||||
}, 'Test scroll-animations IDL implementation');
|
||||
</script>
|
||||
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['scroll-animations'],
|
||||
// The css-pseudo dependency shouldn't be necessary, but is:
|
||||
// https://github.com/web-platform-tests/wpt/issues/12574
|
||||
['web-animations', 'css-pseudo', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
ScrollTimeline: ['new ScrollTimeline()'],
|
||||
});
|
||||
}
|
||||
);
|
Загрузка…
Ссылка в новой задаче