Scott Kyle
26d2c169a9
Support ES6 class inheritance from Realm.Object
...
Unfortunately, this was broken because our native Realm.Object constructor was not presenting itself as a function in JS. This fixes that and adds tests.
2016-05-09 16:49:05 -07:00
Scott Kyle
4705b6b3a5
Add test for Results invalidation
...
This triggers a crash!
2016-04-28 09:39:06 -07:00
Ari Lazier
3509caedd5
bugfix for empty results, fix for realm.isValid
2016-04-19 17:29:34 -07:00
Scott Kyle
b5ce02c0ce
Make List and Results inherit from Collection
...
This will allow for easier type checking, documentation, etc.
2016-03-20 11:51:16 -07:00
Ari Lazier
c42834d052
test strings too
2016-03-04 07:58:25 -08:00
Ari Lazier
621ee36fad
test sorting all properties
2016-03-04 07:55:05 -08:00
Scott Kyle
4ea2e729b4
Support many Array methods on List and Results
...
Resolves #18
2016-02-29 03:24:58 -08:00
Scott Kyle
236d0a5eed
Ensure List and Results constructors throw exception
...
This was already done from native code, but needed to happen for the browser shim and be tested.
2016-02-29 03:24:58 -08:00
Scott Kyle
a5ec799a7c
Copy whole lib module into JS test bundle
...
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.
2016-02-29 03:24:58 -08:00