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
1202bfb5
Commit
1202bfb5
authored
Mar 02, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix click && copied value
parent
dd557002
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
DropdownPanel.js
remix-debugger/src/ui/DropdownPanel.js
+4
-4
vmdebugger.js
remix-debugger/test-browser/test/vmdebugger.js
+3
-1
No files found.
remix-debugger/src/ui/DropdownPanel.js
View file @
1202bfb5
...
...
@@ -129,9 +129,9 @@ DropdownPanel.prototype.render = function (overridestyle) {
to {transform:rotate(359deg);}
}
</style>
<div class="
${
css
.
title
}
title"
onclick=
${
function
()
{
self
.
toggle
()
}
}
>
<div class="
${
css
.
icon
}
fa fa-caret-right"></div>
<div class="
${
css
.
name
}
"
>
${
this
.
name
}
</div><span
></span>
<div class="
${
css
.
title
}
title">
<div class="
${
css
.
icon
}
fa fa-caret-right"
onclick=
${
function
()
{
self
.
toggle
()
}
}
></div>
<div class="
${
css
.
name
}
"
onclick=
${
function
()
{
self
.
toggle
()
}
} >
${
this
.
name
}
</div><span onclick=
${
function
()
{
self
.
toggle
()
}
}
></span>
<div onclick=
${
function
()
{
self
.
copyClipboard
()
}
} title='raw' class="
${
css
.
eyeButton
}
btn fa fa-clipboard"></div>
</div>
<div class='dropdownpanel' style='display:none'>
...
...
@@ -149,7 +149,7 @@ DropdownPanel.prototype.render = function (overridestyle) {
DropdownPanel
.
prototype
.
copyClipboard
=
function
()
{
var
content
=
this
.
view
.
querySelector
(
'.dropdownpanel .dropdownrawcontent'
)
if
(
content
)
copy
(
content
.
inner
HTML
)
if
(
content
)
copy
(
content
.
inner
Text
?
content
.
innerText
:
content
.
textContent
)
}
DropdownPanel
.
prototype
.
toggle
=
function
()
{
...
...
remix-debugger/test-browser/test/vmdebugger.js
View file @
1202bfb5
...
...
@@ -42,7 +42,8 @@ function loadTraceNotFound (browser) {
.
execute
(
function
()
{
return
document
.
querySelector
(
'#txinfo .dropdownpanel .dropdownrawcontent'
).
innerHTML
},
[],
function
(
result
)
{
if
(
result
.
value
.
indexOf
(
'<not found>'
)
===
-
1
)
{
console
.
log
(
result
.
value
)
if
(
result
.
value
.
indexOf
(
'not found'
)
===
-
1
)
{
browser
.
assert
.
fail
(
' txinput panel does not contain <not found> '
,
'info about error'
,
''
)
}
})
...
...
@@ -58,6 +59,7 @@ function loadTrace (browser) {
.
execute
(
function
()
{
return
document
.
querySelector
(
'#txinfo .dropdownpanel .dropdownrawcontent'
).
innerHTML
},
[],
function
(
result
)
{
console
.
log
(
result
.
value
)
if
(
result
.
value
.
indexOf
(
'0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
===
-
1
)
{
browser
.
assert
.
fail
(
' txinput panel does not contain 0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51 '
,
'info about error'
,
''
)
}
...
...
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