Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e233d158
Commit
e233d158
authored
Jul 03, 2020
by
LianaHus
Committed by
ioedeveloper
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed basic.sol
parent
48afb814
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
17 deletions
+15
-17
example-contracts.js
apps/remix-ide/src/app/editor/example-contracts.js
+1
-12
fileManager_api.test.js
test-browser/tests/fileManager_api.test.js
+2
-2
usingWebWorker.test.js
test-browser/tests/usingWebWorker.test.js
+12
-3
No files found.
apps/remix-ide/src/app/editor/example-contracts.js
View file @
e233d158
'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;
/**
...
...
@@ -255,6 +245,5 @@ module.exports = {
storage
:
{
name
:
'1_Storage.sol'
,
content
:
storage
},
owner
:
{
name
:
'2_Owner.sol'
,
content
:
owner
},
ballot
:
{
name
:
'3_Ballot.sol'
,
content
:
ballot
},
ballot_test
:
{
name
:
'tests/4_Ballot_test.sol'
,
content
:
ballotTest
},
basic
:
{
name
:
'basic.sol'
,
content
:
basic
}
ballot_test
:
{
name
:
'tests/4_Ballot_test.sol'
,
content
:
ballotTest
}
}
test-browser/tests/fileManager_api.test.js
View file @
e233d158
...
...
@@ -54,7 +54,7 @@ module.exports = {
.
addFile
(
'copyFile.js'
,
{
content
:
executeCopyFile
})
.
executeScript
(
`remix.exeCurrent()`
)
.
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
)
{
...
...
@@ -146,7 +146,7 @@ const executeReadFile = `
const
executeCopyFile
=
`
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')
console.log(result)
...
...
test-browser/tests/usingWebWorker.test.js
View file @
e233d158
'use strict'
var
examples
=
require
(
'../../src/app/editor/example-contracts'
)
var
init
=
require
(
'../helpers/init'
)
var
sauce
=
require
(
'./sauce'
)
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
=
{
...
...
@@ -18,7 +27,7 @@ module.exports = {
browser
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
openFile
(
'browser/basic.sol'
)
.
addFile
(
'browser/basic.sol'
,
sources
[
0
][
'browser/basic.sol'
]
)
.
clickLaunchIcon
(
'solidity'
)
.
execute
(()
=>
{
document
.
getElementById
(
'nightlies'
).
checked
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment