Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
ac69321b
Commit
ac69321b
authored
Mar 03, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed student training step tests.
TNL-708
parent
d116de55
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
7 deletions
+42
-7
openassessment/xblock/static/js/fixtures/templates.json
+24
-3
openassessment/xblock/static/js/spec/studio/oa_edit_assessments.js
+3
-3
openassessment/xblock/static/js/spec/studio/oa_edit_prompt.js
+15
-1
No files found.
openassessment/xblock/static/js/fixtures/templates.json
View file @
ac69321b
...
...
@@ -101,7 +101,18 @@
{
"template"
:
"openassessmentblock/student_training/student_training.html"
,
"context"
:
{
"training_essay"
:
"My special essay."
,
"training_essay"
:
{
"answer"
:
{
"parts"
:
[
{
"prompt"
:
{
"description"
:
"Given the state of the world today, what do you think should be done to combat poverty?"
},
"text"
:
"My special essay."
}
]
}
},
"training_rubric"
:
{
"criteria"
:
[
{
...
...
@@ -528,7 +539,12 @@
"training"
:
{
"examples"
:
[
{
"answer"
:
"Test answer"
,
"answer"
:
{
"parts"
:
[
{
"text"
:
"Test answer 1"
},
{
"text"
:
"Test answer 2"
}
]
},
"criteria"
:
[
{
"name"
:
"criterion_with_two_options"
,
...
...
@@ -569,7 +585,12 @@
}
],
"template"
:
{
"answer"
:
""
,
"answer"
:
{
"parts"
:
[
{
"text"
:
""
},
{
"text"
:
""
}
]
},
"criteria"
:
[
{
"name"
:
"criterion_with_two_options"
,
...
...
openassessment/xblock/static/js/spec/studio/oa_edit_assessments.js
View file @
ac69321b
...
...
@@ -180,7 +180,7 @@ describe("OpenAssessment edit assessment views", function() {
expect
(
view
.
description
()).
toEqual
({
examples
:
[
{
answer
:
'Test answer'
,
answer
:
[
'Test answer 1'
,
'Test answer 2'
]
,
options_selected
:
[
{
criterion
:
'criterion_with_two_options'
,
...
...
@@ -197,7 +197,7 @@ describe("OpenAssessment edit assessment views", function() {
expect
(
view
.
description
()).
toEqual
({
examples
:
[
{
answer
:
'Test answer'
,
answer
:
[
'Test answer 1'
,
'Test answer 2'
]
,
options_selected
:
[
{
criterion
:
'criterion_with_two_options'
,
...
...
@@ -206,7 +206,7 @@ describe("OpenAssessment edit assessment views", function() {
]
},
{
answer
:
''
,
answer
:
[
''
,
''
]
,
options_selected
:
[
{
criterion
:
'criterion_with_two_options'
,
...
...
openassessment/xblock/static/js/spec/studio/oa_edit_prompt.js
View file @
ac69321b
...
...
@@ -4,6 +4,19 @@ Tests for OpenAssessment prompt editing view.
describe
(
"OpenAssessment.EditPromptViews"
,
function
()
{
// Use a stub notifier implementation that simply stores
// the notifications it receives.
var
notifier
=
null
;
var
StubNotifier
=
function
()
{
this
.
notifications
=
[];
this
.
notificationFired
=
function
(
name
,
data
)
{
this
.
notifications
.
push
({
name
:
name
,
data
:
data
});
};
};
var
view
=
null
;
beforeEach
(
function
()
{
...
...
@@ -12,7 +25,8 @@ describe("OpenAssessment.EditPromptViews", function() {
// Create the view
var
element
=
$
(
"#oa_prompt_editor_wrapper"
).
get
(
0
);
view
=
new
OpenAssessment
.
EditPromptsView
(
element
);
notifier
=
new
StubNotifier
();
view
=
new
OpenAssessment
.
EditPromptsView
(
element
,
notifier
);
});
it
(
"reads prompts from the editor"
,
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