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
28959973
Commit
28959973
authored
Jul 06, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it more obvious that the function is no-op
parent
f71e54cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cms/static/coffee/spec/main_spec.coffee
+4
-4
No files found.
cms/static/coffee/spec/main_spec.coffee
View file @
28959973
...
@@ -25,7 +25,7 @@ describe "CMS", ->
...
@@ -25,7 +25,7 @@ describe "CMS", ->
describe
"replaceView"
,
->
describe
"replaceView"
,
->
beforeEach
->
beforeEach
->
@
newView
=
jasmine
.
createSpy
(
"newView"
)
@
newView
=
jasmine
.
createSpy
(
"newView"
)
CMS
.
on
"content.show"
,
(
@
expectedView
)
=>
CMS
.
on
(
"content.show"
,
(
@
expectedView
)
=>
)
CMS
.
replaceView
(
@
newView
)
CMS
.
replaceView
(
@
newView
)
it
"replace the views on the viewStack"
,
->
it
"replace the views on the viewStack"
,
->
...
@@ -37,7 +37,7 @@ describe "CMS", ->
...
@@ -37,7 +37,7 @@ describe "CMS", ->
describe
"pushView"
,
->
describe
"pushView"
,
->
beforeEach
->
beforeEach
->
@
newView
=
jasmine
.
createSpy
(
"newView"
)
@
newView
=
jasmine
.
createSpy
(
"newView"
)
CMS
.
on
"content.show"
,
(
@
expectedView
)
=>
CMS
.
on
(
"content.show"
,
(
@
expectedView
)
=>
)
CMS
.
pushView
(
@
newView
)
CMS
.
pushView
(
@
newView
)
it
"push new view onto viewStack"
,
->
it
"push new view onto viewStack"
,
->
...
@@ -54,7 +54,7 @@ describe "CMS", ->
...
@@ -54,7 +54,7 @@ describe "CMS", ->
describe
"when there's no view on the viewStack"
,
->
describe
"when there's no view on the viewStack"
,
->
beforeEach
->
beforeEach
->
CMS
.
viewStack
=
[
@
currentView
]
CMS
.
viewStack
=
[
@
currentView
]
CMS
.
on
"content.hide"
,
=>
@
eventTriggered
=
true
CMS
.
on
(
"content.hide"
,
=>
@
eventTriggered
=
true
)
CMS
.
popView
()
CMS
.
popView
()
it
"trigger content.hide on CMS"
,
->
it
"trigger content.hide on CMS"
,
->
...
@@ -64,7 +64,7 @@ describe "CMS", ->
...
@@ -64,7 +64,7 @@ describe "CMS", ->
beforeEach
->
beforeEach
->
@
parentView
=
jasmine
.
createSpyObj
(
"parentView"
,
[
"delegateEvents"
])
@
parentView
=
jasmine
.
createSpyObj
(
"parentView"
,
[
"delegateEvents"
])
CMS
.
viewStack
=
[
@
parentView
,
@
currentView
]
CMS
.
viewStack
=
[
@
parentView
,
@
currentView
]
CMS
.
on
"content.show"
,
(
@
expectedView
)
=>
CMS
.
on
(
"content.show"
,
(
@
expectedView
)
=>
)
CMS
.
popView
()
CMS
.
popView
()
it
"trigger content.show with the previous view on CMS"
,
->
it
"trigger content.show with the previous view on CMS"
,
->
...
...
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