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:
Brian Birtles 2017-10-27 13:38:36 +09:00
Родитель 3217b3f4e8
Коммит 0b2314a827
1 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -1,6 +1,7 @@
<!doctype html> <!doctype html>
<meta charset=utf-8> <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/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script> <script src="/resources/WebIDLParser.js"></script>
@ -22,15 +23,14 @@ interface DocumentTimeline : AnimationTimeline {
<script> <script>
'use strict'; 'use strict';
var idlArray; const idlArray = new IdlArray();
test(function() {
idlArray = new IdlArray(); idlArray.add_idls(
idlArray.add_idls( document.getElementById('AnimationTimeline-IDL').textContent);
document.getElementById('AnimationTimeline-IDL').textContent); idlArray.add_idls(
idlArray.add_idls( document.getElementById('DocumentTimeline-IDL').textContent);
document.getElementById('DocumentTimeline-IDL').textContent); idlArray.add_objects( { DocumentTimeline: ['document.timeline'] } );
idlArray.add_objects( { DocumentTimeline: ['document.timeline'] } );
});
idlArray.test(); idlArray.test();
</script> </script>