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
ab541b00
Commit
ab541b00
authored
Feb 02, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add play
parent
5a935612
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ButtonNavigator.js
src/ui/ButtonNavigator.js
+5
-0
StepManager.js
src/ui/StepManager.js
+5
-0
No files found.
src/ui/ButtonNavigator.js
View file @
ab541b00
...
...
@@ -11,6 +11,7 @@ function ButtonNavigator (_parent, _traceManager) {
this
.
intoForwardDisabled
=
true
this
.
overForwardDisabled
=
true
this
.
jumpOutDisabled
=
true
this
.
playDisabled
=
true
this
.
traceManager
=
_traceManager
this
.
currentCall
=
null
...
...
@@ -68,6 +69,8 @@ ButtonNavigator.prototype.render = function () {
</button>
<button id='jumpout' title='jump out' class='fa fa-share' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpOut'
)
}
} disabled=
${
this
.
jumpOutDisabled
}
>
</button>
<button id='play' title='play' class='fa fa-play' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'play'
)
}
} disabled=
${
this
.
playDisabled
}
>
</button>
<div id='reverted' style="display:none">
<button id='jumptoexception' title='jump to exception' class='fa fa-exclamation-triangle' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpToException'
,
[
self
.
revertionPoint
])
}
} disabled=
${
this
.
jumpOutDisabled
}
>
</button>
...
...
@@ -104,6 +107,7 @@ ButtonNavigator.prototype.stepChanged = function (step) {
self
.
reset
()
console
.
log
(
error
)
}
else
{
self
.
playDisabled
=
step
>=
length
-
1
self
.
intoForwardDisabled
=
step
>=
length
-
1
self
.
overForwardDisabled
=
step
>=
length
-
1
var
stepOut
=
self
.
traceManager
.
findStepOut
(
step
)
...
...
@@ -122,6 +126,7 @@ ButtonNavigator.prototype.updateAll = function () {
this
.
updateDisabled
(
'intoforward'
,
this
.
intoForwardDisabled
)
this
.
updateDisabled
(
'jumpout'
,
this
.
jumpOutDisabled
)
this
.
updateDisabled
(
'jumptoexception'
,
this
.
jumpOutDisabled
)
this
.
updateDisabled
(
'play'
,
this
.
playDisabled
)
}
ButtonNavigator
.
prototype
.
updateDisabled
=
function
(
id
,
disabled
)
{
...
...
src/ui/StepManager.js
View file @
ab541b00
...
...
@@ -60,6 +60,11 @@ function StepManager (_parent, _traceManager) {
this
.
buttonNavigator
.
event
.
register
(
'jumpToException'
,
this
,
function
(
exceptionIndex
)
{
self
.
jumpTo
(
exceptionIndex
)
})
this
.
buttonNavigator
.
event
.
register
(
'play'
,
(
exceptionIndex
)
=>
{
if
(
self
.
parent
.
breakpointManager
)
{
self
.
parent
.
breakpointManager
.
play
()
}
})
}
StepManager
.
prototype
.
resolveToReducedTrace
=
function
(
value
,
incr
)
{
...
...
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