Commit 0832642d authored by yann300's avatar yann300

move \n replacement

parent 27f989ef
......@@ -21,7 +21,7 @@ function testContracts (browser, contractCode, compiledContractNames, callback)
browser
.clearValue('#input textarea')
.click('.newFile')
.setValue('#input textarea', contractCode, function () {})
.setValue('#input textarea', contractCode.replace(/(\n)/g, ' '), function () {})
.waitForElementPresent('.contract .create', 3000000)
checkCompiledContracts(browser, compiledContractNames, callback)
}
......@@ -21,7 +21,7 @@ function runTests (browser, testData) {
browser
.url('http://127.0.0.1:8080/#version=builtin')
.waitForElementVisible('.newFile', 10000)
contractHelper.testContracts(browser, sources.sources.Untitled.replace(/(\n)/g, ' '), ['Ballot'], function () {
contractHelper.testContracts(browser, sources.sources.Untitled, ['Ballot'], function () {
browser.end()
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment