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
c0de9429
Commit
c0de9429
authored
Jul 17, 2015
by
Vedran Karačić
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8953 from edx/vkaracic/TNL-394-additional-testing
TNL-394: Additional testing
parents
e89d8e14
f5234b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lms/static/js/spec/staff_debug_actions_spec.js
+8
-0
No files found.
lms/static/js/spec/staff_debug_actions_spec.js
View file @
c0de9429
...
@@ -7,6 +7,9 @@ define(['backbone', 'jquery', 'js/staff_debug_actions'],
...
@@ -7,6 +7,9 @@ define(['backbone', 'jquery', 'js/staff_debug_actions'],
var
action
=
{
location
:
location
,
locationName
:
locationName
};
var
action
=
{
location
:
location
,
locationName
:
locationName
};
var
fixture_id
=
'sd_fu_'
+
locationName
;
var
fixture_id
=
'sd_fu_'
+
locationName
;
var
fixture
=
$
(
'<input>'
,
{
id
:
fixture_id
,
placeholder
:
"userman"
});
var
fixture
=
$
(
'<input>'
,
{
id
:
fixture_id
,
placeholder
:
"userman"
});
var
escapableLocationName
=
'test
\
.
\
*
\
+
\
?
\
^
\
:
\
$
\
{
\
}
\
(
\
)
\
|
\
]
\
[loc'
;
var
escapableFixture_id
=
'sd_fu_'
+
escapableLocationName
;
var
escapableFixture
=
$
(
'<input>'
,
{
id
:
escapableFixture_id
,
placeholder
:
"userman"
});
describe
(
'get_url '
,
function
()
{
describe
(
'get_url '
,
function
()
{
it
(
'defines url to courseware ajax entry point'
,
function
()
{
it
(
'defines url to courseware ajax entry point'
,
function
()
{
...
@@ -40,6 +43,11 @@ define(['backbone', 'jquery', 'js/staff_debug_actions'],
...
@@ -40,6 +43,11 @@ define(['backbone', 'jquery', 'js/staff_debug_actions'],
$
(
'#'
+
fixture_id
).
val
(
''
);
$
(
'#'
+
fixture_id
).
val
(
''
);
$
(
'#'
+
fixture_id
).
remove
();
$
(
'#'
+
fixture_id
).
remove
();
});
});
it
(
'gets the placeholder name if the id has escapable characters'
,
function
()
{
$
(
'body'
).
append
(
escapableFixture
);
expect
(
StaffDebug
.
get_user
(
'test.*+?^:${}()|][loc'
)).
toBe
(
'userman'
);
$
(
'#'
+
escapableFixture_id
).
remove
();
});
});
});
describe
(
'student_grade_adjustemnts'
,
function
()
{
describe
(
'student_grade_adjustemnts'
,
function
()
{
it
(
'makes an ajax call with the expected parameters'
,
function
()
{
it
(
'makes an ajax call with the expected parameters'
,
function
()
{
...
...
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