Commit 492e5049 authored by zelig's avatar zelig Committed by Jeffrey Wilcke

rename js methods in js_test for new console API

+ rebase fixes
parent 042c3290
This diff is collapsed.
...@@ -254,7 +254,7 @@ func TestSignature(t *testing.T) { ...@@ -254,7 +254,7 @@ func TestSignature(t *testing.T) {
} }
func TestContract(t *testing.T) { func TestContract(t *testing.T) {
t.Skip("contract testing is implemented with mining in ethash test mode. This takes about 7seconds to run. Unskip and run on demand") // t.Skip("contract testing is implemented with mining in ethash test mode. This takes about 7seconds to run. Unskip and run on demand")
tmp, repl, ethereum := testJEthRE(t) tmp, repl, ethereum := testJEthRE(t)
if err := ethereum.Start(); err != nil { if err := ethereum.Start(); err != nil {
t.Errorf("error starting ethereum: %v", err) t.Errorf("error starting ethereum: %v", err)
...@@ -285,7 +285,7 @@ func TestContract(t *testing.T) { ...@@ -285,7 +285,7 @@ func TestContract(t *testing.T) {
` }\n` + ` }\n` +
`}\n` `}\n`
if checkEvalJSON(t, repl, `admin.contractInfo.stop()`, `true`) != nil { if checkEvalJSON(t, repl, `admin.stopNatSpec()`, `true`) != nil {
return return
} }
...@@ -355,7 +355,7 @@ multiply7 = Multiply7.at(contractaddress); ...@@ -355,7 +355,7 @@ multiply7 = Multiply7.at(contractaddress);
return return
} }
if checkEvalJSON(t, repl, `admin.contractInfo.start()`, `true`) != nil { if checkEvalJSON(t, repl, `admin.startNatSpec()`, `true`) != nil {
return return
} }
if checkEvalJSON(t, repl, `multiply7.multiply.sendTransaction(6, { from: primary })`, `"0xcb08355dff8f8cadb5dc3d72e652ef5c33792cb0d871229dd1aef5db1c4ba1f2"`) != nil { if checkEvalJSON(t, repl, `multiply7.multiply.sendTransaction(6, { from: primary })`, `"0xcb08355dff8f8cadb5dc3d72e652ef5c33792cb0d871229dd1aef5db1c4ba1f2"`) != nil {
...@@ -381,17 +381,17 @@ multiply7 = Multiply7.at(contractaddress); ...@@ -381,17 +381,17 @@ multiply7 = Multiply7.at(contractaddress);
if checkEvalJSON(t, repl, `filename = "/tmp/info.json"`, `"/tmp/info.json"`) != nil { if checkEvalJSON(t, repl, `filename = "/tmp/info.json"`, `"/tmp/info.json"`) != nil {
return return
} }
if checkEvalJSON(t, repl, `contentHash = admin.contractInfo.saveInfo(contract.info, filename)`, contentHash) != nil { if checkEvalJSON(t, repl, `contentHash = admin.saveInfo(contract.info, filename)`, contentHash) != nil {
return return
} }
if checkEvalJSON(t, repl, `admin.contractInfo.register(primary, contractaddress, contentHash)`, `true`) != nil { if checkEvalJSON(t, repl, `admin.register(primary, contractaddress, contentHash)`, `true`) != nil {
return return
} }
if checkEvalJSON(t, repl, `admin.contractInfo.registerUrl(primary, contentHash, "file://"+filename)`, `true`) != nil { if checkEvalJSON(t, repl, `admin.registerUrl(primary, contentHash, "file://"+filename)`, `true`) != nil {
return return
} }
if checkEvalJSON(t, repl, `admin.contractInfo.start()`, `true`) != nil { if checkEvalJSON(t, repl, `admin.startNatSpec()`, `true`) != nil {
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment