mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
Bug 1411806 - Tidy up Animation/idlharness.html test; r=hiro
MozReview-Commit-ID: 61tUueSIyfM --HG-- extra : rebase_source : 02e83117d62de1de9c2f8e7f8c1f4c65d3cfd97d
This commit is contained in:
parent
0b2314a827
commit
fe1625fc82
@ -1,11 +1,11 @@
|
||||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Animation interface automated IDL tests</title>
|
||||
<title>Animation IDL</title>
|
||||
<link rel="help" href="https://w3c.github.io/web-animations/#animation">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<script src="../../testcommon.js"></script>
|
||||
<div id="log"></div>
|
||||
<script type="text/plain" id="Animation-IDL">
|
||||
enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" };
|
||||
@ -34,18 +34,14 @@ interface Animation : EventTarget {
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(function(t) {
|
||||
const idlArray = new IdlArray();
|
||||
const idlArray = new IdlArray();
|
||||
|
||||
idlArray.add_untested_idls('interface AnimationTimeline {};');
|
||||
idlArray.add_untested_idls('interface EventHandler {};');
|
||||
idlArray.add_untested_idls('interface EventTarget {};');
|
||||
idlArray.add_idls(
|
||||
document.getElementById('Animation-IDL').textContent);
|
||||
idlArray.add_untested_idls('interface AnimationTimeline {};');
|
||||
idlArray.add_untested_idls('interface EventHandler {};');
|
||||
idlArray.add_untested_idls('interface EventTarget {};');
|
||||
idlArray.add_idls(document.getElementById('Animation-IDL').textContent);
|
||||
idlArray.add_objects( { Animation: ['new Animation()'] } );
|
||||
|
||||
// const animation = createDiv(t).animate(null);
|
||||
idlArray.add_objects( { Animation: ['new Animation()'] } );
|
||||
idlArray.test();
|
||||
});
|
||||
idlArray.test();
|
||||
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user