1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
Commit Graph

509 Commits

Author SHA1 Message Date
sdtsui
02c2106c3b Merge branch 'master' into feat/mm-ui-5 2017-08-06 19:55:34 -07:00
frankiebee
89a4fef1e4 Merge branch 'master' into transactionControllerRefractor 2017-08-04 14:45:22 -04:00
frankiebee
54739cb798 test for pending tx watcher 2017-08-04 14:40:22 -04:00
frankiebee
4ac0b97202 test for SufficientBalance 2017-08-04 14:36:27 -04:00
frankiebee
3dcc199845 rename the test description Transaction Manger -> Message Manger 2017-08-04 13:27:08 -04:00
kumavis
5a9257208c Merge branch 'master' into NewUI 2017-08-03 21:02:01 -07:00
kumavis
d526f68c8e test - actions - tx - fix async test 2017-08-03 20:56:53 -07:00
kumavis
efb7543c6d test - actions - remove commented code 2017-08-03 20:53:47 -07:00
kumavis
500e7d1f04 nodeify - test - syntax nitpick 2017-08-03 20:52:09 -07:00
frankiebee
b955b5a89a add test for no callback error 2017-08-03 22:10:33 -04:00
frankiebee
a8966c4a4f fix test 2017-08-03 22:02:31 -04:00
kumavis
e223b0c789 test - dont mix callback and promise 2017-08-03 16:34:38 -07:00
kumavis
da16f39626 Merge branch 'master' of github.com:MetaMask/metamask-extension into greenkeeper/initial 2017-08-03 15:05:32 -07:00
Kevin Serrano
81982d01c0
Merge branch 'NewUI' of github.com:MetaMask/metamask-plugin into NewUI 2017-08-03 13:10:46 -07:00
kumavis
8a9d0073b1 Merge pull request #1848 from MetaMask/transactionControllerRefractor
Transaction controller refractor part 1: promises for everyone and more tests!
2017-08-02 19:57:16 -07:00
frankiebee
5ac4c2de6f remove unused sinon 2017-08-02 19:11:51 -04:00
frankiebee
0808eb2256 fix test 2017-08-02 19:07:18 -04:00
frankiebee
b80c7e417b move newUnapprovedTransaction to transactions.js 2017-08-02 18:59:34 -04:00
kumavis
8c6f01b910 blacklist controller - breakout from metamask and infura controllers 2017-08-02 15:54:59 -07:00
kumavis
ecaa235b5e phishing detection - move phishing detection into contentscript and metamask controller 2017-08-02 14:26:10 -07:00
frankiebee
25cffd21f8 Merge branch 'master' into transactionControllerRefractor 2017-08-02 11:41:29 -04:00
frankiebee
21e76484d6 add test for addTxDefaults 2017-08-02 11:34:45 -04:00
frankiebee
432f516ab0 make addUnapprovedTransaction async function and use promise based ethQuery 2017-08-02 10:26:25 -04:00
kumavis
9eb13aee00 blacklist - add tests for metamask subdomains 2017-08-01 17:05:36 -07:00
kumavis
9d345e744d blacklist - clearer test format 2017-08-01 16:58:40 -07:00
Dan Finlay
d932524eaf Merge branch 'master' into NewUI 2017-07-27 15:24:10 -07:00
Dan Finlay
f8cadbcb32 Merge branch 'master' into NewUI 2017-07-27 15:10:02 -07:00
Dan Finlay
6675241fa9 Merge branch 'master' into i1805-LiveBlacklistUpdating 2017-07-26 16:46:59 -07:00
Kevin Serrano
6a9d40c558
Add test for blacklister. 2017-07-26 15:24:57 -07:00
kumavis
55a55141d0 nonce-tracker - fix test 2017-07-26 11:43:37 -07:00
kumavis
5ec73c0e65 tx cont - fix test to use async api 2017-07-25 14:39:17 -07:00
kumavis
4445ba1569 tx cont - add argument for provider constructor 2017-07-25 14:36:19 -07:00
Dan Finlay
a22adec66f Replace ui with responsive-ui 2017-07-24 17:05:07 -07:00
Dan Finlay
a41e5788cf Merge branch 'master' into NewUI 2017-07-20 12:39:06 -07:00
Dan Finlay
86d367957f Move responsive ui into its own folder for easier merges 2017-07-20 12:38:38 -07:00
sdtsui
2adfce772c Add new tests for dropdown component 2017-07-18 05:31:52 -07:00
Dan Finlay
614501e743 Fix transaction confirmation ordering
Newest tx or message will now always appear last, and a new tx proposed after the user has a confirmation box open will never change the confirmation to a different tx proposed.

Fixes #1637
2017-07-17 14:18:00 -07:00
tmashuang
a4c7d95d0d Sinon stub infura network status 2017-07-14 13:06:42 -07:00
tmashuang
02cf65d513 Use Let instead of var 2017-07-14 11:50:41 -07:00
tmashuang
bda52f7cba Infura Network response tests 2017-07-14 10:34:03 -07:00
frankiebee
7eccf5905a make publishTransaction and signTransaction async methods 2017-07-13 15:25:43 -04:00
sdtsui
1507da139d Add tests for new dropdown component 2017-07-13 00:40:22 -07:00
frankiebee
751103d948 Merge branch 'master' into nonce-tracker 2017-07-12 15:10:58 -07:00
frankiebee
aeefcbd75b Fix test to match behavior 2017-07-12 15:10:52 -07:00
kumavis
23d44e5399 tests - disable infura test 2017-07-11 15:30:36 -07:00
frankiebee
971d25a8ab Merge branch 'master' into nonce-tracker 2017-07-11 12:41:03 -07:00
Dan Finlay
c7b9e3fb18 Improve insufficient balance checking in retry loop 2017-07-11 12:19:01 -07:00
kumavis
f5de16c911 test - tx controller - fix promise handling 2017-07-07 14:32:03 -07:00
kumavis
ab8bae421e test - tx-controller - stub block-tracker method 2017-07-07 14:26:52 -07:00
kumavis
d228f46254 Merge branch 'master' into nonce-tracker 2017-07-07 14:21:43 -07:00
Dan Finlay
07d4e4fe6f Fix failing test 2017-07-05 23:24:33 -07:00
Dan Finlay
96df7ad8d3 Add missing done 2017-07-05 23:04:51 -07:00
Dan Finlay
ef1282b556 Typo fix 2017-07-05 22:48:11 -07:00
Dan Finlay
a915dfdeaa Add failing test for retrying an over-spending tx 2017-07-05 22:36:52 -07:00
frankiebee
847a4282a2 Merge branch 'master' into nonce-tracker 2017-06-27 13:10:56 -07:00
frankiebee
42a2bcb132 remove option fetch 2017-06-22 14:06:20 -07:00
frankiebee
1ddcbaad5b add done and stub fetch 2017-06-22 13:47:20 -07:00
Kevin Serrano
199663c0a4
Add test for infura controller. 2017-06-22 12:51:53 -07:00
frankiebee
abbbe1156c Merge branch 'master' into nonce-tracker 2017-06-21 19:52:28 -07:00
frankiebee
92df9965eb fix nonceTracker 2017-06-21 19:51:00 -07:00
frankiebee
fa8c74fe9b add a test for #getNonceLock 2017-06-21 17:28:19 -07:00
Thomas Huang
88844946fe Remove second linting script for tests 2017-06-17 12:14:35 -07:00
frankiebee
e672f2da0d remove irrelevant test 2017-06-16 17:04:56 -07:00
frankiebee
b67bc7043e Fix test to call done 2017-06-15 15:25:22 -07:00
kumavis
b3492d9c17 transaction controller - use nonce-tracker 2017-06-14 23:44:02 -07:00
frankiebee
a10740af7e add a check for weather a tx is included in a block when jumping blocks 2017-06-14 20:17:59 -07:00
Thomas Huang
c0f07844af Finish async when failing async test 2017-06-12 17:52:37 -07:00
Thomas Huang
dbc48c3992 Make test Async 2017-06-12 17:42:54 -07:00
Thomas Huang
13e6672028 Linting 2017-06-12 11:08:32 -07:00
Kevin Serrano
f7773538eb
Modify tests for new api mock.' 2017-06-05 16:24:32 -07:00
Kevin Serrano
5e19a4a833
Modfiy test to ether standards. 2017-05-24 10:51:44 -07:00
Kevin Serrano
45285a5a2f
Merge branch 'master' into i1412-decimalizethegas 2017-05-24 09:55:32 -07:00
frankiebee
e23c0f98fa clean up test 2017-05-24 11:57:31 -04:00
frankiebee
db982cf795 stop polling when switching networks 2017-05-24 11:52:18 -04:00
frankiebee
243eeff7cb Fix for tests 2017-05-23 19:49:57 -04:00
Kevin Serrano
31d17c9e25
Fix test, create new value for precision/scale 2017-05-23 14:26:37 -07:00
Kevin Serrano
717db41d0b
Modify test, replace clone package. 2017-05-17 14:18:01 -07:00
Dan Finlay
bfb1c92ded Linted test 2017-05-17 00:35:26 -07:00
Dan Finlay
6f02f5bc5d Clean up test 2017-05-17 00:33:19 -07:00
Dan Finlay
e26501aa01 Simplify test to represent realistic use case 2017-05-17 00:19:31 -07:00
Dan Finlay
c2b012ccc5 Merge branch 'master' into i1412-BrutalTests 2017-05-17 00:16:26 -07:00
Dan Finlay
c0516ddf33 Add test requiring high precision 2017-05-17 00:10:18 -07:00
Dan Finlay
6491b42266 Add test around txManager#approveTransaction 2017-05-16 18:16:18 -07:00
Dan Finlay
c6fd509051 Improve test 2017-05-16 17:06:19 -07:00
Dan Finlay
c1bef31d9d Linted 2017-05-16 16:50:03 -07:00
Dan Finlay
cfb7bfed18 Fix quotation mark 2017-05-16 16:44:17 -07:00
Dan Finlay
caeadc2407 Linted and removed unused deps 2017-05-16 16:19:10 -07:00
Dan Finlay
a15e753c80 Add gas updating test to tx controller tests 2017-05-16 13:22:03 -07:00
Dan Finlay
a00941c889 Remove only line from test 2017-05-16 13:21:31 -07:00
Dan Finlay
2df9344be5 Rename tx manager to tx controller 2017-05-16 10:35:28 -07:00
Dan Finlay
d165f3a2b6 Merge pull request #1436 from MetaMask/mig13
migration 13 - change provider from testnet to ropsten
2017-05-16 09:09:28 -07:00
kumavis
28aba6e9de migration 13 - change provider from testnet to ropsten 2017-05-15 23:56:13 -07:00
Dan Finlay
6abdec608e Merge branch 'master' into i1407-FixNonEditingTxForm 2017-05-15 15:36:03 -07:00
Dan Finlay
f9c0fc0e8c Clean up test 2017-05-15 15:23:38 -07:00
Dan Finlay
75d9b5619c Verify updating gas value updates 2017-05-15 15:21:28 -07:00
Dan Finlay
4b341e6a95 Got test failing nearly correctly 2017-05-15 15:07:38 -07:00
Dan Finlay
f0eeb1e162 Got a useful error message for next step 2017-05-11 17:43:40 -07:00
Dan Finlay
de5cf2526c Fix test up a bit 2017-05-11 17:15:45 -07:00
Dan Finlay
60746a9859 Use react test utils to start composing test 2017-05-11 17:09:23 -07:00
Dan Finlay
16005ebd3a Got test failing 2017-05-11 15:28:33 -07:00
Dan Finlay
113f7d67f1 Fix tests add logs 2017-05-11 14:29:44 -07:00
frankiebee
8421cf9cce Create test for Migrator 2017-05-11 23:25:34 +02:00
Dan Finlay
e9b11a430b Add an attempt at a unit test for reproducing #1407 2017-05-10 17:26:51 -07:00
Thomas Huang
1e4855fc0e Whoops missed some modules 2017-05-04 15:21:51 -07:00
Thomas Huang
9bd7d06c4f Remove unused modules and STORAGE_KEY 2017-05-04 15:06:27 -07:00
Thomas Huang
0b13429daf Lint tests 2017-05-04 14:35:10 -07:00
kumavis
810f5881f6 Merge branch 'master' of github.com:MetaMask/metamask-plugin into platform 2017-03-31 17:57:47 -07:00
Dan Finlay
0a5c634081 Merge pull request #1297 from MetaMask/eip155
tx-manager - add eip155 support
2017-03-31 10:33:04 -07:00
kumavis
965c806a45 test - fix notice-controller test 2017-03-30 19:26:01 -07:00
kumavis
bd704b1d7e etc - fix notification-manager ref, remove duplicated test file 2017-03-30 19:05:11 -07:00
kumavis
12918e1894 tests - tx-manager - fix assert and clean formatting 2017-03-30 16:06:27 -07:00
kumavis
47ea545241 tests - add missing done 2017-03-30 15:43:01 -07:00
kumavis
1dce352523 tx-manager - add eip155 support 2017-03-30 14:23:23 -07:00
kumavis
16b5f4a210 tests - tx-utils gasBuffer calc - fix bug and user easier numbers 2017-03-29 23:59:42 -07:00
kumavis
918f388463 explorer - fix ropsten explorer link tests 2017-03-27 11:32:00 -07:00
kumavis
4b9f1c0e0c tests - fix ropsten link check 2017-03-27 11:01:10 -07:00
Kevin Serrano
f8b404a478
correct bug in test. 2017-03-24 17:23:56 -04:00
Kevin Serrano
360afacd70
Add tests. 2017-03-24 17:21:58 -04:00
Kevin Serrano
d99b5a9e5a
Add migration tests to ensure that bodies are erased properly in notices. 2017-03-23 10:15:42 -04:00
Dan Finlay
b6e2eaf7b1 Remove eth-lightwallet 2017-03-16 11:16:03 -07:00
Kevin Serrano
d85cc7ec4e Add test to account for prevention of identities duplication. 2017-03-10 10:48:07 -08:00
Kevin Serrano
c47f7f6a76 Add another test for duplicates. 2017-03-10 10:34:18 -08:00
Kevin Serrano
dc2d614da6 Add basic tests. 2017-03-10 09:52:05 -08:00
Dan Finlay
67c3126e63 Merge branch 'master' into kumavis-patch-1 2017-03-08 10:16:50 -08:00
Kevin Serrano
86f71d504c Merge branch 'master' into i1144-moarrpc 2017-03-08 09:28:36 -08:00
kumavis
92b8443824 tx-utils - add encoding utils 2017-03-07 22:51:39 -08:00
kumavis
c063fab993 tx-utils - stricter naming type-based convention 2017-03-07 22:47:35 -08:00
kumavis
68b99dfb08 test - tx-utils
add tests for `addGasBuffer`
2017-03-07 22:28:02 -08:00
jaredpereira
52ee007fcb Merge branch 'master' into i1118-IncreaseGasBuffer 2017-03-07 22:55:56 -05:00
Jared Pereira
4916331c53 change BN.mul to BN.muln 2017-03-07 22:42:16 -05:00
Jared Pereira
de44cd9ba4 add gas buffer multiply test 2017-03-07 20:49:40 -05:00
Kevin Serrano
4562e41d33
Fix tests until new ones to-be-written. 2017-03-07 16:10:06 -08:00
Kevin Serrano
970324b699
Merge github.com:MetaMask/metamask-plugin into i1144-moarrpc 2017-03-07 16:02:42 -08:00
Kevin Serrano
e7e024bcdd
Refactor of code into separate reducers and actions. 2017-03-07 16:01:51 -08:00
Dan Finlay
fba7a50e1b Fixed encoding 2017-03-07 11:43:59 -08:00
Dan Finlay
6253885e28 Remove unrelated test file 2017-03-07 11:36:13 -08:00
Dan Finlay
e78e642eef Add gas buffer test 2017-03-07 11:34:11 -08:00
Kevin Serrano
08ca7dac5a
Merge branch 'master' into i1144-moarrpc 2017-03-07 10:37:31 -08:00
Kevin Serrano
01f2ec4823
Modify tests.' 2017-03-07 10:37:01 -08:00
Dan Finlay
99b49b11f6 Fix test name 2017-03-06 17:36:37 -08:00
Dan Finlay
70e14b8a6f Fixed internal encoding test case 2017-03-06 17:36:08 -08:00
Dan Finlay
e66e755766 Fix normalizeMsgData function to always return hex prefixed 2017-03-06 16:33:33 -08:00
Dan Finlay
af337dfae5 Fix function names 2017-03-06 15:17:45 -08:00
Dan Finlay
9bd8c5f723 Render personal_sign messages as utf-8 text
Calls to `personal_sign` are now:

