fix test: verifyCallReturnValue

pull/1/head
yann300 7 years ago
parent 2183c3b1b5
commit 5f4fe75c56
  1. 4
      test-browser/helpers/contracts.js

@ -89,9 +89,9 @@ function verifyCallReturnValue (browser, address, checks, done) {
browser.execute(function (address) { browser.execute(function (address) {
var nodes = document.querySelectorAll('#instance' + address + ' div[class^="contractProperty"] div[class^="value"]') var nodes = document.querySelectorAll('#instance' + address + ' div[class^="contractProperty"] div[class^="value"]')
var ret = [] var ret = []
for (var k in checks) { for (var k = 0; k < nodes.length; k++) {
var text = nodes[k].innerText ? nodes[k].innerText : nodes[k].textContent var text = nodes[k].innerText ? nodes[k].innerText : nodes[k].textContent
ret.push(text) ret.push(text.replace('\n', ''))
} }
return ret return ret
}, [address], function (result) { }, [address], function (result) {

Loading…
Cancel
Save