|
|
|
@ -38,11 +38,11 @@ function runTests (browser) { |
|
|
|
|
.testContracts('Untitled.sol', sources[0]['browser/Untitled.sol'], ['TooMuchGas', 'test1', 'test2']) |
|
|
|
|
.clickLaunchIcon('solidityStaticAnalysis') |
|
|
|
|
.click('#staticanalysisView button') |
|
|
|
|
.waitForElementPresent('#staticanalysisresult .staticAnalysisWarning', 2000, true, function () { |
|
|
|
|
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { |
|
|
|
|
listSelectorContains(['Use of tx.origin', |
|
|
|
|
'Fallback function of contract TooMuchGas requires too much gas', |
|
|
|
|
'TooMuchGas.() : Variables have very similar names test and test1.'], |
|
|
|
|
'#staticanalysisresult .staticAnalysisWarning', |
|
|
|
|
'#staticanalysisresult .warning', |
|
|
|
|
browser, function () { |
|
|
|
|
browser.end() |
|
|
|
|
} |
|
|
|
|