Christopher Jeffrey
1c264deb2c
test: use is_browser instead of try/catch to detect browser.
2014-08-14 12:29:11 -04:00
Manuel Araoz
e857e34b1d
fixing index.html and karma tests
2014-08-14 11:51:56 -04:00
Manuel Araoz
7f07e7b8ac
fixing build.js one error at a time 6
2014-08-14 11:25:15 -04:00
Manuel Araoz
2725b7f6e1
fixing build.js one error at a time 5
2014-08-14 11:19:50 -04:00
Christopher Jeffrey
9aee71e8fd
paypro: fix tests for unspent outputs.
2014-08-14 09:52:43 -04:00
Manuel Araoz
0067ab4da6
fix some karma tests problems
2014-08-14 09:52:42 -04:00
Manuel Araoz
10bd5ba6bf
moving torwards fixing tests
2014-08-14 09:52:42 -04:00
Manuel Araoz
d43e7943d3
move towards fixing karma tests
2014-08-14 09:52:42 -04:00
Manuel Araoz
e2ab9dd0c8
fix one test
2014-08-14 09:52:42 -04:00
Manuel Araoz
1a186b4640
fix requires for karma
2014-08-14 09:52:42 -04:00
Christopher Jeffrey
6ec8a087f3
paypro: fix POST route in fake paypro server.
2014-08-14 09:52:42 -04:00
Christopher Jeffrey
efe41cead4
paypro: use unspecified GET method for first paypro request.
2014-08-14 09:52:42 -04:00
Christopher Jeffrey
61f20605f5
paypro: minor - fix test messages for unit controller tests.
2014-08-14 09:52:42 -04:00
Christopher Jeffrey
05859b77d6
paypro: test - remove old function.
2014-08-14 09:52:42 -04:00
Christopher Jeffrey
d4d33ed2e7
paypro: update tests to use wallet.isShared().
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
9d94fa0b75
paypro: remove old comments and logs from tests.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
a8ab012601
paypro: fix tests for latest master rebase.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
17f3402dab
Revert "Revert "paypro: prepare for txp refactor. will stay reverted until #1001 is merged.""
...
This reverts commit 6fcd27b3ea0f7aa1ef7985560ca917393510c65e.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
8bebbe8ec6
paypro: fix mock server to handle txs as buffers when browserified. tests passing in browser.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
f9bd8c3a04
paypro: try to keep everything big endian to avoid bignum bug in node.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
3931e73da4
paypro: debugging endianness issue in bignum (browser vs node).
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
6f4af88662
paypro: tests - fix browser hanging.
2014-08-14 09:52:41 -04:00
Christopher Jeffrey
bc716646dc
paypro: figure out why paypro tests are hanging in the browser.
2014-08-14 09:52:40 -04:00
Christopher Jeffrey
5c97649f83
paypro: run paypro tests in browser. whitespace.
2014-08-14 09:52:40 -04:00
Christopher Jeffrey
b254dea911
Revert "paypro: prepare for txp refactor. will stay reverted until #1001 is merged."
...
This reverts commit c826acb3e539c4deb047053fd08a2a5e8fb8f8e8.
2014-08-14 09:52:12 -04:00
Christopher Jeffrey
3ade672561
paypro: prepare for txp refactor. will stay reverted until #1001 is merged.
2014-08-14 09:52:12 -04:00
Christopher Jeffrey
f20836a24c
paypro: use server outputs for creating txs again.
2014-08-14 09:52:12 -04:00
Christopher Jeffrey
052e2522be
paypro: stop using global $http.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
d51c1c552f
paypro: potentially use verbatim scripts after setting outputs.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
ac32f56afa
paypro: drop old tx code.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
093fd68c78
paypro: extract addresses from server outputs and craft txs in this manner.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
18d1e4f6e7
paypro: reorganize createPaymentTxSync.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
5f20b09b0b
paypro: remove logs from tests. see #1043 .
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
696323d496
paypro: tests - add more should() calls.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
6505805196
paypro: add separate tests for verifying abstract txp tx and pr.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
a942df63df
paypro: drop sign() calls in verify tests.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
a0137b9e55
paypro: sign an untampered payment request in tests.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
3ff4eb26ea
paypro: add tests for verifyPaymentRequest and signing tampered txs/prs.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
31719e62dd
paypro: 12 tests passing.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
919681633a
paypro: 9 tests passing.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
9c4ee94e35
paypro: 4 tests passing.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
785a9cdd31
paypro: tests - send raw http requests to test mock server.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
f67e30bfd2
paypro: start writing more tests.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
6d64935889
paypro: begin refactoring tests.
2014-08-14 09:52:11 -04:00
Christopher Jeffrey
a93f4532c5
paypro: fix paypro tests.
2014-08-14 09:52:10 -04:00
Christopher Jeffrey
8cb2a96aff
paypro: do not return error on untrusted cert. let peer decide whether to trust.
2014-08-14 09:52:10 -04:00
Christopher Jeffrey
1c4d292a96
paypro: fix mock server. unit controller tests.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
b89ad8f3cc
paypro: controller unit tests for payment protocol.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
4cbc9ebf63
paypro: test - add mock paypro server.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
96c02c1e37
paypro: clean up tests.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
9d81cc0006
paypro: start mocking up tests for running in browser and node.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
e0ff9ca6bd
paypro: fix parseBitcoinURI. start using bitcoin uris in tests.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
283dec1f2e
paypro: clean up test again.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
5e885da184
paypro: clean up test.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
f6e9d647b4
paypro: add hideous test for payment protocol.
2014-08-14 09:52:09 -04:00
Christopher Jeffrey
58b9345f59
test: fix wallet test if copay is in ./node_modules.
2014-08-14 09:52:08 -04:00
Gregg Zigler
5853a197e5
replace try/catch with browserify for copay.js
2014-08-13 15:04:55 -07:00
Yemel Jardi
815c98f7e8
Merge pull request #1076 from matiu/bug/02-open-wallet
...
Bug/02 open wallet
2014-08-13 12:33:46 -03:00
Matias Alejo Garcia
35ab711846
refactor lock warning and add tests
2014-08-12 15:26:15 -04:00
Matias Alejo Garcia
1733f5491b
fix settings page and add tests
2014-08-11 16:26:48 -04:00
Gustavo Maximiliano Cortez
fb3a7191e5
Updated mocha test
2014-08-07 20:40:39 -03:00
Gustavo Maximiliano Cortez
8ad1fa7b02
Fixes: tests. Added karma and mocha tests.
2014-08-07 20:07:41 -03:00
Gustavo Maximiliano Cortez
fe53f1b87c
Merge pull request #1059 from yemel/feature/change-menu
...
Refactor menu, split transactions tab into send and history
2014-08-07 10:26:40 -03:00
Yemel Jardi
17a66f7ad7
update karma tests
2014-08-07 10:20:24 -03:00
Gregg Zigler
c8c7a57416
1. Add TxProposals to mocha test page
...
2. The jshint tool found some instances where var was declared twice within a function. Seemed to originate from copy/paste-style coding. Most were unambiguously intended for a single block within the function. In a few cases, two declarations were consumed by one later reference. In those cases, I removed the duplicate var or I refactored slightly.
2014-08-06 18:44:04 -04:00
Matias Alejo Garcia
cc164af28b
Merge pull request #1045 from cmgustavo/feature/01-version
...
Feature/01 version
2014-08-06 18:34:03 -03:00
Matias Alejo Garcia
ddc8649bd3
fix `comment` handling
2014-08-06 15:56:17 -03:00
Yemel Jardi
ad75265e93
Refactor menu, split transactions tab into send and history
2014-08-06 13:59:33 -03:00
Matias Alejo Garcia
91a05a896e
rm removeRepeated fn
2014-08-05 17:18:02 -03:00
Matias Alejo Garcia
5a2dfe690d
add rebroadcast test
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
91829f8410
remove sender sig check
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
36fcd6882f
add more tests to wallet
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
725f79f5f8
fix tests
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
4cf152999a
add seenBy on creator
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
f5f9848ff1
all test passing!
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
753b890658
txp* test passing
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
966818c53a
add different toObj/fromObj fn for networking
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
d0c43f9bfb
ALL test passing
2014-08-05 16:41:29 -03:00
Matias Alejo Garcia
25631e641a
wallet test passings
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
dc3bbb8859
wallet test passings
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
5d2b50f77f
test in Txproposals working again
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
42c73f9a01
rewrite from scratch tests for TxProposalSet
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
ae042a8292
TxProposal fully testes
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
2fe421b14f
tests for txProposal 1
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
0e211426d7
tests for txProposal
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
05aefc17a5
tests for txProposal
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
72e1dfc114
WIP
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
6e5f06693d
separate TxProposal to a different class. new tests
2014-08-05 16:38:13 -03:00
Matias Alejo Garcia
96a5f0aeb8
add forPath and tests
2014-08-05 16:38:13 -03:00
Gustavo Maximiliano Cortez
bb587d0743
Fix karma test and added a new one
2014-08-05 11:53:58 -03:00
Gustavo Maximiliano Cortez
a5544d08db
Merge pull request #1040 from yemel/feature/improve-1-of-1
...
Remove Name field and copayer list on 1-of-1 wallets
2014-08-05 10:29:46 -03:00
Yemel Jardi
c8d24cc420
Add mock method at FakeWallet
2014-08-05 10:21:29 -03:00
Yemel Jardi
523a48b056
Remove Name field and copayer list on 1-of-1 wallets
2014-08-04 16:27:58 -03:00
Yemel Jardi
9b1708b88e
Save last opened wallet
2014-08-04 15:10:01 -03:00
Gustavo Maximiliano Cortez
854196e72a
Merge pull request #989 from yemel/feature/pre-created-address
...
Add a pre-generated address to the shared branch
2014-08-01 11:04:58 -03:00
Yemel Jardi
59a03c1f25
Change available balance to locked
2014-08-01 10:09:26 -03:00
Yemel Jardi
fdabdc64fe
Add a pre-generated address to the shared branch
2014-07-31 16:13:27 -03:00
Matias Alejo Garcia
4241bdac68
all test pass!
2014-07-29 13:33:54 -03:00
Matias Alejo Garcia
cb8f719a99
all tests BUT hardcoded imports working
2014-07-29 13:10:36 -03:00
Matias Alejo Garcia
578d05e638
all tests BUT hardcoded imports working
2014-07-29 13:09:47 -03:00
Matias Alejo Garcia
0ee93403f3
change names to HD and fix HD* tests
2014-07-29 11:23:58 -03:00
Gustavo Maximiliano Cortez
898e5a12ef
Fixes: karma tests
2014-07-28 13:30:41 -03:00
Gustavo Maximiliano Cortez
85aa5842f1
Fix Conflicts:
...
.gitignore
index.html
js/controllers/backup.js
js/controllers/sidebar.js
2014-07-28 12:28:07 -03:00
Matias Alejo Garcia
3aef6e156b
add FORCED options to TxBuilder creation
2014-07-25 17:45:56 -03:00
Manuel Araoz
e85431861e
fix cases for incomplete transactions
2014-07-25 13:37:12 -03:00
Manuel Araoz
740256772e
fix password tests
2014-07-25 12:34:31 -03:00
Manuel Araoz
4cab2d1929
fix new tests
2014-07-25 12:25:28 -03:00
Manuel Araoz
76e0d8f5ef
add validation for actual tx SIGHASH_TYPE
2014-07-25 12:25:28 -03:00
Manuel Araoz
b5c144d48c
complete validation tests for txProposal SIGHASH
2014-07-25 12:25:27 -03:00
Manuel Aráoz
d7650f30ff
Merge pull request #929 from matiu/feature/bitcore01
...
Updates model and tests to newest bitcore version
2014-07-25 12:23:36 -03:00
Matias Alejo Garcia
7f11793b96
less strict import check for TXP v0
2014-07-25 11:13:48 -03:00
Matias Alejo Garcia
ae08d5611a
fix test / id name
2014-07-25 11:05:10 -03:00
Manuel Araoz
08c2579272
fix test
2014-07-25 10:54:46 -03:00
Manuel Araoz
235920bd84
add failing test for mati to fix
2014-07-25 10:50:18 -03:00
Matias Alejo Garcia
b5e307c3d3
update format
2014-07-24 21:19:54 -03:00
Matias Alejo Garcia
2d481dd406
updates model and tests to newest bitcore version
2014-07-24 21:18:38 -03:00
Yemel Jardi
cff8dcb41b
Show addresses for other copayers
2014-07-22 16:13:11 -03:00
Gustavo Maximiliano Cortez
b17bc2310d
test for new angular directive: match password inputs
2014-07-18 18:18:05 -03:00
Gustavo Maximiliano Cortez
91c7ab100d
Fixes karma tests
2014-07-16 19:00:34 -03:00
Yemel Jardi
3ebf88f6aa
Improve indexDiscovery tests performance
2014-07-10 16:19:09 -03:00
Ryan X. Charles
643cad3a39
change encryption to work on hex strings
...
..instead of binary, to work around an issue with bitcore/sjcl. I'm not sure
what the issue is exactly, except that encryption of binary data isn't working
correctly due to some kind of string stuff involving decodeURIComponent inside
sjcl. I haven't fully figured it out. For now I am changing the network
protocol to hex to workaround the issue.
See this: https://github.com/bitpay/bitcore/pull/416
2014-07-09 01:13:42 -07:00
Ryan X. Charles
88ab38eb00
add nonce support to WebRTC and Wallet
...
Each person keeps track of their own nonce, and the nonces of the other
copayers. The nonce is iterated for each message. If a person ever doesn't
iterate their nonce, that message is discarded by the copayers.
The nonces are saved as networkNonce (your nonce) and networkNonces (the nonces
of your copayers) in the wallet file.
In order to support restoring old wallets, the first four bytes of the 8 byte
nonce are actually the current time in seconds. Thus you can restore an old
wallet, because certainly at least one second has passed since your last
message. Only if you try to restore an old wallet within 1 second from the time
of your last message will you have a problem (or if your system clock is
grossly inaccurate).
2014-07-08 23:03:30 -07:00
Ryan X. Charles
a1155c2798
add support for 8 byte big endian nonce to Message
...
...network protocol is backwards incompatible with previous network protocl.
also includes a second version number for backwards-compatible changes (the
original version number was for backwards-incompatible changes).
2014-07-08 20:02:37 -07:00
Gustavo Maximiliano Cortez
d91c42ee30
Merge pull request #873 from matiu/feature/test01
...
Feature/test01
2014-07-08 20:13:23 -03:00
Matias Alejo Garcia
7a072e83d9
.
2014-07-08 20:05:41 -03:00
Matias Alejo Garcia
248c18596c
more tests
2014-07-08 19:52:47 -03:00
Gustavo Maximiliano Cortez
5d5bf3dfc5
Merge pull request #849 from yemel/feature/backup-wallet
...
Wallet Backups
2014-07-08 19:17:43 -03:00
Matias Alejo Garcia
fb2b6c40ba
add tests to localencrypted
2014-07-08 19:11:48 -03:00
Gustavo Maximiliano Cortez
937369d0c7
Merge pull request #870 from matiu/bug/handlerNetErrors
...
Bug/handler net errors
2014-07-08 15:59:40 -03:00
Yemel Jardi
4303b0beab
Add tests
2014-07-08 15:54:10 -03:00
Yemel Jardi
e6a9a443cc
Update tests
2014-07-08 15:54:10 -03:00
Matias Alejo Garcia
b0ff5494e0
Merge pull request #865 from maraoz/feature/force-testnet
...
Feature: allow to force network from config
2014-07-08 15:35:31 -03:00
Matias Alejo Garcia
bbac45ee7a
fixes handling networking errors and retries. Adds tests
2014-07-08 15:25:12 -03:00
Matias Alejo Garcia
5d63741f35
Merge pull request #862 from yemel/fix/address-list
...
Fix showing QR code on address list when it shouldn't
2014-07-08 15:05:55 -03:00
Manuel Araoz
00cf32fc8d
add forceNetwork parameter and test it
2014-07-08 12:34:49 -03:00
Yemel Jardi
cef5b72557
Fix showing QR code on address list when it shouldn't
2014-07-08 12:23:10 -03:00
Matias Alejo Garcia
50a29909ba
remove test
2014-07-08 12:02:20 -03:00
Matias Alejo Garcia
360ccd724d
change settings tab name
2014-07-08 10:48:56 -03:00
Matias Alejo Garcia
141e8bddd3
fixes txproposal notifications
2014-07-08 08:58:24 -03:00
Gustavo Maximiliano Cortez
6e442cd902
Merge pull request #847 from matiu/bug/handleInsightErrors
...
handle empty Insight responses
2014-07-07 20:26:12 -03:00
Gustavo Cortez
14cea0362f
Fixes and re-factory
2014-07-07 20:01:50 -03:00
Matias Alejo Garcia
b9b09d5f11
add stub to _request
2014-07-07 19:33:59 -03:00
Gustavo Cortez
c00deb25f9
Fix tests
2014-07-07 19:12:34 -03:00
Gustavo Cortez
a1e5246727
updated
2014-07-07 18:13:26 -03:00
Matias Alejo Garcia
d192cc5270
handle empty Insight responsed
2014-07-07 18:12:58 -03:00
Gustavo Cortez
0931024e23
Fixes: verify addressbook method
2014-07-07 17:38:17 -03:00
Matias Alejo Garcia
f497d76405
Merge pull request #816 from yemel/feature/bipNNN-refactor
...
Feature/bip nnn refactor
2014-07-07 15:55:13 -03:00
Ryan X. Charles
b775220209
update to bitcore v0.1.25
...
...to fix an error where the scriptForAddress function no longer exists.
2014-07-07 10:35:06 -07:00
Gustavo Cortez
7cdf559fd7
Fixes typos: Matias's suggestions. Added more tests
2014-07-07 10:58:43 -03:00
Yemel Jardi
13cf5e4216
change import to fix index.html tests
2014-07-07 10:32:19 -03:00