Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: Source/core/testing/Internals.idl

Issue 1304093006: Add a new API for testing animated images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup tests Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/Internals.idl
diff --git a/Source/core/testing/Internals.idl b/Source/core/testing/Internals.idl
index 040bd7d78a209a3e1b57702f88ab0040924a2349..2b33134df5c83a52a161523bfd55f034258d6d17 100644
--- a/Source/core/testing/Internals.idl
+++ b/Source/core/testing/Internals.idl
@@ -78,6 +78,11 @@
// for testing whether animated images work properly.
[RaisesException] void advanceTimeForImage(Element image, double deltaTimeInSeconds);
+ // Advances an animated image. For BitmapImage (e.g., animated gifs) this
+ // will advance to the next frame. For SVGImage, this will trigger an
+ // animation update for CSS and advance the SMIL timeline by one frame.
+ [RaisesException] void advanceImageAnimation(Element image);
fs 2015/09/08 14:50:57 Maybe slap a TypeChecking=Interface on it too.
pdr. 2015/09/08 22:50:37 Slapped
+
[RaisesException, TypeChecking=Interface] Node nextSiblingInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node firstChildInComposedTree(Node node);
[RaisesException, TypeChecking=Interface] Node lastChildInComposedTree(Node node);

Powered by Google App Engine
This is Rietveld 408576698