|
|
@ -33,13 +33,13 @@ function runTests (browser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('.newFile', 10000) |
|
|
|
.waitForElementVisible('.newFile', 10000) |
|
|
|
.click('.envView') |
|
|
|
.click('.envView') |
|
|
|
contractHelper.testContracts(browser, sources.sources.Untitled, ['Untitled:TooMuchGas', 'Untitled:test1', 'Untitled:test2'], function () { |
|
|
|
contractHelper.testContracts(browser, sources.sources['Untitled.sol'], ['Untitled.sol:TooMuchGas', 'Untitled.sol:test1', 'Untitled.sol:test2'], function () { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click('.staticanalysisView') |
|
|
|
.click('.staticanalysisView') |
|
|
|
.click('#staticanalysisView button') |
|
|
|
.click('#staticanalysisView button') |
|
|
|
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { |
|
|
|
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { |
|
|
|
dom.listSelectorContains(['Untitled:2:33: use of tx.origin', |
|
|
|
dom.listSelectorContains(['Untitled.sol:2:33: use of tx.origin', |
|
|
|
'Fallback function of contract Untitled:TooMuchGas requires too much gas'], |
|
|
|
'Fallback function of contract Untitled.sol:TooMuchGas requires too much gas'], |
|
|
|
'#staticanalysisresult .warning span', |
|
|
|
'#staticanalysisresult .warning span', |
|
|
|
browser, function () { |
|
|
|
browser, function () { |
|
|
|
browser.end() |
|
|
|
browser.end() |
|
|
|