Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
29857036
Commit
29857036
authored
Feb 21, 2014
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2618 from edx/valera/fix_multiple_choice_video
Fix bug multiple choice with video. BLD-788.
parents
1bf5d712
1107aa2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
+8
-4
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+1
-1
No files found.
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
View file @
29857036
...
...
@@ -124,9 +124,15 @@ describe 'Problem', ->
expect
(
@
problem
.
bind
).
toHaveBeenCalled
()
describe
'check_fd'
,
->
xit
'should have more specs written for this functionality'
,
->
expect
(
false
)
beforeEach
->
# Insert an input of type file outside of the problem.
$
(
'.xblock-student_view'
).
after
(
'<input type="file" />'
)
@
problem
=
new
Problem
(
$
(
'.xblock-student_view'
))
spyOn
(
@
problem
,
'check'
)
it
'check method is called if input of type file is not in problem'
,
->
@
problem
.
check_fd
()
expect
(
@
problem
.
check
).
toHaveBeenCalled
()
describe
'check'
,
->
beforeEach
->
...
...
@@ -509,5 +515,3 @@ describe 'Problem', ->
xit
'serialize all answers'
,
->
@
problem
.
refreshAnswers
()
expect
(
@
problem
.
answers
).
toEqual
"input_1_1=one&input_1_2=two"
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
29857036
...
...
@@ -195,7 +195,7 @@ class @Problem
###
check_fd
:
=>
# If there are no file inputs in the problem, we can fall back on @check
if
$
(
'input:file'
).
length
==
0
if
@
el
.
find
(
'input:file'
).
length
==
0
@
check
()
return
...
...
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