diff --git a/test-browser/tests/ballot.js b/test-browser/tests/ballot.js index 85dd63b10f..60eb24d62c 100644 --- a/test-browser/tests/ballot.js +++ b/test-browser/tests/ballot.js @@ -27,7 +27,7 @@ function runTests (browser, testData) { browser .waitForElementVisible('.newFile', 10000) .click('.envView') - contractHelper.testContracts(browser, sources.sources.Untitled, ['Untitled:Ballot'], function () { + contractHelper.testContracts(browser, sources.sources['Untitled.sol'], ['Untitled.sol:Ballot'], function () { browser.end() }) } diff --git a/test-browser/tests/compiling.js b/test-browser/tests/compiling.js index 3ea95e8f78..3487f147f3 100644 --- a/test-browser/tests/compiling.js +++ b/test-browser/tests/compiling.js @@ -27,7 +27,7 @@ function runTests (browser) { browser .waitForElementVisible('.newFile', 10000) .click('.envView') - contractHelper.testContracts(browser, sources.sources.Untitled, ['Untitled:TestContract'], function () { + contractHelper.testContracts(browser, sources.sources['Untitled.sol'], ['Untitled.sol:TestContract'], function () { browser.click('.create .constructor .call') .waitForElementPresent('.instance .call[title="f"]') .click('.instance .call[title="f"]') diff --git a/test-browser/tests/simpleContract.js b/test-browser/tests/simpleContract.js index ac38571525..ec66b2390c 100644 --- a/test-browser/tests/simpleContract.js +++ b/test-browser/tests/simpleContract.js @@ -26,7 +26,7 @@ function runTests (browser) { browser .waitForElementVisible('.newFile', 10000) .click('.envView') - contractHelper.testContracts(browser, sources.sources.Untitled, ['Untitled:test1', 'Untitled:test2'], function () { + contractHelper.testContracts(browser, sources.sources['Untitled.sol'], ['Untitled.sol:test1', 'Untitled.sol:test2'], function () { browser.end() }) } diff --git a/test-browser/tests/staticanalysis.js b/test-browser/tests/staticanalysis.js index 3273ef9ac1..cc5741c593 100644 --- a/test-browser/tests/staticanalysis.js +++ b/test-browser/tests/staticanalysis.js @@ -33,13 +33,13 @@ function runTests (browser) { browser .waitForElementVisible('.newFile', 10000) .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 .click('.staticanalysisView') .click('#staticanalysisView button') .waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { - dom.listSelectorContains(['Untitled:2:33: use of tx.origin', - 'Fallback function of contract Untitled:TooMuchGas requires too much gas'], + dom.listSelectorContains(['Untitled.sol:2:33: use of tx.origin', + 'Fallback function of contract Untitled.sol:TooMuchGas requires too much gas'], '#staticanalysisresult .warning span', browser, function () { browser.end()