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
fefc88b0
Commit
fefc88b0
authored
Apr 20, 2016
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-rebase fixes.
parent
1b0cda24
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
8 deletions
+37
-8
lms/static/js/spec/learner_dashboard/program_card_view_spec.js
+1
-1
lms/static/js/spec/main.js
+2
-3
lms/static/js/spec/main_requirejs_coffee.js
+23
-0
lms/static/js/spec/student_profile/badge_view_spec.js
+3
-3
lms/static/js/spec/student_profile/section_two_tab_spec.js
+1
-1
lms/static/karma_lms_coffee.conf.js
+7
-0
No files found.
lms/static/js/spec/learner_dashboard/program_card_view_spec.js
View file @
fefc88b0
...
...
@@ -67,7 +67,7 @@ define([
});
it
(
'should handle exceptions from reEvaluatePicture'
,
function
(){
spyOn
(
view
,
'reEvaluatePicture'
).
and
C
allFake
(
function
(){
spyOn
(
view
,
'reEvaluatePicture'
).
and
.
c
allFake
(
function
(){
throw
{
name
:
'Picturefill had exceptions'
};
});
view
.
reLoadBannerImage
();
...
...
lms/static/js/spec/main.js
View file @
fefc88b0
...
...
@@ -31,8 +31,8 @@
'moment'
:
'xmodule_js/common_static/js/vendor/moment.min'
,
'moment-with-locales'
:
'xmodule_js/common_static/js/vendor/moment-with-locales.min'
,
'text'
:
'xmodule_js/common_static/js/vendor/requirejs/text'
,
'underscore'
:
'
xmodule_js/common_static/
common/js/vendor/underscore'
,
'underscore.string'
:
'
xmodule_js/common_static/
common/js/vendor/underscore.string'
,
'underscore'
:
'common/js/vendor/underscore'
,
'underscore.string'
:
'common/js/vendor/underscore.string'
,
'backbone'
:
'xmodule_js/common_static/js/vendor/backbone-min'
,
'backbone.associations'
:
'xmodule_js/common_static/js/vendor/backbone-associations-min'
,
'backbone.paginator'
:
'xmodule_js/common_static/js/vendor/backbone.paginator.min'
,
...
...
@@ -49,7 +49,6 @@
'jasmine-stealth'
:
'xmodule_js/common_static/js/vendor/jasmine-stealth'
,
'jasmine-waituntil'
:
'xmodule_js/common_static/js/libs/jasmine-waituntil'
,
'jasmine-extensions'
:
'xmodule_js/common_static/js/libs/jasmine-extensions'
,
'draggabilly'
:
'xmodule_js/common_static/js/vendor/draggabilly.pkgd'
,
'domReady'
:
'xmodule_js/common_static/js/vendor/domReady'
,
'mathjax'
:
'//cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// jshint ignore:line
'youtube'
:
'//www.youtube.com/player_api?noext'
,
...
...
lms/static/js/spec/main_requirejs_coffee.js
0 → 100644
View file @
fefc88b0
(
function
(
requirejs
)
{
'use strict'
;
requirejs
.
config
({
baseUrl
:
'/base/'
,
paths
:
{
"moment"
:
"xmodule_js/common_static/js/vendor/moment.min"
,
"modernizr"
:
"xmodule_js/common_static/edx-pattern-library/js/modernizr-custom"
,
"afontgarde"
:
"xmodule_js/common_static/edx-pattern-library/js/afontgarde"
,
"edxicons"
:
"xmodule_js/common_static/edx-pattern-library/js/edx-icons"
,
"draggabilly"
:
"xmodule_js/common_static/js/vendor/draggabilly"
},
"moment"
:
{
exports
:
"moment"
},
"modernizr"
:
{
exports
:
"Modernizr"
},
"afontgarde"
:
{
exports
:
"AFontGarde"
}
});
}).
call
(
this
,
requirejs
,
define
);
// jshint ignore:line
lms/static/js/spec/student_profile/badge_view_spec.js
View file @
fefc88b0
...
...
@@ -52,7 +52,7 @@ define(['backbone', 'jquery', 'underscore',
expect
(
view
.
createModal
).
toHaveBeenCalled
();
});
it
(
"click on share button calls shows the dialog"
,
function
()
{
it
(
"click on share button calls shows the dialog"
,
function
(
done
)
{
view
=
createView
(
true
);
expect
(
view
.
context
.
ownProfile
).
toBeTruthy
();
var
shareButton
=
view
.
$el
.
find
(
'button.share-button'
);
...
...
@@ -63,9 +63,9 @@ define(['backbone', 'jquery', 'underscore',
shareButton
.
click
();
// Note: this element should have appeared in the dom during: shareButton.click();
modalElement
=
$
(
'.badges-modal'
);
waitsFor
(
function
()
{
jasmine
.
waitUntil
(
function
()
{
return
modalElement
.
is
(
":visible"
);
}
,
''
,
1000
);
}
).
always
(
done
);
});
var
testBadgeNameIsDisplayed
=
function
(
ownProfile
)
{
...
...
lms/static/js/spec/student_profile/section_two_tab_spec.js
View file @
fefc88b0
...
...
@@ -50,7 +50,7 @@ define(['backbone', 'jquery', 'underscore',
it
(
"profile field parts are actually rendered for public profile"
,
function
()
{
var
view
=
createSectionTwoView
(
false
,
true
);
_
.
each
(
view
.
options
.
viewList
,
function
(
fieldView
)
{
spyOn
(
fieldView
,
"render"
).
and
C
allThrough
();
spyOn
(
fieldView
,
"render"
).
and
.
c
allThrough
();
});
view
.
render
();
_
.
each
(
view
.
options
.
viewList
,
function
(
fieldView
)
{
...
...
lms/static/karma_lms_coffee.conf.js
View file @
fefc88b0
...
...
@@ -40,6 +40,7 @@ var files = [
{
pattern
:
'xmodule_js/common_static/js/vendor/jasmine-imagediff.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/js/libs/jasmine-extensions.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/js/vendor/requirejs/require.js'
,
included
:
true
},
{
pattern
:
'js/spec/main_requirejs_coffee.js'
,
included
:
true
},
{
pattern
:
'js/RequireJS-namespace-undefine.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/js/vendor/jquery-ui.min.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/js/vendor/jquery.cookie.js'
,
included
:
true
},
...
...
@@ -55,6 +56,12 @@ var files = [
{
pattern
:
'xmodule_js/src/capa/*.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/src/video/*.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/src/xmodule.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/js/vendor/draggabilly.js'
,
included
:
false
},
{
pattern
:
'xmodule_js/common_static/edx-ui-toolkit/js/utils/global-loader.js'
,
included
:
true
},
{
pattern
:
'xmodule_js/common_static/edx-pattern-library/js/modernizr-custom.js'
,
included
:
false
},
{
pattern
:
'xmodule_js/common_static/edx-pattern-library/js/afontgarde.js'
,
included
:
false
},
{
pattern
:
'xmodule_js/common_static/edx-pattern-library/js/edx-icons.js'
,
included
:
false
},
// source files
{
pattern
:
'coffee/src/**/*.js'
,
included
:
true
,
nocache
:
true
},
...
...
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