Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Tests: update location of files for quint in animation-complete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz committed Feb 12, 2014
1 parent 90ce4ee commit 18c1e32
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions tests/integration/animation-complete/animationComplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* mobile AnimationComplete integration tests
* mobile flipswitch unit tests
*/
(function($){
var oldTransitions, oldAnimations;
Expand All @@ -17,15 +17,15 @@

$( "#transition-test" )
.addClass( "ui-panel-animate ui-panel-position-left ui-panel-display-overlay" )
.animationComplete(function() {
.animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "#animation-test" ).addClass( "in" ).animationComplete(function() {
$( "#animation-test" ).addClass( "in" ).animationComplete( function() {
animationComplete = true;
});

window.setTimeout(function() {
window.setTimeout( function(){
ok( transitionComplete, "transition completed" );
ok( animationComplete, "animation completed" );
start();
Expand All @@ -43,15 +43,15 @@
var transitionComplete = false,
animationComplete = false;

$( "#transition-test" ).animationComplete(function() {
$( "#transition-test" ).animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "#animation-test" ).animationComplete(function() {
$( "#animation-test" ).animationComplete( function() {
animationComplete = true;
});

window.setTimeout(function() {
window.setTimeout( function(){
ok( transitionComplete, "transition callback called" );
ok( animationComplete, "animation callback called" );
start();
Expand Down Expand Up @@ -80,20 +80,20 @@

$( "#transition-test" )
.addClass( "ui-panel-animate ui-panel-position-left ui-panel-display-overlay" )
.animationComplete(function() {
.animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "animation-test" ).addClass( "in" ).animationComplete(function() {
$( "animation-test" ).addClass( "in" ).animationComplete( function() {
animationComplete = true;
});

window.setTimeout(function() {
window.setTimeout( function(){
ok( transitionComplete, "transition callback called" );
ok( animationComplete, "animation callback called" );
}, 10 );

window.setTimeout(function() {
window.setTimeout( function(){
start();
}, 800 );
});
Expand All @@ -109,18 +109,18 @@

$( "#transition-test" )
.addClass( "ui-panel-animate ui-panel-position-left ui-panel-display-overlay" )
.animationComplete(function() {
.animationComplete( function() {
transitionComplete = true;
}, "transition" );
$( "#animation-test" ).addClass( "in" ).animationComplete(function() {
$( "#animation-test" ).addClass( "in" ).animationComplete( function() {
animationComplete = true;
});
ok( Object.keys( $._data( $("#animation-test")[0], "events" ) ).length === 1,
"Only one animation event" );

ok( Object.keys( $._data( $("#transition-test")[0], "events" ) ).length === 1,
"Only one transition event" );
window.setTimeout(function() {
window.setTimeout( function(){
start();
}, 800 );
});
Expand All @@ -145,12 +145,12 @@
var transitionComplete = false,
animationComplete = false;

window.setTimeout(function() {
$( "#transition-test" ).animationComplete(function() {
window.setTimeout( function(){
$( "#transition-test" ).animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "#animation-test" ).animationComplete(function() {
$( "#animation-test" ).animationComplete( function() {
animationComplete = true;
});
ok( $._data( $("#animation-test")[0], "events" ) === undefined,
Expand All @@ -174,14 +174,14 @@

$( "#transition-test" )
.addClass( "ui-panel-animate ui-panel-position-left ui-panel-display-overlay" )
.animationComplete(function() {
.animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "#animation-test" ).addClass( "in" ).animationComplete(function() {
$( "#animation-test" ).addClass( "in" ).animationComplete( function() {
animationComplete = true;
});
window.setTimeout(function(){
window.setTimeout( function(){
ok( $._data( $("#animation-test")[0], "events" ) === undefined,
"no animation bindings remain" );
ok( $._data( $("#transition-test")[0], "events" ) === undefined,
Expand All @@ -201,15 +201,15 @@
var transitionComplete = false,
animationComplete = false;

$( "#transition-test" ).animationComplete(function() {
$( "#transition-test" ).animationComplete( function() {
transitionComplete = true;
}, "transition" );

$( "#animation-test" ).animationComplete(function() {
$( "#animation-test" ).animationComplete( function() {
animationComplete = true;
});

window.setTimeout(function(){
window.setTimeout( function(){
ok( $._data( $("#animation-test")[0], "events" ) === undefined,
"no animation bindings remain" );
ok( $._data( $("#transition-test")[0], "events" ) === undefined,
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/animation-complete/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
<script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit/qunit.js"></script>
<script>
$.testHelper.asyncLoad([
[ "jquery.mobile.animationComplete" ],
[ "animationComplete.js" ]
]);
</script>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
<link rel="stylesheet" href="../../../external/qunit/qunit.css"/>

<script src="../../swarminject.js"></script>
</head>
Expand Down

0 comments on commit 18c1e32

Please sign in to comment.