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
9d5c14e0
Commit
9d5c14e0
authored
Mar 22, 2021
by
aniket-engg
Committed by
Aniket
May 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keycode check removed
parent
7ab2f207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
25 deletions
+13
-25
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+13
-25
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
9d5c14e0
...
@@ -549,22 +549,19 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -549,22 +549,19 @@ module.exports = class TestTab extends ViewPlugin {
return
yo
`<span class='text-info h6'>Progress:
${
ready
}
finished (of
${
this
.
runningTestsNumber
}
)</span>`
return
yo
`<span class='text-info h6'>Progress:
${
ready
}
finished (of
${
this
.
runningTestsNumber
}
)</span>`
}
}
updateDirList (keycode = 'none') {
updateDirList (path) {
const presentOptions = this.uiPathList.querySelectorAll('option')
for (const o of this.uiPathList.querySelectorAll('option')) o.remove()
// Initial load
this.testTabLogic.dirList(path).then((options) => {
if (keycode === 'none') {
options.forEach((path) => this.uiPathList.appendChild(yo`
<
option
>
$
{
path
}
<
/option>`
)
)
for (const o of presentOptions) o.remove()
})
this.testTabLogic.dirList('/').then((options) => {
}
options.forEach((path) => this.uiPathList.appendChild(yo`
<
option
>
$
{
path
}
<
/option>`
)
)
})
handleTestDirInput
()
{
}
else
if
(
this
.
inputPath
.
value
&&
this
.
inputPath
.
value
.
endsWith
(
'/'
))
{
if
(
this
.
inputPath
.
value
&&
this
.
inputPath
.
value
.
endsWith
(
'/'
))
{
for
(
const
o
of
presentOptions
)
o
.
remove
()
this
.
updateDirList
(
this
.
inputPath
.
value
)
this
.
testTabLogic
.
dirList
(
this
.
inputPath
.
value
).
then
((
options
)
=>
{
options
.
forEach
((
path
)
=>
this
.
uiPathList
.
appendChild
(
yo
`<option>
${
path
}
</option>`
))
})
}
else
{
}
else
{
let
matchFound
=
false
let
matchFound
=
false
for
(
var
option
of
presentOptions
)
{
for
(
const
option
of
this
.
uiPathList
.
querySelectorAll
(
'option'
)
)
{
if
(
option
.
innerHTML
.
startsWith
(
this
.
inputPath
.
value
))
matchFound
=
true
if
(
option
.
innerHTML
.
startsWith
(
this
.
inputPath
.
value
))
matchFound
=
true
}
}
// If there is no matching folder in the workspace with entered text, enable Create button
// If there is no matching folder in the workspace with entered text, enable Create button
...
@@ -578,15 +575,6 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -578,15 +575,6 @@ module.exports = class TestTab extends ViewPlugin {
this
.
updateGenerateFileAction
().
disabled
=
false
this
.
updateGenerateFileAction
().
disabled
=
false
}
}
}
}
/*
It is not possible anymore to see folder from outside of the current workspace
if (this.inputPath.value) {
this.testTabLogic.dirList(this.inputPath.value).then((options) => {
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`))
})
}
*/
}
}
render
()
{
render
()
{
...
@@ -604,7 +592,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -604,7 +592,7 @@ module.exports = class TestTab extends ViewPlugin {
name="utPath"
name="utPath"
style="background-image: var(--primary);"
style="background-image: var(--primary);"
onkeyup=
${(
e
)
=>
{
onkeyup=
${(
e
)
=>
{
if
(
e
.
keyCode
)
this
.
updateDirList
(
e
.
keyCode
)
if
(
e
.
keyCode
)
this
.
handleTestDirInput
(
)
}}
}}
onchange
=
$
{(
e
)
=>
this
.
updateCurrentPath
(
e
)}
/>`
onchange
=
$
{(
e
)
=>
this
.
updateCurrentPath
(
e
)}
/>`
...
@@ -630,7 +618,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -630,7 +618,7 @@ module.exports = class TestTab extends ViewPlugin {
</div>
</div>
</div>
</div>
`
`
this
.
updateDirList
()
this
.
updateDirList
(
'/'
)
this
.
testsExecutionStopped
.
hidden
=
true
this
.
testsExecutionStopped
.
hidden
=
true
this
.
testsExecutionStoppedError
.
hidden
=
true
this
.
testsExecutionStoppedError
.
hidden
=
true
this
.
resultStatistics
=
this
.
createResultLabel
()
this
.
resultStatistics
=
this
.
createResultLabel
()
...
...
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