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
84322694
Commit
84322694
authored
Aug 08, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add jasmine test for scroll to top
parent
83d12cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
common/lib/xmodule/xmodule/js/spec/sequence/display_spec.coffee
+8
-0
No files found.
common/lib/xmodule/xmodule/js/spec/sequence/display_spec.coffee
View file @
84322694
...
...
@@ -134,6 +134,7 @@ xdescribe 'Sequence', ->
beforeEach
->
jasmine
.
stubRequests
()
@
sequence
=
new
Sequence
'1'
,
'sequence_1'
,
@
items
,
'sequence'
,
2
$
.
scrollTo
150
$
(
'.sequence-nav-buttons .next a'
).
click
()
it
'log the next sequence event'
,
->
...
...
@@ -142,10 +143,14 @@ xdescribe 'Sequence', ->
it
'call render on the next sequence'
,
->
expect
(
$
(
'#seq_content'
).
html
()).
toEqual
'Sample Problem'
it
'scrolls to the top of the page'
,
->
expect
(
$
(
'body'
).
scrollTop
()).
toBe
0
describe
'previous'
,
->
beforeEach
->
jasmine
.
stubRequests
()
@
sequence
=
new
Sequence
'1'
,
'sequence_1'
,
@
items
,
'sequence'
,
2
$
.
scrollTo
150
$
(
'.sequence-nav-buttons .prev a'
).
click
()
it
'log the previous sequence event'
,
->
...
...
@@ -154,6 +159,9 @@ xdescribe 'Sequence', ->
it
'call render on the previous sequence'
,
->
expect
(
$
(
'#seq_content'
).
html
()).
toEqual
'Video 1'
it
'scrolls to the top of the page'
,
->
expect
(
$
(
'body'
).
scrollTop
()).
toBe
0
describe
'link_for'
,
->
it
'return a link for specific position'
,
->
sequence
=
new
Sequence
'1'
,
'sequence_1'
,
@
items
,
2
...
...
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