Commit e233d158 authored by LianaHus's avatar LianaHus Committed by ioedeveloper

removed basic.sol

parent 48afb814
'use strict' 'use strict'
const basic = `pragma solidity >=0.2.0 <0.7.0;
/**
* @title Basic contract
*/
contract Basic {
uint someVar;
constructor() public {}
}`
const storage = `pragma solidity >=0.4.22 <0.7.0; const storage = `pragma solidity >=0.4.22 <0.7.0;
/** /**
...@@ -255,6 +245,5 @@ module.exports = { ...@@ -255,6 +245,5 @@ module.exports = {
storage: { name: '1_Storage.sol', content: storage }, storage: { name: '1_Storage.sol', content: storage },
owner: { name: '2_Owner.sol', content: owner }, owner: { name: '2_Owner.sol', content: owner },
ballot: { name: '3_Ballot.sol', content: ballot }, ballot: { name: '3_Ballot.sol', content: ballot },
ballot_test: { name: 'tests/4_Ballot_test.sol', content: ballotTest }, ballot_test: { name: 'tests/4_Ballot_test.sol', content: ballotTest }
basic: { name: 'basic.sol', content: basic }
} }
...@@ -54,7 +54,7 @@ module.exports = { ...@@ -54,7 +54,7 @@ module.exports = {
.addFile('copyFile.js', { content: executeCopyFile }) .addFile('copyFile.js', { content: executeCopyFile })
.executeScript(`remix.exeCurrent()`) .executeScript(`remix.exeCurrent()`)
.pause(2000) .pause(2000)
.journalLastChildIncludes('pragma solidity >=0.2.0 <0.7.0;') .journalLastChildIncludes('pragma solidity >=0.4.22 <0.7.0;')
}, },
'Should execute `rename` api from file manager external api': function (browser) { 'Should execute `rename` api from file manager external api': function (browser) {
...@@ -146,7 +146,7 @@ const executeReadFile = ` ...@@ -146,7 +146,7 @@ const executeReadFile = `
const executeCopyFile = ` const executeCopyFile = `
const run = async () => { const run = async () => {
await remix.call('fileManager', 'copyFile', 'browser/basic.sol', 'browser/new_contract.sol') await remix.call('fileManager', 'copyFile', 'browser/3_Ballot.sol', 'browser/new_contract.sol')
const result = await remix.call('fileManager', 'readFile', 'browser/new_contract.sol') const result = await remix.call('fileManager', 'readFile', 'browser/new_contract.sol')
console.log(result) console.log(result)
......
'use strict' 'use strict'
var examples = require('../../src/app/editor/example-contracts')
var init = require('../helpers/init') var init = require('../helpers/init')
var sauce = require('./sauce') var sauce = require('./sauce')
var sources = [ var sources = [
{'browser/basic.sol': {content: examples.basic.content}} {'browser/basic.sol': { content:
`pragma solidity >=0.2.0 <0.7.0;
/**
* @title Basic contract
*/
contract Basic {
uint someVar;
constructor() public {}
}`
}}
] ]
module.exports = { module.exports = {
...@@ -18,7 +27,7 @@ module.exports = { ...@@ -18,7 +27,7 @@ module.exports = {
browser browser
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
.clickLaunchIcon('fileExplorers') .clickLaunchIcon('fileExplorers')
.openFile('browser/basic.sol') .addFile('browser/basic.sol', sources[0]['browser/basic.sol'])
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.execute(() => { .execute(() => {
document.getElementById('nightlies').checked = true document.getElementById('nightlies').checked = true
......
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