Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-node/idlharness.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-node/idlharness.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-node/idlharness.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d99a105e74f216f30308cdc508141a6ece2f3836 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-node/idlharness.html |
@@ -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/WebIDLParser.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> |