зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411806 - Tidy up DocumentTimeline/idlharness.html test; r=hiro
There doesn't seem to be any need for the test() wrapper here (I've yet to find any other tests in web-platform-tests using it). MozReview-Commit-ID: y3FrMvK14j --HG-- extra : rebase_source : e1e5b8466a451f47d96bfe7c9c66e4b182515dc3
This commit is contained in:
Родитель
3217b3f4e8
Коммит
0b2314a827
|
@ -1,6 +1,7 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Web Animations API: DocumentTimeline tests</title>
|
||||
<title>DocumentTimeline IDL</title>
|
||||
<link rel="help" href="https://w3c.github.io/web-animations/#documenttimeline">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
|
@ -22,15 +23,14 @@ interface DocumentTimeline : AnimationTimeline {
|
|||
<script>
|
||||
'use strict';
|
||||
|
||||
var idlArray;
|
||||
test(function() {
|
||||
idlArray = new IdlArray();
|
||||
idlArray.add_idls(
|
||||
document.getElementById('AnimationTimeline-IDL').textContent);
|
||||
idlArray.add_idls(
|
||||
document.getElementById('DocumentTimeline-IDL').textContent);
|
||||
idlArray.add_objects( { DocumentTimeline: ['document.timeline'] } );
|
||||
});
|
||||
const idlArray = new IdlArray();
|
||||
|
||||
idlArray.add_idls(
|
||||
document.getElementById('AnimationTimeline-IDL').textContent);
|
||||
idlArray.add_idls(
|
||||
document.getElementById('DocumentTimeline-IDL').textContent);
|
||||
idlArray.add_objects( { DocumentTimeline: ['document.timeline'] } );
|
||||
|
||||
idlArray.test();
|
||||
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче