Lines Matching refs:load
196 '`changed` property should be a hash of attributes that have changed since last save() or load()': function () {
212 model.load();
345 'load() should delegate to sync()': function () {
360 model.load(opts);
364 'load() should reset this.changed when loading succeeds': function () {
370 model.load();
374 'load() should be chainable and should call the callback if one was provided': function () {
378 Assert.areSame(model, model.load());
379 Assert.areSame(model, model.load({}));
381 Assert.areSame(model, model.load(function (err) {
386 Assert.areSame(model, model.load({}, function () {
778 '`error` event should fire when a load operation fails': function () {
785 Assert.areSame('load', e.src);
795 model.load();
822 '`load` event should fire after a successful load operation': function () {
826 model.on('load', function (e) {
833 Assert.areSame('bar', model.get('foo'), 'load event should fire after attribute changes are applied');
840 model.load(function () {
841 Assert.areSame(1, calls, 'load event should fire before the callback runs');
844 Assert.areSame(1, calls, 'load event never fired');