mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
- Reduce size of answer code in verifier
- Assume we want to run a single level on only one core for accurate speed testing.
This commit is contained in:
parent
87b9d74dc1
commit
ac47928131
3 changed files with 6 additions and 1 deletions
|
@ -20,5 +20,9 @@
|
|||
.test-failed
|
||||
color: red
|
||||
|
||||
.solution
|
||||
max-height: 200px
|
||||
overflow: auto
|
||||
|
||||
.lineUnder
|
||||
border-bottom: 1px solid #ccc
|
|
@ -77,7 +77,7 @@ block content
|
|||
div.row(class=(test.isSuccessful() && id > 1 ? 'collapse' : 'collapse in'), id='verifier-test-' + id)
|
||||
div.col-xs-8
|
||||
if test.solution
|
||||
pre #{test.solution.source}
|
||||
pre.solution #{test.solution.source}
|
||||
else
|
||||
h4 Error Loading Test
|
||||
pre #{test.error}
|
||||
|
|
|
@ -30,6 +30,7 @@ module.exports = class VerifierView extends RootView
|
|||
if @levelID
|
||||
@levelIDs = [@levelID]
|
||||
@testLanguages = ['python', 'javascript', 'java', 'lua', 'coffeescript']
|
||||
@cores = 1
|
||||
@startTestingLevels()
|
||||
else
|
||||
@campaigns = new Campaigns()
|
||||
|
|
Loading…
Reference in a new issue