summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/css-transitions/file_setting-effect.html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-14 12:13:01 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-14 12:13:01 +0100
commit35c61a027dc6f4d58ca9d33e06da79adf2503ebd (patch)
tree8ec4f35ab71eb895d3ea993faf4deec39e4ad258 /dom/animation/test/css-transitions/file_setting-effect.html
parentc58cec26c73da9a5c48f7d75555c6a2409965693 (diff)
downloadUXP-35c61a027dc6f4d58ca9d33e06da79adf2503ebd.tar
UXP-35c61a027dc6f4d58ca9d33e06da79adf2503ebd.tar.gz
UXP-35c61a027dc6f4d58ca9d33e06da79adf2503ebd.tar.lz
UXP-35c61a027dc6f4d58ca9d33e06da79adf2503ebd.tar.xz
UXP-35c61a027dc6f4d58ca9d33e06da79adf2503ebd.zip
Bug 1264125: Fire transitioncancel event when a transition is canceled (added tests + style clean up)
Issue #55
Diffstat (limited to 'dom/animation/test/css-transitions/file_setting-effect.html')
-rw-r--r--dom/animation/test/css-transitions/file_setting-effect.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/animation/test/css-transitions/file_setting-effect.html b/dom/animation/test/css-transitions/file_setting-effect.html
index c61877194..81279ea55 100644
--- a/dom/animation/test/css-transitions/file_setting-effect.html
+++ b/dom/animation/test/css-transitions/file_setting-effect.html
@@ -7,6 +7,8 @@
promise_test(function(t) {
var div = addDiv(t);
+ var watcher = new EventWatcher(t, div, [ 'transitionend',
+ 'transitioncancel' ]);
div.style.left = '0px';
div.style.transition = 'left 100s';
@@ -20,11 +22,14 @@ promise_test(function(t) {
assert_equals(transition.transitionProperty, 'left');
assert_equals(transition.playState, 'finished');
assert_equals(window.getComputedStyle(div).left, '100px');
+ return watcher.wait_for('transitionend');
});
}, 'Test for removing a transition effect');
promise_test(function(t) {
var div = addDiv(t);
+ var watcher = new EventWatcher(t, div, [ 'transitionend',
+ 'transitioncancel' ]);
div.style.left = '0px';
div.style.transition = 'left 100s';
@@ -46,6 +51,8 @@ promise_test(function(t) {
promise_test(function(t) {
var div = addDiv(t);
+ var watcher = new EventWatcher(t, div, [ 'transitionend',
+ 'transitioncancel' ]);
div.style.left = '0px';
div.style.width = '0px';
@@ -65,6 +72,8 @@ promise_test(function(t) {
promise_test(function(t) {
var div = addDiv(t);
+ var watcher = new EventWatcher(t, div, [ 'transitionend',
+ 'transitioncancel' ]);
div.style.left = '0px';
div.style.width = '0px';