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
f11d1ef7
Commit
f11d1ef7
authored
Jun 22, 2020
by
LianaHus
Committed by
ioedeveloper
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved 4_Ballod_test to tests/
parent
ced308e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
example-contracts.js
apps/remix-ide/src/app/editor/example-contracts.js
+2
-2
defaultLayout.test.js
apps/remix-ide/test-browser/tests/defaultLayout.test.js
+1
-1
solidityUnittests.test.js
apps/remix-ide/test-browser/tests/solidityUnittests.test.js
+5
-5
No files found.
apps/remix-ide/src/app/editor/example-contracts.js
View file @
f11d1ef7
...
...
@@ -227,7 +227,7 @@ contract Ballot {
var
ballotTest
=
`pragma solidity >=0.4.22 <0.7.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "./3_Ballot.sol";
import ".
.
/3_Ballot.sol";
contract BallotTest {
...
...
@@ -255,6 +255,6 @@ 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
:
'4_Ballot_test.sol'
,
content
:
ballotTest
},
ballot_test
:
{
name
:
'
tests/
4_Ballot_test.sol'
,
content
:
ballotTest
},
basic
:
{
name
:
'basic.sol'
,
content
:
basic
}
}
apps/remix-ide/test-browser/tests/defaultLayout.test.js
View file @
f11d1ef7
...
...
@@ -18,7 +18,7 @@ module.exports = {
browser
.
waitForElementVisible
(
'div[data-id="remixIdeSidePanel"]'
)
.
assert
.
containsText
(
'h6[data-id="sidePanelSwapitTitle"]'
,
'FILE EXPLORERS'
)
.
waitForElementVisible
(
'div[data-id="filePanelFileExplorerTree"]'
)
.
waitForElementVisible
(
'li[key="browser/4_Ballot_test.sol"]'
)
.
waitForElementVisible
(
'li[key="browser/
tests/
4_Ballot_test.sol"]'
)
},
'Loads Main View'
:
function
(
browser
)
{
...
...
apps/remix-ide/test-browser/tests/solidityUnittests.test.js
View file @
f11d1ef7
...
...
@@ -40,7 +40,7 @@ module.exports = {
'Should run simple unit test `simple_storage_test.sol` '
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfileExplorers"]'
)
.
addFile
(
'simple_storage_test.sol'
,
sources
[
0
][
'browser/tests/simple_storage_test.sol'
])
.
addFile
(
'
tests/
simple_storage_test.sol'
,
sources
[
0
][
'browser/tests/simple_storage_test.sol'
])
.
click
(
'*[data-id="verticalIconsKindsolidityUnitTesting"]'
)
.
waitForElementPresent
(
'*[data-id="testTabCheckAllTests"]'
)
.
click
(
'*[data-id="testTabCheckAllTests"]'
)
...
...
@@ -60,7 +60,7 @@ module.exports = {
'Should run advance unit test using natspec and experimental ABIEncoderV2 `ks2b_test.sol` '
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfileExplorers"]'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
addFile
(
'ks2b_test.sol'
,
sources
[
0
][
'browser/tests/ks2b_test.sol'
])
.
addFile
(
'
tests/
ks2b_test.sol'
,
sources
[
0
][
'browser/tests/ks2b_test.sol'
])
.
click
(
'*[data-id="verticalIconsKindsolidityUnitTesting"]'
)
.
waitForElementPresent
(
'*[data-id="testTabCheckAllTests"]'
)
.
click
(
'*[data-id="testTabCheckAllTests"]'
)
...
...
@@ -100,7 +100,7 @@ module.exports = {
'Should fail on compilation'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfileExplorers"]'
)
.
addFile
(
'compilationError_test.sol'
,
sources
[
0
][
'browser/compilationError_test.sol'
])
.
addFile
(
'
tests/
compilationError_test.sol'
,
sources
[
0
][
'browser/compilationError_test.sol'
])
.
clickLaunchIcon
(
'fileExplorers'
)
.
openFile
(
'browser/tests/compilationError_test.sol'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
...
...
@@ -115,7 +115,7 @@ module.exports = {
'Should fail on deploy'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfileExplorers"]'
)
.
addFile
(
'deployError_test.sol'
,
sources
[
0
][
'browser/tests/deployError_test.sol'
])
.
addFile
(
'
tests/
deployError_test.sol'
,
sources
[
0
][
'browser/tests/deployError_test.sol'
])
.
clickLaunchIcon
(
'fileExplorers'
)
.
openFile
(
'browser/tests/deployError_test.sol'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
...
...
@@ -129,7 +129,7 @@ module.exports = {
'Should fail when parameters are to method in test contract'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfileExplorers"]'
)
.
addFile
(
'methodFailure_test.sol'
,
sources
[
0
][
'browser/tests/methodFailure_test.sol'
])
.
addFile
(
'
tests/
methodFailure_test.sol'
,
sources
[
0
][
'browser/tests/methodFailure_test.sol'
])
.
clickLaunchIcon
(
'fileExplorers'
)
.
openFile
(
'browser/tests/methodFailure_test.sol'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
...
...
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