Scott Kyle
4705b6b3a5
Add test for Results invalidation
...
This triggers a crash!
2016-04-28 09:39:06 -07:00
Ari Lazier
27d973151f
pr fixes
2016-04-26 16:59:03 -07:00
Ari Lazier
b59784670b
create RealmObject class and make isValid a member
2016-04-26 16:30:04 -07:00
Ari Lazier
78cb44b1a1
add test for isValid
2016-04-19 17:29:34 -07:00
Ari Lazier
3509caedd5
bugfix for empty results, fix for realm.isValid
2016-04-19 17:29:34 -07:00
Scott Kyle
ece554e58f
Exit with an error code for failures of node tests
2016-04-19 16:53:49 -07:00
Scott Kyle
a05f7e2261
Fix some eslint errors
2016-04-19 01:38:46 -07:00
Scott Kyle
4731610a58
Merge branch 'master' into sk-node
...
* master:
add keypath tests
pr feedback, changelog
typo
bug fix
tests
support keypath comparisons for types that support it
support for null queries
don't require optional or link properties when creating objects
[0.11.1] Bump version
Update CHANGELOG with 0.11.1 fixes
Update changelog script
Remove changes_available implementation that asserts
Get correct path to adb from Android Studio
add some simple tests for Realm.write
Update apps to use React Native 0.22
2016-04-18 14:19:06 -07:00
Scott Kyle
133289ad85
All tests now pass on Node
2016-04-15 16:06:44 -07:00
Ari Lazier
b542fe8c7b
tests
2016-04-11 16:01:51 -07:00
Ari Lazier
4ac022ecc9
don't require optional or link properties when creating objects
2016-04-01 11:00:53 -07:00
Scott Kyle
34ece60e69
Merge pull request #335 from realm/sk-react-native-22
...
Update to use React Native 0.22
2016-03-29 16:08:33 -07:00
Ari Lazier
9d0b890923
add some simple tests for Realm.write
2016-03-29 09:02:36 -07:00
Scott Kyle
c9c941aac9
Update apps to use React Native 0.22
...
React is now a peer dependency, which means we need to add it to our package.json for npm v3 to work properly.
2016-03-24 17:35:46 -07:00
Scott Kyle
02b81ac056
Convert RealmReact to be a static library
...
We needed to do this due to the way React Native modules work. Our hacky solution for using a framework ended up falling apart due to it relying on symbols not getting stripped from the main application.
This static library is in its own Xcode project because rnpm links in *all* static libraries from a given Xcode project.
2016-03-23 10:50:19 -07:00
Scott Kyle
88f6191a61
Fix disabling of RCTDevMenu for tests on iOS 9.3
...
After upgrading to Xcode 7.3, the test bundle is being loaded before the rest of the app. We need to ensure +[RCTDevMenu load] is called before we remove it from the set of native modules.
2016-03-22 09:54:06 -07:00
Scott Kyle
0e74362e4c
Merge pull request #340 from realm/sk-collection
...
Make List and Results inherit from Collection
2016-03-21 15:27:18 -07:00
Ari Lazier
f13cd0a245
Merge pull request #342 from realm/al-fix-throws
...
fix for test bug in test harness for queries that should throw
2016-03-21 14:04:22 -07:00
Ari Lazier
e84b1eb145
fix for test bug in test harness for queries that should throw
2016-03-21 13:41:00 -07:00
Ari Lazier
4b2e47a861
support encrypted realm when getting schemaVersion
2016-03-21 13:34:12 -07:00
Ari Lazier
836cfc1c6b
add chrome debugging, use -1 for not versioned
2016-03-21 13:34:12 -07:00
Ari Lazier
5de63ac401
add tests
2016-03-21 13:34:12 -07:00
Ari Lazier
b9475ad772
pr feedback
2016-03-21 11:46:34 -07:00
Scott Kyle
8c66bab8aa
Make collection iterators actually iterable
...
The ES6 spec calls for this so these iterators are usable in for-of loops, with spread operators, etc.
2016-03-20 11:51:16 -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
b2e4d93732
support for indexed properties
2016-03-18 16:50:55 -07:00
Scott Kyle
92461f2598
Update API docs with encryptionKey
2016-03-17 15:14:56 -07:00
Scott Kyle
9ba477762a
Update splice tests to test added behavior
2016-03-17 14:53:42 -07:00
Scott Kyle
7d21e56471
Git ignore Android test XML output
...
Other rules were redundant
2016-03-16 13:33:59 -07:00
Scott Kyle
401b501aab
Explicitly opt-in to building Android module
...
Fixes #277
2016-03-16 13:01:38 -07:00
Scott Kyle
27073a9e66
Properly configure ESLint for syntax checking
...
Added a test case to run on CI as well.
2016-03-16 13:01:38 -07:00
Ari Lazier
aa08d25ed0
Merge pull request #305 from realm/al-object-store
...
Latest object store changes and core
2016-03-10 16:03:12 -08:00
Ari Lazier
f3c15ff339
Merge pull request #308 from realm/sk-react-native-21
...
Update projects to use React Native 0.21
2016-03-10 08:34:23 -08:00
Scott Kyle
1a127b425b
Merge pull request #289 from realm/sk-accept-constructor
...
Accept constructor in create() and objects() methods
2016-03-07 12:23:26 -08:00
Scott Kyle
cb4002e25c
Update ReactTests to React Native 0.21
2016-03-04 13:31:14 -08:00
Ari Lazier
079b09ddeb
Merge pull request #307 from realm/al-test-sort
...
Test sorting all property types
2016-03-04 13:22:30 -08: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
Ari Lazier
87ee697f53
react native test app fixes
2016-03-03 15:34:56 -08:00
Ari Lazier
386740a459
copy correct test file
2016-03-03 15:09:23 -08:00
Ari Lazier
548d700ffe
object store fixes for js binding
2016-03-03 14:45:44 -08:00
Ari Lazier
5f61fd970c
support relative paths when opening realms
2016-03-03 13:33:49 -08:00
Scott Kyle
85832f0f02
Rename some functions according to PR feedback
2016-03-03 02:49:37 -08:00
Scott Kyle
37b2c35169
Add Symbol.iterator method to List and Results
...
Resolves #235
2016-03-02 23:00:53 -08:00
Scott Kyle
1cba02c34d
Fix broken iterator methods on Android
...
Turns out the JSC included with React Native on Android includes a buggy implementation of ArrayIterator that is missing an exposed next() method, so we implement it ourselves instead.
2016-03-02 22:57:36 -08:00
Scott Kyle
4a81b091cb
Accept constructor in create() and objects() methods
...
This will help the linter prevent spelling mistakes and make some code more easily readable.
Resolves #233
2016-03-01 00:46:03 -08:00
Scott Kyle
72bf66e57e
Check for some iterator methods before testing them
...
Some JS engines (like Chrome) are skipping over values() due to a web compatibility reason for right now.
2016-03-01 00:14:18 -08:00
Scott Kyle
bceef3c340
Move encryption-tests to right directory
...
This wasn't caught in a rebase, oops!
2016-02-29 12:39:00 -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