test correction for waring

pull/3/head
LianaHus 5 years ago committed by Liana Husikyan
parent b37afb9639
commit 6296675abb
  1. 4
      test-browser/tests/staticAnalysis.test.js

@ -39,7 +39,7 @@ function runTests (browser) {
.clickLaunchIcon('solidityStaticAnalysis') .clickLaunchIcon('solidityStaticAnalysis')
.click('#staticanalysisView button') .click('#staticanalysisView button')
.waitForElementPresent('#staticanalysisresult .staticAnalysisWarning', 2000, true, function () { .waitForElementPresent('#staticanalysisresult .staticAnalysisWarning', 2000, true, function () {
listSelectorContains(['browser/Untitled.sol:3:33:Use of tx.origin', listSelectorContains(['Use of tx.origin',
'Fallback function of contract TooMuchGas requires too much gas', 'Fallback function of contract TooMuchGas requires too much gas',
'TooMuchGas.() : Variables have very similar names test and test1.'], 'TooMuchGas.() : Variables have very similar names test and test1.'],
'#staticanalysisresult .staticAnalysisWarning', '#staticanalysisresult .staticAnalysisWarning',
@ -61,7 +61,7 @@ function listSelectorContains (textsToFind, selector, browser, callback) {
}, [selector], function (result) { }, [selector], function (result) {
console.log(result.value) console.log(result.value)
for (var k in textsToFind) { for (var k in textsToFind) {
console.log('testing ' + result.value[k] + ' against ' + textsToFind[k]) console.log('testing `' + result.value[k] + '` against `' + textsToFind[k] + '`')
browser.assert.equal(result.value[k].indexOf(textsToFind[k]) !== -1, true) browser.assert.equal(result.value[k].indexOf(textsToFind[k]) !== -1, true)
} }
callback() callback()

Loading…
Cancel
Save