- When hex encoded, preserved as hex encoded, but displayed as utf-8 text.
- When not hex encoded, decoded as utf-8 text as hex for signing.
- The messages proposed for signing are displayed as UTF-8 text.
- When the message cannot be rendered as UTF-8 text, it is displayed as hexadecimal.

Fixes #1173
2017-03-06 15:04:11 -08:00
Kevin Serrano
e66035254f
More conflict resolution. 2017-03-01 10:04:25 -08:00
Kevin Serrano
0a3849ec84
Fix merge conflicts. 2017-03-01 10:01:21 -08:00
Dan Finlay
6fb33853f2 Fix test reference 2017-02-27 10:53:36 -08:00
Dan Finlay
5edb3db969 Merge branch 'master' into i1144-moarrpc 2017-02-27 10:36:48 -08:00
Kevin Serrano
930dafc4b0
Fix spelling error. 2017-02-24 15:30:18 -08:00
Dan Finlay
d1bce61996 Remove irrelevant tests 2017-02-23 17:45:23 -08:00
Kevin Serrano
62854398f1
Tested against code to play nice with unit tests. 2017-02-23 13:56:58 -08:00
Dan Finlay
0584988688 Move sigUtil and keyrings to external modules
These external modules now have their own test coverage and build enforcement. This allowed me to somewhat more easily add good tests around our personalSign strategy (held now in [eth-sig-util](https://github.com/flyswatter/eth-sig-util), and allow each of the keyrings to import that, etc.
2017-02-21 14:25:47 -08:00
Dan Finlay
352bb5cb39 Merge branch 'master' into dev 2017-02-15 15:49:04 -08:00
Kevin Serrano
d0e2846eca
Complete migration tests. 2017-02-15 11:15:47 -08:00
Kevin Serrano
cd75d86187
Add migrations for removing terms of use data. 2017-02-14 13:21:00 -08:00
Dan Finlay
97b8410b30 Verify messages in a loop 2017-02-13 21:29:22 -08:00
Dan Finlay
f2486fbdd3 got hash test passing 2017-02-13 21:25:02 -08:00
Dan Finlay
b862d94209 Add failing test for signature recovery 2017-02-13 20:13:11 -08:00
Kevin Serrano
65c84ac4b2
Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
Frankie
de6455151e Revert old style message sighing 2017-02-09 17:32:49 -08:00
kumavis
e1719191f4 test - skip eth_sign tests until we have test data 2017-02-03 15:16:21 -08:00
kumavis
9e4ef45b6a migration #9 - break out CurrencyController substate 2017-02-02 23:32:24 -08:00
kumavis
f08f40aee2 txManager - depend on preferencesStore 2017-02-02 21:09:17 -08:00
kumavis
0c6df24ecf metamask - introduce networkStore 2017-02-02 20:59:47 -08:00
kumavis
99fa9ab13a migration 7 - break off TransactionManager substate 2017-02-02 20:20:13 -08:00
kumavis
bcb86f38cb messageManager - move view state to obs-store 2017-02-02 18:21:22 -08:00
Frankie
54b1339f6a Merge branch 'dev' into messageManagerCleanUp 2017-02-01 13:05:58 -08:00
Frankie
ce0c3ed03c Merge branch 'dev' into messageManagerCleanUp 2017-02-01 12:03:42 -08:00
Frankie
1b16b46241 code clan up and tests 2017-02-01 11:54:01 -08:00
kumavis
1cb730144d metamask - adopt isInitialized from keyring controller 2017-02-01 00:31:26 -08:00
kumavis
cd5d952600 keyring - move identities into memStore 2017-02-01 00:17:48 -08:00
kumavis
c0d3db6a8c keyring - synchronous getState 2017-01-31 20:02:38 -08:00
kumavis
2fa60cfcbf continue rename selectedAccount to selectedAddress 2017-01-30 15:25:12 -08:00
Frankie
fdee1e3701 Merge branch 'dev' into messageManagerCleanUp 2017-01-28 22:59:28 -08:00
Frankie
8be68575bb Clean up message manger includes:
Provider egine bump
Remove presence of message manger in keyring controller
Change the status wording fom conf to approved
make Message manager a class
fix messages not being apart of the badge
re write message manger to better reflect controller pattern
2017-01-28 20:28:20 -08:00
kumavis
4dd6ba9c1b migration 5 - move keyring controller state to substate 2017-01-28 19:19:03 -08:00
kumavis
3afd0ef27d tests - remove persistence and start with initial state 2017-01-27 23:04:34 -08:00
kumavis
a14a25c423 config-manager - default to USD for currentFiat 2017-01-26 15:22:13 -08:00
kumavis
76ce348a04 obs-store - use published module 2017-01-24 19:47:00 -08:00
kumavis
bb1ee8e649 Merge branch 'dev' of github.com:MetaMask/metamask-plugin into obs-store2 2017-01-24 16:09:57 -08:00
kumavis
463a56ff54 background controller - extract KeyringC.placeSeedWords to MetamaskC 2017-01-24 15:33:33 -08:00
kumavis
74dc20bdf1 Merge branch 'dev' into obs-store2 2017-01-21 10:06:50 -08:00
Dan Finlay
7e886dff77 Wrote failing test for eth.sign 2017-01-16 23:26:37 -08:00
kumavis
053066b57f Merge branch 'dev' into simple-keystore-fix 2017-01-16 12:10:04 -08:00
kumavis
4a09f856d1 test - keyring - simple - fix fixture data 2017-01-16 12:08:20 -08:00
Dan Finlay
5dd5619e5d Merge branch 'master' into dev 2017-01-16 10:55:32 -08:00
kumavis
85634326e8 test - clear localStorage on test start 2017-01-14 22:35:26 -08:00
kumavis
91e5cc0f29 test - clear localStorage in case CI caches it (?) 2017-01-14 22:30:12 -08:00
kumavis
993daebc4e test - txManager - add network to all txs 2017-01-14 22:09:19 -08:00
kumavis
3df9ce9809 tests - txManager - add getNetwork fn to fixture txManager 2017-01-14 21:52:09 -08:00
Frankie
87505e1742 fix for linting 2017-01-13 18:01:50 -08:00
kumavis
29e83d71a8 background - handle tx finalization in controllers instead of provider-engine 2017-01-13 02:00:11 -08:00
kumavis
b33c51c0a6 migrations - introduce promise-based migrator 2017-01-12 01:17:05 -08:00
kumavis
3bc996878b background - move pojo migrator to outside of metamask controller 2017-01-11 22:47:56 -08:00
kumavis
2019c02fc0 test - fix tests from obs-store 2017-01-11 19:31:42 -08:00
kumavis
bd382f4705 tests - add fetch polyfill 2017-01-10 12:39:01 -08:00
Dan Finlay
2dbbc0dce7 Merge remote-tracking branch 'origin/kumavis-readme-gource' into RevertTxManager 2017-01-02 17:32:51 -08:00
Dan Finlay
5e8a344f97 Correct getState test to be async 2016-12-23 18:40:36 -08:00
Frankie
fa3e708f34 Merge branch 'dev' into TxManager 2016-12-23 12:48:36 -08:00
Frankie
fde69ea0ba fix some minor spelling mistakes and clean up code 2016-12-23 12:43:42 -08:00