Scott Kyle
9916fe14a4
Change RealmReact to be a dynamic framework
...
It embeds RealmJS and GCDWebServers frameworks. This fixes #58 , where there were issues with building for devices rather than just the simulator.
Some changes were made so that RealmReact.m didn't need to be weakly linked to libReact.a since that would actually cause any executable that uses this framework from being able to compile with bitcode.
2015-10-14 02:05:02 -07:00
Ari Lazier
4cf19d0e87
Merge pull request #60 from realm/al-os
...
First pass at object_store refactor
2015-10-13 17:16:27 -07:00
Ari Lazier
f6e0d34022
RJSArray -> RJSList
2015-10-13 15:27:24 -07:00
Scott Kyle
6a550f285f
Small improvement to notifications test
2015-10-12 23:19:54 -07:00
Ari Lazier
f4715da2a4
Merge pull request #55 from realm/al-migrations
...
Minimal migration tests - use same path for all tests
2015-10-12 17:26:51 -07:00
Ari Lazier
5021429927
Add comments
2015-10-12 17:23:47 -07:00
Ari Lazier
c81ea6e5be
pr fixes
2015-10-12 17:18:49 -07:00
Ari Lazier
8ad1b0907d
minimal tests for migrations
2015-10-12 17:01:51 -07:00
Scott Kyle
c2e51ab541
Check for NaN inside RJSValidatedValueToNumber
...
Turns out this API can return NaN without an exception. Also added tests to make sure these conversions either work or throw exceptions in the appropriate places.
2015-10-12 16:50:45 -07:00
Ari Lazier
aa035717a5
allow running all tests at the same path by invalidating all cached realm paths between test runs
2015-10-12 16:43:05 -07:00
Scott Kyle
35a8f9816c
Out of bounds getters for Results return undefined
2015-10-12 15:35:13 -07:00
Scott Kyle
6788cd6f3d
Out of bounds list item getters return undefined
...
Resolves #50
2015-10-12 15:25:39 -07:00
Scott Kyle
ae9ae4dc77
Add list item setters in JS
...
Added a test and made other array tests syntactically consistent. Resolves #45
2015-10-12 15:25:39 -07:00
Scott Kyle
515ece8fdd
Remove duplicated test in ArrayTests.js
...
This must have been accidentally copy-pasted from ObjectTests.js
2015-10-12 15:25:38 -07:00
Scott Kyle
cc294e0353
Move object property setter assert downward
2015-10-12 12:59:40 -07:00
Scott Kyle
c600af9182
Mutating lists outside transaction should throw
2015-10-12 02:23:09 -07:00
Scott Kyle
33e0f5d8b1
Setting properties outside transaction should throw
...
Resolves #40
2015-10-12 02:02:23 -07:00
Scott Kyle
37d5a12094
Add test for calling create() outside transaction
2015-10-12 02:01:29 -07:00
Scott Kyle
48c9336526
Tabs -> Spaces in ObjectTests.js
2015-10-12 01:59:34 -07:00
Scott Kyle
88352721f7
Make all tests explicitly require realm module
2015-10-08 16:19:19 -07:00
Scott Kyle
3f3710339f
Update ReactTests to re-install local NPM modules
2015-10-08 16:02:54 -07:00
Scott Kyle
c1fa635183
Update ReactTests for iOS 8.0 deployment target
...
Needs this to link to GCDWebServer.
2015-10-08 16:02:36 -07:00
Scott Kyle
db80c3a89a
Refactor tests to run again inside Xcode
...
Added a CommonJS module loader that is used by XCTestCase subclass to load and run the tests.
2015-10-08 15:54:30 -07:00
Ari Lazier
68603c2620
fix exports
2015-10-08 15:51:46 -07:00
Ari Lazier
d9618a0e06
remove const, link test app with libRealmReact
2015-10-08 15:51:46 -07:00
Ari Lazier
08fada74d6
fix so that RealmJS tests work again
2015-10-08 15:50:10 -07:00
Ari Lazier
55a07c99dc
react test app
2015-10-08 15:50:10 -07:00
Ari Lazier
1c65dd950a
Update TestObjects.js
...
remove trailing whitespace
2015-10-01 14:11:17 -07:00
Ari Lazier
8ca8a24913
ARRAY -> LIST
2015-09-30 10:51:04 -07:00
Ari Lazier
aa78436f53
use capitalized names for enums/constants
2015-09-30 10:41:47 -07:00
Ari Lazier
8f466d47b1
Type -> Types
2015-09-29 15:14:39 -07:00
Ari Lazier
a7662af484
RealmType -> Realm.Type
2015-09-29 14:53:33 -07:00
Scott Kyle
8e110081cd
Merge pull request #29 from realm/test-failures
...
Test failures now report the real failure location
2015-09-28 18:12:05 -07:00
Scott Kyle
8182c4816f
Add comment to explain regex in TestFailureError
2015-09-28 18:09:59 -07:00
Scott Kyle
675e26e200
Test failures now report the real failure location
...
In the case of test failures, a TestFailureError object is thrown, which removes the last two stack frames so the true source of the failure is revealed to the native code.
Clicking on a failure in the Xcode sidebar will take you to exactly where it occurred now.
Fixes #28
2015-09-28 16:09:03 -07:00
Scott Kyle
70ee822f19
Update splice method to mimic JS standard
...
It now will return the removed elements, and clamps the first two arguments to be acceptable values rather than throwing an exception.
2015-09-28 16:00:24 -07:00
Ari Lazier
4dca0358e1
add deleteAll to Realm
2015-09-08 14:07:14 -07:00
Ari Lazier
16be837817
support defaults
2015-09-04 15:43:26 -07:00
Ari Lazier
dcc159365e
more extensive upsert tests
2015-09-04 12:41:17 -07:00
Ari Lazier
e9aa46a8f7
more tests for partial update
2015-09-04 12:28:57 -07:00
Ari Lazier
10a04da42c
bundle RealmJS with the example app
2015-09-04 10:08:13 -07:00
Ari Lazier
870fe78aad
support sorting by a single property
2015-09-03 15:46:31 -07:00
Ari Lazier
cc0f821a99
fix for partial update of string properties
2015-09-03 14:37:22 -07:00
Ari Lazier
ee87cbc17a
primary keys and upsert
2015-09-03 14:05:56 -07:00
Ari Lazier
df05636e7a
delete can now take a results object as an argument
2015-09-02 21:31:29 -07:00
Ari Lazier
7ac7ab3c94
test object with invalid class name
2015-09-01 16:23:42 -07:00
Ari Lazier
fbf2399140
tests and bugfixes for splice and shift
2015-08-28 15:11:50 -07:00
Ari Lazier
ddbc6eb4c9
test for pop
2015-08-28 14:49:15 -07:00
Ari Lazier
bd39239f00
array mutation functions
2015-08-28 14:41:30 -07:00
Ari Lazier
e84c81542f
fix for array enumeration, test array.push
2015-08-27 13:33:20 -07:00
Ari Lazier
ccd2301d9e
todo example
2015-08-24 09:22:37 -07:00
Ari Lazier
95189a3a37
a few more tests
2015-08-17 11:46:08 -07:00
Ari Lazier
9a90c9c8a3
add querying for basic types
2015-08-17 11:40:13 -07:00
Ari Lazier
f7b4fd6f4a
test existing array functionality
2015-08-14 10:47:56 -07:00
Ari Lazier
dc0839772f
add Realm.delete
2015-08-14 09:47:33 -07:00
Ari Lazier
ca4dfa052c
proper copyright
2015-08-14 08:18:49 -07:00
Ari Lazier
12b942fecd
move js work from realm-cocoa-private
2015-08-13 09:12:48 -07:00