pull/1/head
yann300 6 years ago
parent 355a6d1de3
commit 3b5ad90e3c
  1. 26
      test-browser-debugger/test/vmdebugger.js
  2. 2
      test-browser/tests/ballot.js

@ -18,8 +18,6 @@ module.exports = {
'vmdebugger': function (browser) { 'vmdebugger': function (browser) {
loadTraceNotFound(browser) loadTraceNotFound(browser)
.click('#unload') .click('#unload')
loadTrace(browser)
.click('#unload')
panels(browser) panels(browser)
.click('#unload') .click('#unload')
slider(browser) slider(browser)
@ -40,31 +38,13 @@ function loadTraceNotFound (browser) {
.click('#load') .click('#load')
.click('#txinfo .title') .click('#txinfo .title')
.execute(function () { .execute(function () {
return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML return document.querySelector('#debugger #error').innerHTML
}, [], function (result) { }, [], function (result) {
console.log(result.value) console.log(result.value)
if (result.value.indexOf('not found') === -1) { if (result.value.indexOf('unable to retrieve tx 0x20ef65b8b186ca942zcccd634f37074dde49b541c27994fc7596740ef44cfd51') === -1) {
browser.assert.fail(' txinput panel does not contain <not found> ', 'info about error', '') browser.assert.fail(' "unable to retrieve tx ..." error message should have been displayed ', 'info about error', '')
}
})
return browser
}
function loadTrace (browser) {
browser
.clearValue('#txinput')
.setValue('#txinput', '0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51')
.click('#load')
.click('#txinfo .title')
.execute(function () {
return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML
}, [], function (result) {
if (result.value.indexOf('0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') === -1) {
browser.assert.fail(' txinput panel does not contain 0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51 ', 'info about error', '')
} }
}) })
.click('#unload')
.waitForElementNotVisible('#vmdebugger', 1000)
return browser return browser
} }

@ -45,8 +45,6 @@ function runTests (browser, testData) {
.click('span#tx0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e div[class^="debug"]') .click('span#tx0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e div[class^="debug"]')
.pause(1000) .pause(1000)
.click('#jumppreviousbreakpoint') .click('#jumppreviousbreakpoint')
.click('#stepdetail .title .fa')
.click('#asmcodes .title .fa')
.pause(500) .pause(500)
.perform(function (client, done) { .perform(function (client, done) {
console.log('goToVMtraceStep') console.log('goToVMtraceStep')

Loading…
Cancel
Save