| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <meta charset=utf-8> | |
| 3 <title>AnimationNode IDL tests</title> | |
| 4 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> | |
| 5 <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru"
> | |
| 6 <script src="../../../../resources/testharness.js"></script> | |
| 7 <script src="../../../../resources/testharnessreport.js"></script> | |
| 8 <script src="../../../../resources/WebIDLParser.js"></script> | |
| 9 <script src="../../../../resources/idlharness.js"></script> | |
| 10 <body> | |
| 11 <div id="log"></div> | |
| 12 <div id="target"></div> | |
| 13 <script type="text/plain" id="untested-IDL"> | |
| 14 interface AnimationPlayer { | |
| 15 }; | |
| 16 | |
| 17 interface AnimationTiming { | |
| 18 }; | |
| 19 | |
| 20 interface ComputedTimingProperties { | |
| 21 }; | |
| 22 | |
| 23 interface AnimationGroup { | |
| 24 }; | |
| 25 </script> | |
| 26 <script type="text/plain" id="AnimationNode-IDL"> | |
| 27 interface AnimationNode { | |
| 28 // Timing | |
| 29 readonly attribute AnimationTiming timing; | |
| 30 readonly attribute ComputedTimingProperties computedTiming; | |
| 31 | |
| 32 // Timing hierarchy | |
| 33 readonly attribute AnimationGroup? parent; | |
| 34 readonly attribute AnimationNode? previousSibling; | |
| 35 readonly attribute AnimationNode? nextSibling; | |
| 36 void before (AnimationNode... nodes); | |
| 37 void after (AnimationNode... nodes); | |
| 38 void replace (AnimationNode... nodes); | |
| 39 void remove (); | |
| 40 }; | |
| 41 </script> | |
| 42 <script> | |
| 43 'use strict'; | |
| 44 | |
| 45 var target = document.getElementById('target'); | |
| 46 var node = new Animation(target, [], 5); | |
| 47 | |
| 48 var idlArray = new IdlArray(); | |
| 49 idlArray.add_untested_idls(document.getElementById('untested-IDL').textContent); | |
| 50 idlArray.add_idls(document.getElementById('AnimationNode-IDL').textContent); | |
| 51 idlArray.add_objects( { AnimationNode: ['node'] } ); | |
| 52 idlArray.test(); | |
| 53 </script> | |
| 54 </body> | |
| OLD | NEW |