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
1c7637c9
Commit
1c7637c9
authored
Sep 30, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/ethereum/remix-project
into remixd
parents
68b8e214
5a991218
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
workspace.test.ts
apps/remix-ide-e2e/src/tests/workspace.test.ts
+9
-1
app.js
apps/remix-ide/src/app.js
+14
-7
No files found.
apps/remix-ide-e2e/src/tests/workspace.test.ts
View file @
1c7637c9
...
...
@@ -5,7 +5,7 @@ import sauce from './sauce'
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
init
(
browser
,
done
,
'http://127.0.0.1:8080?plugins=solidity,udapp'
,
false
)
init
(
browser
,
done
,
'http://127.0.0.1:8080?plugins=solidity,udapp
&plugincall=fileManager//open//3_Ballot.sol
'
,
false
)
},
'CheckSolidityActivatedAndUDapp'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -13,6 +13,14 @@ module.exports = {
.
waitForElementVisible
(
'#icon-panel'
,
10000
)
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'udapp'
)
},
'Editor should be focused on the 3_Ballot.sol'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
pause
(
5000
)
.
getEditorValue
((
content
)
=>
{
browser
.
assert
.
ok
(
content
.
indexOf
(
'contract Ballot {'
)
!=
-
1
,
'content doesn
\'
t include Ballot contract'
)
})
.
end
()
},
...
...
apps/remix-ide/src/app.js
View file @
1c7637c9
...
...
@@ -404,11 +404,21 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// Set workspace after initial activation
if
(
Array
.
isArray
(
workspace
))
{
try
{
await
appManager
.
activatePlugin
(
workspace
)
}
catch
(
e
)
{
console
.
error
(
e
)
appManager
.
activatePlugin
(
workspace
).
then
(()
=>
{
// If plugins are loaded from the URL params, we focus on the last one.
if
(
pluginLoader
.
current
===
'queryParams'
&&
workspace
.
length
>
0
)
menuicons
.
select
(
workspace
[
workspace
.
length
-
1
])
if
(
params
.
plugincall
)
{
const
callDetails
=
params
.
plugincall
.
split
(
'//'
)
if
(
callDetails
.
length
>
1
)
{
toolTip
(
`initiating
${
callDetails
[
0
]}
...`
)
// @todo(remove the timeout when activatePlugin is on 0.3.0)
setTimeout
(()
=>
{
appManager
.
call
(...
callDetails
).
catch
(
console
.
error
)
},
5000
)
}
}
}).
catch
(
console
.
error
)
}
else
{
// activate solidity plugin
appManager
.
ensureActivated
(
'solidity'
)
...
...
@@ -419,9 +429,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
framingService
=
new
FramingService
(
sidePanel
,
menuicons
,
mainview
,
this
.
_components
.
resizeFeature
)
framingService
.
start
(
params
)
// If plugins are loaded from the URL params, we focus on the last one.
if
(
pluginLoader
.
current
===
'queryParams'
&&
Array
.
isArray
(
workspace
)
&&
workspace
.
length
>
0
)
menuicons
.
select
(
workspace
[
workspace
.
length
-
1
])
// get the file list from the parent iframe
loadFileFromParent
(
fileManager
)
...
...
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