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
Scott Kyle
44a29d8dd4
Expose List and Results constructors into JS
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
Scott Kyle
154422a3d1
Make realm instances pass instanceof check
2016-02-29 03:24:58 -08:00
Ari Lazier
4177b0fb40
fix for test naming
2016-02-26 11:18:47 -08:00
Ari Lazier
e495cc4685
add encryption support
2016-02-26 11:08:59 -08:00
Tim Anglade
7cc2f69736
Merge pull request #264 from realm/km-js-fixlicense
...
License update
2016-02-21 18:56:59 -08:00
Scott Kyle
52a1fa9196
Automatically forward port 8082 for Android
...
Fixes #249
2016-02-21 16:57:05 -08:00
Scott Kyle
1ab3a8a985
No longer delete before npm installing local modules
...
This doesn't appear to have been necessary and seems to sometimes cause an issue because the packager will start and look for a JS file that was just deleted.
2016-02-19 02:03:54 -08:00
Scott Kyle
2e3a3b5db8
Merge pull request #257 from realm/sk-schema-prop
...
The schema property should be directly on constructor
2016-02-18 16:27:47 -08:00
Karson Miller
84b06fd8e0
missed a couple
2016-02-18 15:30:44 -08:00
Karson Miller
5e9333b699
no message
2016-02-18 15:30:44 -08:00
Scott Kyle
a661350e59
Merge branch 'sk-sorted-results'
...
* sk-sorted-results:
Add sorted() method to List
Further improve argument checking for sorted()
Improve error message in sorted() method
Change sortedBy API as discussed
Allow sortedBy to accept array of properties
Change sortByProperty to return new Results
2016-02-18 15:21:35 -08:00
Scott Kyle
5b2e7b37af
Add script to update version in package.json and iOS
...
This uses agvtool to update the CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION project variables. The Info.plist files have been updated to propagate this value.
2016-02-18 13:58:12 -08:00
Scott Kyle
d322d5dd9c
Add property test for objects with constructor
2016-02-18 13:50:45 -08:00
Scott Kyle
5332131c14
Add sorted() method to List
2016-02-18 13:41:11 -08:00
Scott Kyle
d847fbceb1
Further improve argument checking for sorted()
2016-02-18 12:55:54 -08:00
Scott Kyle
05d84b23a2
Change sortedBy API as discussed
...
If provided an array, then each member can optionally be an array of [propName, reverse]
2016-02-18 12:47:18 -08:00
Scott Kyle
76865d0da4
Allow sortedBy to accept array of properties
...
It now optionally accepts an array of properties for both parameters and the tests have been updated to reflect new capabilities.
2016-02-18 11:58:39 -08:00
Scott Kyle
249bcd8f3f
Change sortByProperty to return new Results
...
The method name changed to sortedBy to reflect that it returns a new Results object and to be more succinct. Also, the second optional argument instead reflects descending (or rather, reverse) since it's an anti-pattern to have an optional argument default to true in JS, and this also follows precedences set by other JS libraries and by Python's sorted function.
2016-02-18 11:58:39 -08:00
Scott Kyle
b34e52b290
The schema property should be directly on constructor
...
The constructor is now also called with `this` set as the constructed object.
Fixes #232
2016-02-18 11:10:02 -08:00
Ari Lazier
d70de00923
Merge pull request #254 from realm/al-filtered
...
Add filtered method to List and Results
2016-02-17 21:32:28 -08:00
Ari Lazier
b3486c0d0e
final fixes
2016-02-17 20:51:03 -08:00
Ari Lazier
6d02614eaa
add List.filtered
2016-02-17 20:24:08 -08:00
Ari Lazier
d838d61de4
test query refinement
2016-02-17 20:09:39 -08:00
Ari Lazier
e91ef42ebb
add filtered method
2016-02-17 20:06:42 -08:00
Scott Kyle
1b043eb957
Update everything to use React Native 0.20.0
2016-02-17 14:36:58 -08:00
Scott Kyle
137e4d6288
Increase React test timeout interval for CI
2016-02-15 19:23:59 -08:00
Scott Kyle
5f9f00e038
Make ListViewDataSource test go quicker
2016-02-15 16:56:39 -08:00
Scott Kyle
0188517e74
Add test for ListViewDataSource to React Test App
2016-02-15 14:56:44 -08:00
Scott Kyle
1f030a0618
Make several improvements to how tests run under RN
...
These changes include timeouts when waiting on notifications.
2016-02-15 14:50:16 -08:00
Scott Kyle
23a7c5b88d
Don't build JS bundles for the simulator
2016-02-15 14:50:16 -08:00
Scott Kyle
3e1889d342
Merge branch 'master' into sk-listview-merge
...
* master: (207 commits)
Convert to using new React Native MainActivity template
Create RealmReactPackage for our Android plugin
Fix doc for Android
NPM ignore react-native/android folder
Skip building Android module under Xcode
Skip building Android module for iOS tests
gitignore Android downloads folder
Update README with instructions to run on Android
Use un-patched RN for Android by installing hook into JSC
cleanup build system
Use Realm in node_modules for ReactTests on Android
Change Demo => ReactTests
adding a 'publishAndroid' task to generate the AAR with prebuilt .so files
Adjust POM_NAME
Use consistent package naming
Remove old Demo files
Add copyright to JNI file
Cleanup platform.hpp
Make our Android module buildable as a dependency
Add `npm test` command
...
2016-02-15 14:49:31 -08:00
Scott Kyle
e594087644
Convert to using new React Native MainActivity template
...
Adjusted the README to reflect the modern way of doing things.
2016-02-12 11:00:46 -08:00
Scott Kyle
6e4b2440ba
Create RealmReactPackage for our Android plugin
...
Also renamed RealmReactAndroid to RealmReactModule to match the convention used by everyone else.
2016-02-12 09:49:11 -08:00
Scott Kyle
415b45be51
Use un-patched RN for Android by installing hook into JSC
...
This works by installing some assembly into JSGlobalContextCreateInGroup() that will immediately jump out into our own wrapper function so we always can inject the Realm constructor into the context.
2016-02-11 11:14:09 -08:00
Scott Kyle
c9c225c107
Use Realm in node_modules for ReactTests on Android
2016-02-10 17:08:01 -08:00
Scott Kyle
881d4a04c3
Change Demo => ReactTests
2016-02-10 17:03:16 -08:00
Nabil Hachicha
7afdbba2ed
adding a 'publishAndroid' task to generate the AAR with prebuilt .so files
2016-02-10 16:11:36 -08:00
Scott Kyle
c8f925d019
Use consistent package naming
2016-02-09 13:46:09 -08:00
Scott Kyle
8b652adc19
Remove old Demo files
2016-02-09 03:08:56 -08:00
Nabil Hachicha
97345e62a9
unlocking device after the app is installed
2016-02-03 19:00:21 +00:00
Scott Kyle
31db79e29b
Remove realm dependency in realm-tests
...
This caused an error with NPM v3 and was not necessary for us to have.
2016-01-29 00:48:22 -08:00
Scott Kyle
55e67d9bce
Update ReactTests Xcode project
2016-01-29 00:48:22 -08:00
Nabil Hachicha
1e4c905cdc
Change package name fixes #204
2016-01-28 15:09:36 +00:00
Scott Kyle
f957db3a3a
Update run-android.sh scripts
2016-01-26 15:16:49 -08:00
Nabil Hachicha
2eb8238101
fixing adb path
2016-01-26 21:01:00 +00:00
Nabil Hachicha
fca40ec16f
add reverse adb port for physical device
2016-01-26 20:25:00 +00:00
Nabil Hachicha
18cdeaedd5
update test script
2016-01-26 20:23:26 +00:00
Ari Lazier
01c3d80651
merge master
2016-01-22 15:27:17 -08:00
Nabil Hachicha
d784d624dd
add sdk manager to download build tool for Android
2016-01-22 22:41:07 +00:00
Ari Lazier
2c0a92aa63
ci script
2016-01-22 12:15:38 -08:00
Nabil Hachicha
707ca1d3c3
Merge branch 'al-android-example' of https://github.com/realm/realm-js into al-android-example
2016-01-22 18:06:18 +00:00
Nabil Hachicha
d60ed6c15a
exporting tests to junit format to be used by jenkins
2016-01-22 18:05:34 +00:00
Ari Lazier
b76766eb63
change package/app name from Demo to ReactNative Test App
2016-01-21 14:36:50 -08:00
Ari Lazier
a0145df5e4
Merge pull request #202 from realm/sk-example-update
...
Update ReactExample Xcode Project
2016-01-21 07:28:59 -08:00
Nabil Hachicha
bf80fca2c0
Running chrome debug mode request on UI thread + using Facebook SoLoader instead of the Relinker + cleaning dependencies
2016-01-21 13:36:54 +00:00
Scott Kyle
1bb335c587
Merge pull request #197 from realm/sk-react-native-0.18
...
Update React Tests to support React Native 0.18
2016-01-19 15:12:51 -08:00
Ari Lazier
c4d5b9f5cc
merge latest object store
2016-01-19 10:51:43 -08:00
Scott Kyle
92df9bff8c
Update to React Native 0.18.0 official release
2016-01-18 23:01:14 -08:00
Scott Kyle
79229cbce3
Delete old JS file
2016-01-15 16:39:32 -08:00
Scott Kyle
337f8d7650
Remove realm dependency in realm-tests
...
This caused an error with NPM v3 and was not necessary for us to have.
2016-01-15 16:24:53 -08:00
Ari Lazier
5f2a51727b
merge in build system improvements
2016-01-15 12:46:58 -08:00
Ari Lazier
a086955a8c
path/name fixes
2016-01-15 12:34:51 -08:00
Ari Lazier
c6e46b9856
remove unneded dependencies
2016-01-15 11:49:22 -08:00
Nabil Hachicha
62017c1739
fix example deps
...
remove unnecessary requires
reduce dependencies for test projects
using the patched Facebook React Native repo as a dependency
remvoe unecessary/duplicate folder
remove unused dir
remove unused gradle tasks + unecessary duplicate deps
more gradle conf/dependencies cleanup
2016-01-15 16:32:48 +00:00
Scott Kyle
e4866c5560
Update ReactExample Xcode project
...
Added libReact as a target dependency since that seemed to workaround a very weird build issue that would come and go.
2016-01-15 01:33:34 -08:00
Scott Kyle
2f1eca4a9c
Merge branch 'master' into al-android-example
...
* master:
Fix typo in README
Improve clarity of schema parsing and serialization
Add test that checks schema validation
Update README with new Schema API
Cleanup some code and comments to make it consistent
Convert tests to create objects with property objects
Update example apps with new schema API
Remove confusion between propTypes and objectTypes
Simplify object schema info returned from RPC
RPC now keeps object keys in the same order
Change schema API to take properties as an object
Add method to clear mutation listeners in RPC client
Plug small leak from not releasing a JSStringRef
Make RJSStringForValue use consistent exception style
Improve error messages inside RJSUtil
2016-01-14 15:39:45 -08:00
Scott Kyle
741cd4ad19
Update ReactExample Xcode project
...
Added libReact as a target dependency since that seemed to workaround a very weird build issue that would come and go.
2016-01-13 14:34:39 -08:00
Ari Lazier
cd6fd2a2e8
merge changes for v0.18-rc
2016-01-13 14:10:57 -08:00
Ari Lazier
63ffc760bd
merge latest from master
2016-01-13 12:46:07 -08:00
Ari Lazier
570607fa86
instantiate and make calls to rpc server
2016-01-13 11:07:54 -08:00
Nabil Hachicha
55bde66ef8
adding NanoHTTP server for chrome debug
2016-01-13 17:56:38 +00:00
Ari Lazier
211f0eddd5
improve exception message
2016-01-11 19:42:20 -08:00
Ari Lazier
1c5f22bd4d
fix for query tests
2016-01-11 19:32:46 -08:00
Ari Lazier
2c8696ea57
initialize in the right placE
2016-01-11 19:20:33 -08:00
Ari Lazier
b562338b0e
code cleanup, build script
2016-01-11 09:42:26 -08:00
Ari Lazier
4735a91f8c
run tests
2016-01-08 16:33:53 -08:00
Scott Kyle
d7f80e22c8
Update React Tests to support React Native 0.18
...
We had to shift to using an event-based architecture to communicate with the page from native code.
2016-01-07 14:31:04 -08:00
Ari Lazier
23b73378fe
try to load realm module
2016-01-05 20:36:03 -08:00
Ari Lazier
9a15ef4c87
initialize the context when the module is initialized
2016-01-05 20:34:50 -08:00
Scott Kyle
c34990759d
Add test that checks schema validation
2016-01-05 13:54:03 -08:00
Scott Kyle
9be1331dbf
Convert tests to create objects with property objects
...
This makes it more readable and will be the preferred syntax in the documentation (and is much less likely to be deprecated in the future!).
2016-01-05 13:54:03 -08:00
Scott Kyle
43e14093cc
Change schema API to take properties as an object
...
The keys are names of the properties, which is more natural in JS, but will cause issues with ability to create objects where arrays of values. This feature will be removed in a subsequent commit.
2016-01-05 13:40:57 -08:00
Scott Kyle
381dbbe7ba
Merge branch 'sk-npm'
...
* sk-npm:
Add ability to publish NPM module to git
Move RealmJS.mm to correct location
2016-01-05 13:25:20 -08:00
Scott Kyle
2bfedc5d8a
Merge branch 'sk-project-cleanup'
...
* sk-project-cleanup:
Fix for failing React tests
Rename JS test files to be consistent
Cleanup and fix resolving JS test files
Cleanup source groups in Xcode project
Move RealmJS.mm to correct location
2016-01-05 13:19:02 -08:00
Nabil Hachicha
98cb634a36
using dynamic linker to expose s_globalContextRefToJSCExecutor
2016-01-05 11:08:42 -08:00
Nabil Hachicha
8965aa80f7
fixed example, add Relinker to load JNI lib
2016-01-05 11:08:42 -08:00
Ari Lazier
eea8658627
put our react module in our aar
2016-01-05 11:08:42 -08:00
Ari Lazier
15ad6a12ac
remove duplicate project
2016-01-05 11:08:42 -08:00
Ari Lazier
8cb8b0729a
move library to separate project
2016-01-05 11:08:42 -08:00
Nabil Hachicha
28d1f92a7e
add Demo project based on the built realmreact lib
2016-01-05 11:07:21 -08:00
Ari Lazier
1fa0098158
empty implementations for platform methods
2016-01-05 11:07:21 -08:00
Ari Lazier
8104738e1a
use gcc
2016-01-05 11:07:21 -08:00
Ari Lazier
468337263c
link static library
2016-01-05 11:05:56 -08:00
Emanuele Zattin
b37d0093b3
Some small random fixes.
...
Now it gets stuck not being able to find pegtl.hh,
which is nowhere to be seen in the repo.
2016-01-05 11:05:56 -08:00
Ari Lazier
ee341c4fe7
try to use realm core so's (which don't exist yet)
2016-01-05 11:05:44 -08:00
Ari Lazier
3c5a35640c
try to download core
2016-01-05 11:05:44 -08:00
Ari Lazier
d76b77111a
fix for demangle missing
2016-01-05 11:05:44 -08:00
Ari Lazier
50ecaa3b22
just use one symlink to the binding source, make more stuff compile
2016-01-05 11:05:44 -08:00
Ari Lazier
3aaf988953
fixes
2016-01-05 11:05:27 -08:00
Nabil Hachicha
c3d5fd4e09
add Core include + fix c++14 issue
2016-01-05 11:04:06 -08:00
Ari Lazier
2974d87560
fix imports
2016-01-05 11:04:06 -08:00
Nabil Hachicha
5b06c41163
adding module deps + fixing gradle
2016-01-05 11:04:06 -08:00
Ari Lazier
d7ca354a27
add makefile
2016-01-05 11:04:06 -08:00
Ari Lazier
3cd60002ba
add symlinks to binding source
2016-01-05 11:04:06 -08:00
Scott Kyle
632f9d737e
Add methods to create snapshot of List and Results
...
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00
Scott Kyle
3739fab57f
Fix for failing React tests
...
Since the JS test modules have been renamed to have consistent naming, we add a method to actually run the test methods to use our existing abstraction.
2015-12-30 16:47:16 -08:00
Scott Kyle
b3a0627a51
Rename JS test files to be consistent
2015-12-29 14:56:38 -08:00
Scott Kyle
6776eef6c0
Cleanup and fix resolving JS test files
...
The whole lib folder is now copied into the test bundle and the correct path to where a failure occurred is now properly resolved.
2015-12-29 14:55:20 -08:00
Scott Kyle
3da6b54df6
Add ability to publish NPM module to git
...
The top-level package.json explicitly includes the directories it needs (vendor/.npmignore cuts down the cruft). The publish-beta.sh script essentially uses `npm pack` to package up the NPM module and then push it into an orphaned `beta` branch.
2015-12-28 22:01:17 -08:00
Ari Lazier
4c402a7daf
install from test script
2015-12-15 18:18:18 -08:00
Ari Lazier
2476c061c1
npm install react-native if out of date
2015-12-15 18:02:20 -08:00
Scott Kyle
1f2eabeb1a
Update to use React Native 0.16
...
Outside of the ReactExample test, no backwards incompatible changes were needed.
2015-12-08 16:59:12 -08:00
Scott Kyle
1231a45780
Merge pull request #177 from realm/sk-code-sign-fix
...
Fixes for running apps on device
2015-12-08 12:57:46 -08:00
Scott Kyle
4109c86343
Make Realm object properties enumerable
2015-12-08 03:26:57 -08:00
Scott Kyle
7a54b0a256
Merge pull request #176 from realm/sk-rpc-list-fix
...
Fix RPC client error after deleting objects
2015-12-04 12:24:10 -08:00
Scott Kyle
25cfb68779
Remove use of explicit target dependencies
...
The target dependencies are discovered implicitly, and removing the use of explicitly defined dependencies actually resolved a very odd bug with Xcode when building ReactExample.app for a device.
2015-12-02 17:45:09 -08:00
Scott Kyle
e643fd9e3a
No longer code sign RealmReact.framework on copy
...
Doing so causes its embedded frameworks to lose their code signatures, which in turns means the dynamic linker will refuse to load them on device.
2015-12-02 17:45:09 -08:00
Scott Kyle
be0c2a91ea
Fix RPC client error after deleting objects
...
Specifically for objects with lists, since the mutation listener would fire on a list that no longer is attached. If during the mutation listener that error is thrown, then the listener will be removed and the error will not be propagated.
2015-12-01 14:05:33 -08:00
Scott Kyle
1f64573b4e
Update to support React Native 0.15.0
...
Resolves #173
2015-11-30 18:08:51 -08:00
Ari Lazier
564181a887
clean up header search paths
2015-11-30 12:14:50 -08:00
Ari Lazier
5d1e9d4dd3
pr fixes
2015-11-30 11:47:32 -08:00
Ari Lazier
5f584f747f
use underscore rather than dash
2015-11-30 11:23:29 -08:00
Ari Lazier
70edb99e5e
update android test app
2015-11-30 11:23:29 -08:00
Ari Lazier
17b693877d
add android test app
2015-11-30 11:23:29 -08:00
Ari Lazier
eb44b27633
move everything/rename to make room for android
2015-11-30 11:23:29 -08:00
Ari Lazier
cdb254ca44
tests for keypath queries
2015-11-29 18:56:50 -08:00
Ari Lazier
fbb1f42c6e
don't merge predicate to negated and group
2015-11-25 18:32:13 -08:00
Ari Lazier
812930285e
compount parser tests
2015-11-24 10:39:42 -08:00
Ari Lazier
dc62cbe52a
fixes for packager and npm version for react tests
2015-11-23 19:07:50 -08:00
Ari Lazier
9ea8ab25c5
pr feedback
2015-11-23 08:47:09 -08:00
Ari Lazier
ae5e4d82b8
fixes for remaining warnings
2015-11-20 19:50:58 -08:00
Ari Lazier
df7474feb3
run parser tests in RealmJSTests
2015-11-20 15:16:35 -08:00
Ari Lazier
40f0e5f274
move queryTests to parser dir
2015-11-20 14:51:04 -08:00
Ari Lazier
494fbd3a06
object tests
2015-11-20 14:14:35 -08:00
Ari Lazier
22ca94e36e
test and bug fixes for data queries
2015-11-19 15:17:57 -08:00
Ari Lazier
3a9137fa08
put tests in JSON
2015-11-19 14:36:42 -08:00
Ari Lazier
aa3bad1a69
more string tests and bugfix
2015-11-19 13:05:37 -08:00
Ari Lazier
7be7d330ac
more string tests
2015-11-19 13:05:37 -08:00
Ari Lazier
be93d3dd58
first string tests and custom error messages
2015-11-19 13:05:37 -08:00
Ari Lazier
a64fab83ad
make test cases json
2015-11-19 13:05:37 -08:00
Ari Lazier
d7d328d2fe
finish numeric tests
2015-11-19 13:05:37 -08:00
Ari Lazier
b2f682b94b
more int tests
2015-11-19 13:05:37 -08:00
Ari Lazier
e449f10fcc
some int tests
2015-11-19 13:05:37 -08:00
Ari Lazier
20ac833e41
bool tests
2015-11-19 13:05:37 -08:00
Ari Lazier
b6970906e0
JSON test cases
2015-11-19 13:05:37 -08:00
Ari Lazier
5784bbe6ed
start porting over objc query tests
2015-11-19 13:05:37 -08:00
Ari Lazier
f402a45a40
change argument syntax to use $ instead of {}
2015-11-19 13:05:37 -08:00
Ari Lazier
f3d7855c99
test and fix for date queries
2015-11-19 13:05:37 -08:00
Ari Lazier
3a198ec507
support query format strings
2015-11-19 13:05:37 -08:00
Ari Lazier
3b698400b7
support for querying boolean properties
2015-11-19 13:05:37 -08:00
Ari Lazier
d8c89c7098
support for truepredicate/falsepredicate, single quote strings - all tests now pass
2015-11-19 13:05:37 -08:00
Scott Kyle
7b115a934b
ArrayBufferView objects now fully supported
...
Previously we were not accounting for the byte offsets and misunderstood how the Uint8Array constructor worked. The tests now confirm everything works as expected with multiple different typed arrays and slices of the data.
2015-11-17 13:32:32 -08:00
Scott Kyle
7f32ab0b88
Improve JS test assertion failure messages
...
Only the first line is shown in Xcode, so we just a dash to separate the custom message from the helpful one provided by the assertion instead.
2015-11-17 13:32:32 -08:00
Scott Kyle
3bf84a1b6f
Update data properties to return ArrayBuffers
...
As a convenience, the setters will take typed Arrays (e.g. Uint8Array) since that is a common representation of data in JS (as they are "views" of ArrayBuffer objects).
The tests have been updated to reflect this new behavior.
2015-11-17 13:32:31 -08:00
Ari Lazier
283826e687
support latest version
2015-11-13 10:13:33 -08:00
Ari Lazier
5b29f09e7a
don't require any GCDWebServers dependency when building Release
2015-11-11 15:37:03 -08:00
Scott Kyle
5320df9a5f
Merge pull request #116 from realm/sk-realmjs-api
...
Create API that returns constructor JSObjectRef
2015-11-03 16:39:08 -08:00
Scott Kyle
2f4bcee5ce
Update test to ensure unique listener callback behavior
2015-11-03 14:45:06 -08:00
Scott Kyle
aff11983f3
Create API that returns constructor JSObjectRef
...
Resolves #98
2015-11-02 22:51:33 -08:00
Scott Kyle
8cb7e43e2e
Merge pull request #115 from realm/sk-fix-chrome-tests
...
Re-enable chrome tests
2015-11-02 17:00:11 -08:00
Scott Kyle
84b419c815
Fix to run RealmReactTests with release builds
...
In the case of a release build, React Native will not include the RCTWebSocketExecutor.
2015-11-02 15:20:49 -08:00
Ari Lazier
6c6931a97d
enable chrome tests
2015-11-02 13:50:16 -08:00
Scott Kyle
7181a00f01
Fix to make RealmReact tests work in Chrome again
...
Left the RealmReactChromeTests commented out for now until it's confirmed to work in the CI environment.
2015-11-02 13:38:00 -08:00
Scott Kyle
aa55b61b86
Update React Native to 0.13.2
2015-11-02 13:38:00 -08:00
Ari Lazier
87b2c0f6c4
basic tests for null objects during upsert
2015-11-02 13:30:42 -08:00
Ari Lazier
196a0a15a4
allow setting nullable properties to undefined
2015-11-02 10:08:23 -08:00
Scott Kyle
0b35564830
Merge pull request #107 from realm/sk-live-update-fixes
...
Ensure Lists and Results live-update in Chrome
2015-10-28 10:46:43 -07:00
Scott Kyle
d5d05c5d15
Add comments to test to explain canceling transaction
2015-10-28 10:45:42 -07:00