Update contract1.sol

pull/1/head
ninabreznik 7 years ago committed by yann300
parent 3db3d8cfbd
commit a306c64bf0
  1. 2
      contracts/folder1/contract1.sol
  2. 9
      test-browser/tests/sharedFolderExplorer.js

@ -1 +1 @@
contract test1 { function get () returns (uint) { return 8; }}
contract test1 { function get () returns (uint) { return 10; }}

@ -20,6 +20,7 @@ contract gmbh {
}
}
`
var sources = [
{
'localhost/folder1/contract2.sol': {content: 'contract test2 { function get () returns (uint) { return 11; }}'}
@ -78,25 +79,25 @@ function runTests (browser, testData) {
.click('[data-path="localhost/folder1/contract1.sol"]') // open localhost/folder1/contract1.sol
.pause(1000)
.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')
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')
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')
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')
done()
})

Loading…
Cancel
Save