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
86eb049a
Commit
86eb049a
authored
Feb 27, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix browser test && add displayName to profile
parent
2ccc0bef
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
12 deletions
+13
-12
file-panel.js
src/app/panels/file-panel.js
+2
-1
ballot.js
test-browser/tests/ballot.js
+3
-3
compiling.js
test-browser/tests/compiling.js
+3
-3
sharedFolderExplorer.js
test-browser/tests/sharedFolderExplorer.js
+2
-2
simpleContract.js
test-browser/tests/simpleContract.js
+1
-1
staticanalysis.js
test-browser/tests/staticanalysis.js
+1
-1
testRecorder.js
test-browser/tests/units/testRecorder.js
+1
-1
No files found.
src/app/panels/file-panel.js
View file @
86eb049a
...
@@ -169,7 +169,8 @@ function filepanel (localRegistry) {
...
@@ -169,7 +169,8 @@ function filepanel (localRegistry) {
self
.
profile
=
function
()
{
self
.
profile
=
function
()
{
return
{
return
{
name
:
'file explorers'
,
name
:
'fileExplorers'
,
displayName
:
'file explorers'
,
methods
:
[],
methods
:
[],
events
:
[],
events
:
[],
icon
:
'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR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MTNsLTI5OSAyOTloMjk5di0yOTl6bS02NDAtMzg0bC0yOTkgMjk5aDI5OXYtMjk5em0xOTYgNjQ3bDMxNi0zMTZ2LTQxNmgtMzg0djQxNnEwIDQwLTI4IDY4dC02OCAyOGgtNDE2djY0MGg1MTJ2LTI1NnEwLTQwIDIwLTg4dDQ4LTc2em05NTYgODA0di0xMTUyaC0zODR2NDE2cTAgNDAtMjggNjh0LTY4IDI4aC00MTZ2NjQwaDg5NnoiLz48L3N2Zz4='
,
...
...
test-browser/tests/ballot.js
View file @
86eb049a
...
@@ -34,7 +34,7 @@ function runTests (browser, testData) {
...
@@ -34,7 +34,7 @@ function runTests (browser, testData) {
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'Ballot'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'Ballot'
],
function
()
{
done
()
done
()
})
})
}).
clickLaunchIcon
(
'run
transactions
'
)
}).
clickLaunchIcon
(
'run'
)
.
setValue
(
'input[placeholder="uint8 _numProposals"]'
,
'1'
)
.
setValue
(
'input[placeholder="uint8 _numProposals"]'
,
'1'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
...
@@ -65,7 +65,7 @@ function runTests (browser, testData) {
...
@@ -65,7 +65,7 @@ function runTests (browser, testData) {
done
()
done
()
})
})
})
})
.
clickLaunchIcon
(
'run
transactions
'
)
.
clickLaunchIcon
(
'run'
)
.
click
(
'div[class^="udappClose"]'
)
.
click
(
'div[class^="udappClose"]'
)
.
perform
((
client
,
done
)
=>
{
.
perform
((
client
,
done
)
=>
{
console
.
log
(
'ballot.abi'
)
console
.
log
(
'ballot.abi'
)
...
@@ -79,7 +79,7 @@ function runTests (browser, testData) {
...
@@ -79,7 +79,7 @@ function runTests (browser, testData) {
done
()
done
()
})
})
})
})
.
clickLaunchIcon
(
'file
e
xplorers'
)
.
clickLaunchIcon
(
'file
E
xplorers'
)
.
perform
((
client
,
done
)
=>
{
.
perform
((
client
,
done
)
=>
{
console
.
log
(
'addInstance 0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
)
console
.
log
(
'addInstance 0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
)
contractHelper
.
addInstance
(
browser
,
'0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
,
true
,
true
,
()
=>
{
contractHelper
.
addInstance
(
browser
,
'0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
,
true
,
true
,
()
=>
{
...
...
test-browser/tests/compiling.js
View file @
86eb049a
...
@@ -38,7 +38,7 @@ function runTests (browser) {
...
@@ -38,7 +38,7 @@ function runTests (browser) {
function
testSimpleContract
(
browser
,
callback
)
{
function
testSimpleContract
(
browser
,
callback
)
{
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'TestContract'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'TestContract'
],
function
()
{
browser
.
clickLaunchIcon
(
'run
transactions
'
)
browser
.
clickLaunchIcon
(
'run'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
...
@@ -69,7 +69,7 @@ function testSimpleContract (browser, callback) {
...
@@ -69,7 +69,7 @@ function testSimpleContract (browser, callback) {
function
testReturnValues
(
browser
,
callback
)
{
function
testReturnValues
(
browser
,
callback
)
{
contractHelper
.
testContracts
(
browser
,
'returnValues.sol'
,
sources
[
1
][
'browser/returnValues.sol'
],
[
'testReturnValues'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'returnValues.sol'
,
sources
[
1
][
'browser/returnValues.sol'
],
[
'testReturnValues'
],
function
()
{
browser
.
clickLaunchIcon
(
'run
transactions
'
)
browser
.
clickLaunchIcon
(
'run'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
...
@@ -107,7 +107,7 @@ function testReturnValues (browser, callback) {
...
@@ -107,7 +107,7 @@ function testReturnValues (browser, callback) {
function
testInputValues
(
browser
,
callback
)
{
function
testInputValues
(
browser
,
callback
)
{
contractHelper
.
testContracts
(
browser
,
'inputValues.sol'
,
sources
[
2
][
'browser/inputValues.sol'
],
[
'test'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'inputValues.sol'
,
sources
[
2
][
'browser/inputValues.sol'
],
[
'test'
],
function
()
{
browser
.
clickLaunchIcon
(
'run
transactions
'
)
browser
.
clickLaunchIcon
(
'run'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2)'
)
...
...
test-browser/tests/sharedFolderExplorer.js
View file @
86eb049a
...
@@ -71,7 +71,7 @@ function runTests (browser, testData) {
...
@@ -71,7 +71,7 @@ function runTests (browser, testData) {
}
}
browser
browser
.
waitForElementVisible
(
'#icon-panel'
,
10000
)
.
waitForElementVisible
(
'#icon-panel'
,
10000
)
.
clickLaunchIcon
(
'file
e
xplorers'
)
.
clickLaunchIcon
(
'file
E
xplorers'
)
.
click
(
'.websocketconn'
)
.
click
(
'.websocketconn'
)
.
waitForElementVisible
(
'#modal-footer-ok'
,
10000
)
.
waitForElementVisible
(
'#modal-footer-ok'
,
10000
)
.
click
(
'#modal-footer-ok'
)
.
click
(
'#modal-footer-ok'
)
...
@@ -132,7 +132,7 @@ function runTests (browser, testData) {
...
@@ -132,7 +132,7 @@ function runTests (browser, testData) {
testImportFromRemixd
(
browser
,
()
=>
{
done
()
})
testImportFromRemixd
(
browser
,
()
=>
{
done
()
})
})
})
.
perform
(
function
()
{
.
perform
(
function
()
{
browser
.
clickLaunchIcon
(
'file
e
xplorers'
).
click
(
'[data-path="localhost"]'
)
// collapse and expand
browser
.
clickLaunchIcon
(
'file
E
xplorers'
).
click
(
'[data-path="localhost"]'
)
// collapse and expand
.
waitForElementNotVisible
(
'[data-path="localhost/folder1"]'
)
.
waitForElementNotVisible
(
'[data-path="localhost/folder1"]'
)
.
click
(
'[data-path="localhost"]'
)
.
click
(
'[data-path="localhost"]'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1"]'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1"]'
)
...
...
test-browser/tests/simpleContract.js
View file @
86eb049a
...
@@ -24,7 +24,7 @@ function runTests (browser) {
...
@@ -24,7 +24,7 @@ function runTests (browser) {
browser
browser
.
waitForElementVisible
(
'#icon-panel'
,
10000
)
.
waitForElementVisible
(
'#icon-panel'
,
10000
)
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'file
e
xplorers'
)
.
clickLaunchIcon
(
'file
E
xplorers'
)
.
click
(
'#swap-panel label[data-path="browser"]'
)
.
click
(
'#swap-panel label[data-path="browser"]'
)
.
perform
(()
=>
{
.
perform
(()
=>
{
// the first fn is used to pass browser to the other ones.
// the first fn is used to pass browser to the other ones.
...
...
test-browser/tests/staticanalysis.js
View file @
86eb049a
...
@@ -40,7 +40,7 @@ function runTests (browser) {
...
@@ -40,7 +40,7 @@ function runTests (browser) {
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'TooMuchGas'
,
'test1'
,
'test2'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'TooMuchGas'
,
'test1'
,
'test2'
],
function
()
{
browser
browser
.
clickLaunchIcon
(
'solidity
static a
nalysis'
)
.
clickLaunchIcon
(
'solidity
StaticA
nalysis'
)
.
click
(
'#staticanalysisView button'
)
.
click
(
'#staticanalysisView button'
)
.
waitForElementPresent
(
'#staticanalysisresult .staticAnalysisWarning'
,
2000
,
true
,
function
()
{
.
waitForElementPresent
(
'#staticanalysisresult .staticAnalysisWarning'
,
2000
,
true
,
function
()
{
dom
.
listSelectorContains
([
'browser/Untitled.sol:2:33:Use of tx.origin'
,
dom
.
listSelectorContains
([
'browser/Untitled.sol:2:33:Use of tx.origin'
,
...
...
test-browser/tests/units/testRecorder.js
View file @
86eb049a
...
@@ -10,7 +10,7 @@ module.exports = {
...
@@ -10,7 +10,7 @@ module.exports = {
browser
.
clickLaunchIcon
=
contractHelper
.
clickLaunchIcon
browser
.
clickLaunchIcon
=
contractHelper
.
clickLaunchIcon
contractHelper
.
addFile
(
browser
,
'scenario.json'
,
{
content
:
records
},
()
=>
{
contractHelper
.
addFile
(
browser
,
'scenario.json'
,
{
content
:
records
},
()
=>
{
browser
browser
.
clickLaunchIcon
(
'run
transactions
'
)
.
clickLaunchIcon
(
'run'
)
.
click
(
'div[class^="cardContainer"] i[class^="arrow"]'
)
.
click
(
'div[class^="cardContainer"] i[class^="arrow"]'
)
.
click
(
'#runTabView .runtransaction'
)
.
click
(
'#runTabView .runtransaction'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
...
...
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