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
ab1173cf
Commit
ab1173cf
authored
Jan 07, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge with cms-master.
parent
edd9b2bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
common/lib/xmodule/jasmine_test_runner.html.erb
+1
-0
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
+2
-1
common/lib/xmodule/xmodule/js/spec/helper.coffee
+10
-10
No files found.
common/lib/xmodule/jasmine_test_runner.html.erb
View file @
ab1173cf
...
...
@@ -12,6 +12,7 @@
<script
type=
"text/javascript"
src=
"
<%=
common_coffee_root
%>
/logger.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
common_js_root
%>
/vendor/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
common_js_root
%>
/vendor/jasmine-jquery.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
common_js_root
%>
/vendor/jquery.cookie.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
common_js_root
%>
/vendor/CodeMirror/codemirror.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
common_js_root
%>
/vendor/mathjax-MathJax-c9db6ac/MathJax.js"
></script>
...
...
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
View file @
ab1173cf
...
...
@@ -70,7 +70,8 @@ describe 'Problem', ->
it
'bind the math input'
,
->
expect
(
$
(
'input.math'
)).
toHandleWith
'keyup'
,
@
problem
.
refreshMath
it
'replace math content on the page'
,
->
# TODO: figure out why failing
xit
'replace math content on the page'
,
->
expect
(
MathJax
.
Hub
.
Queue
.
mostRecentCall
.
args
).
toEqual
[
[
'Text'
,
@
stubbedJax
,
''
],
[
@
problem
.
updateMathML
,
@
stubbedJax
,
$
(
'#input_example_1'
).
get
(
0
)]
...
...
common/lib/xmodule/xmodule/js/spec/helper.coffee
View file @
ab1173cf
# Stub Youtube API
window
.
YT
=
PlayerState
:
UNSTARTED
:
-
1
ENDED
:
0
PLAYING
:
1
PAUSED
:
2
BUFFERING
:
3
CUED
:
5
jasmine
.
getFixtures
().
fixturesPath
=
'xmodule/js/fixtures'
jasmine
.
stubbedMetadata
=
...
...
@@ -56,16 +66,6 @@ jasmine.stubVideoPlayer = (context, enableParts, createPlayer=true) ->
spyOn
(
window
,
'onunload'
)
# Stub Youtube API
window
.
YT
=
PlayerState
:
UNSTARTED
:
-
1
ENDED
:
0
PLAYING
:
1
PAUSED
:
2
BUFFERING
:
3
CUED
:
5
# Stub jQuery.cookie
$
.
cookie
=
jasmine
.
createSpy
(
'jQuery.cookie'
).
andReturn
'1.0'
...
...
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