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
bf7258a2
Commit
bf7258a2
authored
Feb 06, 2017
by
chriseth
Committed by
GitHub
Feb 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #414 from ethereum/fixtests
Fix tests
parents
b8b8f694
d574c9a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
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
+2
-2
No files found.
test-browser/tests/ballot.js
View file @
bf7258a2
...
@@ -26,7 +26,7 @@ module.exports = {
...
@@ -26,7 +26,7 @@ module.exports = {
function
runTests
(
browser
,
testData
)
{
function
runTests
(
browser
,
testData
)
{
browser
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
waitForElementVisible
(
'.newFile'
,
10000
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'Ballot'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
Untitled:
Ballot'
],
function
()
{
browser
.
end
()
browser
.
end
()
})
})
}
}
test-browser/tests/compiling.js
View file @
bf7258a2
...
@@ -26,7 +26,7 @@ module.exports = {
...
@@ -26,7 +26,7 @@ module.exports = {
function
runTests
(
browser
)
{
function
runTests
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
waitForElementVisible
(
'.newFile'
,
10000
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'TestContract'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
Untitled:
TestContract'
],
function
()
{
browser
.
click
(
'.create .constructor .call'
)
browser
.
click
(
'.create .constructor .call'
)
.
waitForElementPresent
(
'.instance .call[title="f"]'
)
.
waitForElementPresent
(
'.instance .call[title="f"]'
)
.
click
(
'.instance .call[title="f"]'
)
.
click
(
'.instance .call[title="f"]'
)
...
...
test-browser/tests/simpleContract.js
View file @
bf7258a2
...
@@ -25,7 +25,7 @@ module.exports = {
...
@@ -25,7 +25,7 @@ module.exports = {
function
runTests
(
browser
)
{
function
runTests
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
waitForElementVisible
(
'.newFile'
,
10000
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
test1'
,
'
test2'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
Untitled:test1'
,
'Untitled:
test2'
],
function
()
{
browser
.
end
()
browser
.
end
()
})
})
}
}
test-browser/tests/staticanalysis.js
View file @
bf7258a2
...
@@ -32,13 +32,13 @@ module.exports = {
...
@@ -32,13 +32,13 @@ module.exports = {
function
runTests
(
browser
)
{
function
runTests
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'.newFile'
,
10000
)
.
waitForElementVisible
(
'.newFile'
,
10000
)
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
TooMuchGas'
,
'test1'
,
'
test2'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
sources
.
sources
.
Untitled
,
[
'
Untitled:TooMuchGas'
,
'Untitled:test1'
,
'Untitled:
test2'
],
function
()
{
browser
browser
.
click
(
'.staticanalysisView'
)
.
click
(
'.staticanalysisView'
)
.
click
(
'#staticanalysisView button'
)
.
click
(
'#staticanalysisView button'
)
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
true
,
function
()
{
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
true
,
function
()
{
dom
.
listSelectorContains
([
'Untitled:1:34: use of tx.origin'
,
dom
.
listSelectorContains
([
'Untitled:1:34: use of tx.origin'
,
'Fallback function of contract TooMuchGas requires too much gas'
],
'Fallback function of contract
Untitled:
TooMuchGas requires too much gas'
],
'#staticanalysisresult .warning span'
,
'#staticanalysisresult .warning span'
,
browser
,
function
()
{
browser
,
function
()
{
browser
.
end
()
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