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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-ready-reject-script-forbidden.html

Issue 2785303002: Post task when rejecting Animation promises inside ScriptForbiddenScope (Closed)
Patch Set: Add layout test Created 3 years, 7 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 | third_party/WebKit/Source/core/animation/Animation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/animation-ready-reject-script-forbidden.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-ready-reject-script-forbidden.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-ready-reject-script-forbidden.html
new file mode 100644
index 0000000000000000000000000000000000000000..a40fa0e38130e82d38fe28774af86bc96ff60cfc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-ready-reject-script-forbidden.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id=element>x</div>
+<style>
+ #element {
+ transition: transform 2000ms;
+ }
+</style>
+<script>
+ async_test(function(t) {
+ element.offsetTop; // Force recalc
+ element.style.transform = "rotateX(180deg)";
+ element.offsetTop; // Force recalc
+ var animation = element.getAnimations()[0];
+ return animation.ready.catch(function() { t.done(); });
+ });
+</script>
+<style>
+ * { content: ""; }
+</style>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/Animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698