337 Commits

Author SHA1 Message Date
David Greenspan
852c3349bf fix and add test for livedata method bug 2012-04-04 16:20:15 -07:00
Nick Martin
29471cb4b8 XXX Do not try to resume old sessions.
Session resumption needs some work.
2012-04-03 22:40:36 -07:00
David Greenspan
df8567dba3 dedup Mongo cursors 2012-04-03 22:40:36 -07:00
David Greenspan
ad4f4ffa5a snapshot tweaks 2012-04-03 22:37:12 -07:00
Nick Martin
d56725dd6a Move stub_stream to test helpers. 2012-04-03 22:37:12 -07:00
Nick Martin
04d8b284e0 Comment changes per review. 2012-04-03 22:37:12 -07:00
David Greenspan
dc2902dde0 snapshots changes with Geoff (comments) 2012-04-03 22:37:12 -07:00
Nick Martin
a3ea86a4c6 Comment on including test file from a different package directory. 2012-04-03 22:37:12 -07:00
David Greenspan
81c1de24e3 run tests "in parallel" on client if sync and in different groups 2012-04-03 22:37:12 -07:00
David Greenspan
5c43f21372 avoid anonymous collection warning 2012-04-03 22:37:12 -07:00
David Greenspan
c09190366e break out fuzz test 2012-04-03 22:37:12 -07:00
David Greenspan
f2d55ccd70 make local mongo-livedata test local 2012-04-03 22:37:12 -07:00
David Greenspan
9ec8922817 isolate fuzz tests in own collections 2012-04-03 22:37:12 -07:00
Nick Martin
dede19395d Remove incorrect file add. Tests don't work when run only in livedata though! 2012-04-03 22:37:12 -07:00
Nick Martin
550fabf052 Stub stream based tests for livedata connection. 2012-04-03 22:37:12 -07:00
Nick Martin
4f89af1aaa Test snapshot/restore and pause/resume. 2012-04-03 22:37:12 -07:00
Nick Martin
39256dc52f Also diff on snapshot/restore. Makes no difference in practice as we are always paused when we call restore. 2012-04-03 22:37:12 -07:00
David Greenspan
4dc8944fb4 deepcopy observer callback arguments, only on client 2012-04-03 22:37:11 -07:00
David Greenspan
bf04fccb72 new query diffing algorithm with fuzz tests 2012-04-03 22:37:11 -07:00
Nick Martin
ee1d25f499 Implement pause/resume in Minimongo. Uses a pessimal diff algorithm. 2012-04-03 22:37:11 -07:00
David Greenspan
3dc7c83da0 use === in liveui 2012-04-03 22:30:56 -07:00
David Greenspan
70a1fd6acb templates comment typo 2012-04-03 22:30:56 -07:00
David Greenspan
ee3d306adc templates changes with Geoff (a couple fixes, a couple reverts, comments) 2012-04-03 22:30:54 -07:00
David Greenspan
d73c18aae5 fix extra event handlers in patching 2012-04-03 22:10:21 -07:00
Nick Martin
82ac8e324e fix listChunk event bug (with tests) 2012-04-03 22:10:21 -07:00
David Greenspan
89ce396ae5 Overhaul liveui & templating to support "smart patch" and rendering HTML (rebase-2) 2012-04-03 22:10:20 -07:00
Nick Martin
48947a46bf Rename file per review. 2012-03-30 16:26:04 -07:00
Nick Martin
5a1ecf6d16 Events test helper, plus misc test fixups. 2012-03-28 18:26:15 -07:00
Nick Martin
27a15af421 Semicolon fixes. 2012-03-28 18:26:15 -07:00
Nick Martin
fb9376759a Make test runner show total time elapsed. 2012-03-28 18:26:15 -07:00
David Greenspan
4f0c7d061d test.equal -> deep compare, not stringify compare 2012-03-28 18:26:15 -07:00
matt debergalis
7377ce2041 Major formatting and content update to docs. 2012-03-20 16:55:30 -07:00
Nick Martin
6c716ca6df Make test-helpers package internal. Lets not confuse users. 2012-03-19 14:26:07 -07:00
Nick Martin
ad69114d0b Up the test timeout. Slow browsers are slow. 2012-03-19 14:25:22 -07:00
Geoff Schmidt
5c72fcaacc armAndWait out of test 2012-03-16 23:36:33 -07:00
Geoff Schmidt
c946fc177f make test not async 2012-03-16 23:33:49 -07:00
Geoff Schmidt
4bfc287e5d New server-side results diffing algorithm 2012-03-16 21:11:08 -07:00
Geoff Schmidt
a00ee63574 some basic tests for mongo-livedata 2012-03-16 21:11:08 -07:00
Geoff Schmidt
3b520997b1 tinytest: support some additional assertions 2012-03-16 21:11:07 -07:00
Geoff Schmidt
3edf56e7af Honor sort/skip/limit on server 2012-03-16 18:26:19 -07:00
Geoff Schmidt
b3fc3150d4 simplify signature of observe()'s remove callback 2012-03-16 18:26:19 -07:00
Nick Martin
d7dd1d9408 Fix typo that broke count(). 2012-03-16 15:55:57 -07:00
Nick Martin
0187ee6db4 Temporary hack to allow templates as HTML. 2012-03-16 15:00:34 -07:00
Geoff Schmidt
8cdadb3762 make insert return the id of the new object
(not a copy of the new object)
avoid updating docs to prevent merge conflict
(will handle out of band)
2012-03-16 02:55:14 -07:00
Geoff Schmidt
c6cedac7eb Test database failure reporting 2012-03-16 02:55:14 -07:00
Geoff Schmidt
6ed6fa75b5 test that Meteor.Errors are Errors 2012-03-16 02:55:14 -07:00
Geoff Schmidt
176dd68199 Suppress console log messages during tests 2012-03-16 02:55:14 -07:00
Geoff Schmidt
413c0778b5 move testAsyncMulti into test-helpers 2012-03-16 02:55:14 -07:00
Geoff Schmidt
6de5ab62ce Simplify method API 2012-03-16 02:55:14 -07:00
Geoff Schmidt
7be206b11a database writes can report errors (first pass) 2012-03-16 02:55:14 -07:00