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
6ee4d2e7
Commit
6ee4d2e7
authored
May 08, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
6b21a6a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ballot.js
test-browser/tests/ballot.js
+1
-1
compiling.js
test-browser/tests/compiling.js
+1
-1
simpleContract.js
test-browser/tests/simpleContract.js
+1
-1
staticanalysis.js
test-browser/tests/staticanalysis.js
+3
-3
No files found.
test-browser/tests/ballot.js
View file @
6ee4d2e7
...
...
@@ -27,7 +27,7 @@ function runTests (browser, testData) {
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
click
(
'.envView'
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'Untitled
:Ballot'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
[
'Untitled.sol'
],
[
'Untitled.sol
:Ballot'
],
function
()
{
browser
.
end
()
})
}
test-browser/tests/compiling.js
View file @
6ee4d2e7
...
...
@@ -27,7 +27,7 @@ function runTests (browser) {
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
click
(
'.envView'
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'Untitled
:TestContract'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
[
'Untitled.sol'
],
[
'Untitled.sol
:TestContract'
],
function
()
{
browser
.
click
(
'.create .constructor .call'
)
.
waitForElementPresent
(
'.instance .call[title="f"]'
)
.
click
(
'.instance .call[title="f"]'
)
...
...
test-browser/tests/simpleContract.js
View file @
6ee4d2e7
...
...
@@ -26,7 +26,7 @@ function runTests (browser) {
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
click
(
'.envView'
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'Untitled:test1'
,
'Untitled
:test2'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
[
'Untitled.sol'
],
[
'Untitled.sol:test1'
,
'Untitled.sol
:test2'
],
function
()
{
browser
.
end
()
})
}
test-browser/tests/staticanalysis.js
View file @
6ee4d2e7
...
...
@@ -33,13 +33,13 @@ function runTests (browser) {
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
click
(
'.envView'
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'Untitled:TooMuchGas'
,
'Untitled:test1'
,
'Untitled
:test2'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
[
'Untitled.sol'
],
[
'Untitled.sol:TooMuchGas'
,
'Untitled.sol:test1'
,
'Untitled.sol
:test2'
],
function
()
{
browser
.
click
(
'.staticanalysisView'
)
.
click
(
'#staticanalysisView button'
)
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
true
,
function
()
{
dom
.
listSelectorContains
([
'Untitled:2:33: use of tx.origin'
,
'Fallback function of contract Untitled:TooMuchGas requires too much gas'
],
dom
.
listSelectorContains
([
'Untitled
.sol
:2:33: use of tx.origin'
,
'Fallback function of contract Untitled
.sol
:TooMuchGas requires too much gas'
],
'#staticanalysisresult .warning span'
,
browser
,
function
()
{
browser
.
end
()
...
...
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