sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1010 B

/* globals Toggler, fx, aspect */
define([
'require',
'intern!object',
'intern/chai!assert',
'intern/dojo/node!leadfoot/helpers/pollUntil'
], function (require, registerSuite, assert, pollUntil) {
var FX_URL = '../support/fx.html';
function getPage(context, url) {
return context.get('remote')
.setExecuteAsyncTimeout(5000)
.get(require.toUrl(url))
.then(pollUntil('return ready;'));
}
registerSuite({
name: 'dojo/fx/Toggler',
'.show': {
'show after hide': function () {
return getPage(this, FX_URL)
.executeAsync(function (done) {
var toggleAnim = new Toggler({
node: 'foo',
hideDuration: 100,
hideFunc: fx.wipeOut,
showFunc: fx.wipeIn
});
toggleAnim.hide();
setTimeout(function () {
var showAnim = toggleAnim.show();
aspect.after(showAnim, 'onEnd', function () {
done(true);
});
});
})
.then(function (results) {
assert.isTrue(results);
});
}
}
});
});