Commit a306c64b authored by ninabreznik's avatar ninabreznik Committed by yann300

Update contract1.sol

parent 3db3d8cf
contract test1 { function get () returns (uint) { return 8; }} contract test1 { function get () returns (uint) { return 10; }}
...@@ -20,6 +20,7 @@ contract gmbh { ...@@ -20,6 +20,7 @@ contract gmbh {
} }
} }
` `
var sources = [ var sources = [
{ {
'localhost/folder1/contract2.sol': {content: 'contract test2 { function get () returns (uint) { return 11; }}'} 'localhost/folder1/contract2.sol': {content: 'contract test2 { function get () returns (uint) { return 11; }}'}
...@@ -78,25 +79,25 @@ function runTests (browser, testData) { ...@@ -78,25 +79,25 @@ function runTests (browser, testData) {
.click('[data-path="localhost/folder1/contract1.sol"]') // open localhost/folder1/contract1.sol .click('[data-path="localhost/folder1/contract1.sol"]') // open localhost/folder1/contract1.sol
.pause(1000) .pause(1000)
.perform(function (done) { // check the content and replace by another .perform(function (done) { // check the content and replace by another
browser.testEditorValue('contract test1 { function get () returns (uint) { return 10; }}', () => { browser.testEditorValue('contract test1 { function get () returns (uint) { return 10; }}\n', () => {
console.log('testEditorValue') console.log('testEditorValue')
done() done()
}) })
}) })
.perform(function (done) { .perform(function (done) {
browser.setEditorValue('contract test1Changed { function get () returns (uint) { return 10; }}', () => { browser.setEditorValue('contract test1Changed { function get () returns (uint) { return 10; }}\n', () => {
console.log('setEditorValue') console.log('setEditorValue')
done() done()
}) })
}) })
.perform(function (done) { .perform(function (done) {
browser.testEditorValue('contract test1Changed { function get () returns (uint) { return 10; }}', () => { browser.testEditorValue('contract test1Changed { function get () returns (uint) { return 10; }}\n', () => {
console.log('testEditorValue') console.log('testEditorValue')
done() done()
}) })
}) })
.perform(function (done) { .perform(function (done) {
browser.setEditorValue('contract test1 { function get () returns (uint) { return 10; }}', () => { browser.setEditorValue('contract test1 { function get () returns (uint) { return 10; }}\n', () => {
console.log('setEditorValue') console.log('setEditorValue')
done() done()
}) })
......
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