Sha256: 7839c65b95cf4ef8d4b8af57fb8e7f89f11aaca7109618b77e49a8fd29922975
Contents?: true
Size: 830 Bytes
Versions: 10
Compression:
Stored size: 830 Bytes
Contents
module('Init'); test('jQuery', function(){ ok($ === jQuery, '$ === jQuery'); }); module('Load module'); asyncTest('success load', function(){ ok($.load('zff/lib/underscore/core') === 202, 'underscore is not loaded'); var i = 0; $.load('zff/lib/underscore/core', function(){ ok($.isFunction(_), '_ is loaded'); ok($.load('zff/lib/underscore/core') === 200, 'zff/lib/underscore/core loaded'); i++; ok(i === 1, 'success func is loaded'); }); $.load('zff/lib/underscore/core', function(){ i++; ok(i === 2, 'twice success func is loaded'); start(); }); }); asyncTest('error load', function(){ ok($.load('null') === 202, 'null is not loaded'); $.load('null', { error: function(){ ok($.load('null') === 500, 'module null is error'); start(); } }); });
Version data entries
10 entries across 5 versions & 1 rubygems