Lines Matching refs:equal

29         assert.equal(this.collection, collection);
33 assert.equal(model.one, 1);
34 assert.equal(model.collection, collection);
40 assert.equal(model.get('hasOwnProperty'), true);
51 assert.equal(model.one, 1);
63 assert.equal(model.get('value'), 2);
76 assert.equal(model.one, 1);
77 assert.equal(model.collection, collection);
85 assert.equal(this.collection, undefined);
86 assert.equal(this.cid, undefined);
87 assert.equal(this.id, undefined);
91 assert.equal(model.collection, collection);
92 assert.equal(model.id, 'foo');
105 assert.equal(JSON.stringify(model.toJSON()), '{}');
111 assert.equal(doc.url(), '/collection/1-the-tempest');
113 assert.equal(doc.url(), '/collection/1-the-tempest');
125 assert.equal(model.url(), '/collection');
127 assert.equal(model.url(), '/collection/%2B1%2B');
139 assert.equal(model.url(), '/nested/1/collection');
141 assert.equal(model.url(), '/nested/1/collection/2');
164 assert.equal(a.get('foo'), 1);
165 assert.equal(a.get('bar'), 2);
166 assert.equal(a.get('baz'), 3);
167 assert.equal(b.get('foo'), a.get('foo'), 'Foo should be the same on the clone.');
168 assert.equal(b.get('bar'), a.get('bar'), 'Bar should be the same on the clone.');
169 assert.equal(b.get('baz'), a.get('baz'), 'Baz should be the same on the clone.');
171 assert.equal(a.get('foo'), 100);
172 assert.equal(b.get('foo'), 1, 'Changing a parent attribute does not change the clone.');
177 assert.equal(foo.get('p'), 1);
178 assert.equal(bar.get('p'), undefined);
196 assert.equal(doc.get('title'), 'The Tempest');
197 assert.equal(doc.get('author'), 'Bill Shakespeare');
202 assert.equal(doc.escape('title'), 'The Tempest');
204 assert.equal(doc.escape('audience'), 'Bill & Bob');
206 assert.equal(doc.escape('audience'), 'Tim > Joan');
208 assert.equal(doc.escape('audience'), '10101');
210 assert.equal(doc.escape('audience'), '');
277 assert.equal(a.get('foo'), 2, 'Foo should have changed.');
278 assert.equal(changeCount, 1, 'Change count should have incremented.');
281 assert.equal(a.get('foo'), 2, 'Foo should NOT have changed, still 2');
282 assert.equal(changeCount, 1, 'Change count should NOT have incremented.');
285 assert.equal(attrs.foo, void 0, 'validate:true passed while unsetting');
288 assert.equal(a.get('foo'), void 0, 'Foo should have changed');
290 assert.equal(changeCount, 2, 'Change count should have incremented for unset.');
293 assert.equal(a.id, undefined, 'Unsetting the id should remove the id property.');
321 assert.equal(value, 'last');
328 assert.equal(model.changed.result, void 0);
329 assert.equal(model.previous('result'), false);
345 assert.equal(options, o1);
348 assert.equal(options, o2);
351 assert.equal(options, o3);
366 assert.equal(i, 2, 'Unset does not fire an event for missing attributes.');
382 assert.equal(model.get('id'), 'eye-dee');
383 assert.equal(model.id, 25);
384 assert.equal(model.isNew(), false);
386 assert.equal(model.id, undefined);
387 assert.equal(model.isNew(), true);
397 assert.equal(model.cid.charAt(0), 'm');
400 assert.equal(model.cid.charAt(0), 'c');
407 assert.equal(col.get('c6').cid.charAt(0), 'm');
420 assert.equal(model.get('name'), '');
449 assert.equal(changed, true);
450 assert.equal(model.get('name'), undefined);
462 assert.equal(model.get('one'), 1);
463 assert.equal(model.get('two'), 2);
465 assert.equal(model.get('one'), 1);
466 assert.equal(model.get('two'), 3);
476 assert.equal(model.get('one'), 3);
477 assert.equal(model.get('two'), 4);
482 assert.equal(model.get('hasOwnProperty'), true);
484 assert.equal(model.get('hasOwnProperty'), true);
486 assert.equal(model.get('hasOwnProperty'), false);
497 assert.equal(model.previous('name'), 'Tim');
500 assert.equal(model.hasChanged(), false);
501 assert.equal(model.hasChanged(undefined), false);
503 assert.equal(model.get('name'), 'Rob');
510 assert.equal(model.changedAttributes({a: 'a'}), false);
511 assert.equal(model.changedAttributes({a: 'b'}).a, 'b');
522 assert.equal(value, 'Mr. Bob');
524 assert.equal(value, 'Ms. Sue');
534 assert.equal(changed, 0);
563 assert.equal(lastError, "Can't change admin status.");
564 assert.equal(model.validationError, "Can't change admin status.");
570 assert.equal(this.syncArgs.method, 'update');
595 assert.equal(this, obj);
613 assert.equal(this, obj);
635 assert.equal(model.get('i'), i);
637 assert.equal(model.get('i'), i);
643 assert.equal(this.syncArgs.method, 'update');
644 assert.equal(this.syncArgs.options.attrs, undefined);
647 assert.equal(this.syncArgs.method, 'patch');
648 assert.equal(_.size(this.syncArgs.options.attrs), 2);
649 assert.equal(this.syncArgs.options.attrs.d, 4);
650 assert.equal(this.syncArgs.options.attrs.a, undefined);
651 assert.equal(this.ajaxSettings.data, '{"b":2,"d":4}');
656 assert.equal(this.syncArgs.options.attrs.D, 3);
657 assert.equal(this.syncArgs.options.attrs.d, undefined);
658 assert.equal(this.ajaxSettings.data, '{"B":1,"D":3}');
669 assert.equal(model.get('title'), 'Twelfth Night');
692 assert.equal(this.ajaxSettings.url, '/collection/42');
718 assert.equal(this.syncArgs.method, 'read');
745 assert.equal(this.syncArgs.method, 'delete');
749 assert.equal(newModel.destroy(), false);
790 assert.equal(result, model);
791 assert.equal(model.get('a'), 100);
792 assert.equal(lastError, undefined);
794 assert.equal(model.get('admin'), true);
796 assert.equal(lastError, "Can't change admin status.");
797 assert.equal(result, false);
798 assert.equal(model.get('a'), 100);
812 assert.equal(model.get('name'), 'Two');
813 assert.equal(error, undefined);
815 assert.equal(error, true);
816 assert.equal(model.get('name'), 'Two');
818 assert.equal(model.get('name'), 'Two');
821 assert.equal(model.get('name'), undefined);
835 assert.equal(result, model);
836 assert.equal(model.get('a'), 100);
837 assert.equal(model.validationError, null);
838 assert.equal(boundError, undefined);
840 assert.equal(result, false);
841 assert.equal(model.get('a'), 100);
842 assert.equal(model.validationError, "Can't change admin status.");
843 assert.equal(boundError, true);
851 assert.equal(this.attributes.one, 1);
873 assert.equal(Child.classProp, Parent.classProp);
876 assert.equal(kid.instancePropSame, adult.instancePropSame);
887 assert.equal(m.previous('state'), undefined);
888 assert.equal(newState, 'hello');
893 assert.equal(m.previous('state'), undefined);
894 assert.equal(newState, 'hello');
909 assert.equal(changed, 1);
917 assert.equal(model.get('a'), 'a');
918 assert.equal(model.get('b'), 'b');
919 assert.equal(model.get('c'), 'c');
970 assert.equal(model.get('x'), 1);
974 assert.equal(model.hasChanged('x'), true);
977 assert.equal(model.hasChanged('x'), true);
1005 assert.equal(model.get('a'), void 0);
1014 assert.equal(times, 1);
1029 assert.equal(model.previous(0), true);
1030 assert.equal(model.previous(''), true);
1041 assert.equal(model.get('x'), 1);
1042 assert.equal(changed, 0);
1044 assert.equal(model.get('x'), 3);
1045 assert.equal(changed, 1);
1053 assert.equal(model.get('x'), void 0);
1064 assert.equal(model.get('x'), 3);
1117 assert.equal(model.previous('x'), undefined);
1122 assert.equal(model.previous('x'), undefined);
1127 assert.equal(model.previous('y'), undefined);
1181 assert.equal(val, 2);
1298 assert.equal(attrs, undefined);
1370 assert.equal(model.changedAttributes(), false);
1390 assert.equal(model.isValid(), true);
1391 assert.equal(model.set({valid: false}, {validate: true}), false);
1392 assert.equal(model.isValid(), true);
1394 assert.equal(model.isValid(), false);
1412 assert.equal(model.validationError, "This shouldn't happen");
1443 assert.equal(model.id, 2);
1445 assert.equal(model.id, 3);