mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,54 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>AnimationNode IDL tests</title>
|
||||
<link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
|
||||
<link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/webidl2/lib/webidl2.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<div id="target"></div>
|
||||
<script type="text/plain" id="untested-IDL">
|
||||
interface AnimationPlayer {
|
||||
};
|
||||
|
||||
interface AnimationTiming {
|
||||
};
|
||||
|
||||
interface ComputedTimingProperties {
|
||||
};
|
||||
|
||||
interface AnimationGroup {
|
||||
};
|
||||
</script>
|
||||
<script type="text/plain" id="AnimationNode-IDL">
|
||||
interface AnimationNode {
|
||||
// Timing
|
||||
readonly attribute AnimationTiming timing;
|
||||
readonly attribute ComputedTimingProperties computedTiming;
|
||||
|
||||
// Timing hierarchy
|
||||
readonly attribute AnimationGroup? parent;
|
||||
readonly attribute AnimationNode? previousSibling;
|
||||
readonly attribute AnimationNode? nextSibling;
|
||||
void before (AnimationNode... nodes);
|
||||
void after (AnimationNode... nodes);
|
||||
void replace (AnimationNode... nodes);
|
||||
void remove ();
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
var target = document.getElementById('target');
|
||||
var node = new Animation(target, [], 5);
|
||||
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls(document.getElementById('untested-IDL').textContent);
|
||||
idlArray.add_idls(document.getElementById('AnimationNode-IDL').textContent);
|
||||
idlArray.add_objects( { AnimationNode: ['node'] } );
|
||||
idlArray.test();
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue