removed basic.sol

pull/262/head
LianaHus 4 years ago committed by Liana Husikyan
parent 5fb7577dc3
commit 90c67e48b8
  1. 13
      src/app/editor/example-contracts.js
  2. 4
      test-browser/tests/fileManager_api.test.js
  3. 15
      test-browser/tests/usingWebWorker.test.js

@ -1,15 +1,5 @@
'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 = {
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 = {
.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 = `
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)

@ -1,10 +1,19 @@
'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 = {
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

Loading…
Cancel
Save