Skip to content

Commit

Permalink
workaround all but one ViewStack test failures, refs #594
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed Mar 8, 2016
1 parent bba2a99 commit 418a4ad
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/unit/ViewStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,21 +152,27 @@ define([
asyncHandler = node.on("delite-after-show", d.callback(function () {
checkNodeVisibility(node, ddd);
}));
node.show(ddd, {transition: "flip", reverse: true});
setTimeout(function () {
node.show(ddd, {transition: "flip", reverse: true});
}, 0); // avoid chrome problem when setting a new transition class immediately after removing the old one
},
"Show (slidev)" : function () {
var d = this.async(1000);
asyncHandler = node.on("delite-after-show", d.callback(function () {
checkNodeVisibility(node, aaa);
}));
node.show(aaa, {transition: "slidev", reverse: false});
setTimeout(function () {
node.show(aaa, {transition: "slidev", reverse: false});
}, 0); // avoid chrome problem when setting a new transition class immediately after removing the old one
},
"Show (reverse, slidev)" : function () {
var d = this.async(1000);
asyncHandler = node.on("delite-after-show", d.callback(function () {
checkNodeVisibility(node, bbb);
}));
node.show(bbb, {transition: "slidev", reverse: true});
setTimeout(function () {
node.show(bbb, {transition: "slidev", reverse: true});
}, 0); // avoid chrome problem when setting a new transition class immediately after removing the old one
},
"Show (cover)" : function () {
var d = this.async(1000);
Expand Down

0 comments on commit 418a4ad

Please sign in to comment.