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

Unified Diff: LayoutTests/web-animations-api/resource-loading.html

Issue 196943029: Web Animations API: Load resources referenced in element.animate() (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/resource-loading-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/resource-loading.html
diff --git a/LayoutTests/web-animations-api/resource-loading.html b/LayoutTests/web-animations-api/resource-loading.html
new file mode 100644
index 0000000000000000000000000000000000000000..d245f1e31875e5148303b465d2136438bcc5f335
--- /dev/null
+++ b/LayoutTests/web-animations-api/resource-loading.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+#target {
+ width: 100px;
+ height: 100px;
+}
+</style>
+<div id='target'></div>
+This test passes if it does not crash. Newly referenced resources in the Web Animations api should be resolved in the style building stage.
+<script>
+target.animate([
+ {backgroundImage: 'url(../animations/resources/blue-100.png)', color: 'blue'},
+ {backgroundImage: 'url(../animations/resources/green-100.png)', color: 'green'},
+ ], {duration: 1, fill: 'forwards'});
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+requestAnimationFrame(function() {
+ testRunner.notifyDone();
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/resource-loading-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698