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
2286259b
Commit
2286259b
authored
Sep 12, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #943 from edx/valera/update_lti_tests
Updating LTI Jasmine tests.
parents
049aa3bb
b858810a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
23 deletions
+19
-23
common/lib/xmodule/xmodule/js/fixtures/lti.html
+17
-21
common/lib/xmodule/xmodule/js/spec/lti/constructor.js
+2
-2
No files found.
common/lib/xmodule/xmodule/js/fixtures/lti.html
View file @
2286259b
<div
id=
"lti_id"
class=
"lti"
>
<form
action=
""
action=
"
http://www.example.com
"
name=
"ltiLaunchForm"
class=
"ltiLaunchForm"
method=
"post"
target=
"ltiLaunchFrame"
enc
T
ype=
"application/x-www-form-urlencoded"
enc
t
ype=
"application/x-www-form-urlencoded"
>
<input
type=
"hidden"
name=
"launch_presentation_return_url"
value=
""
>
<input
type=
"hidden"
name=
"lis_outcome_service_url"
value=
""
>
<input
type=
"hidden"
name=
"lis_result_sourcedid"
value=
""
>
<input
type=
"hidden"
name=
"lti_message_type"
value=
"basic-lti-launch-request"
>
<input
type=
"hidden"
name=
"lti_version"
value=
"LTI-1p0"
>
<input
type=
"hidden"
name=
"oauth_callback"
value=
"about:blank"
>
<input
type=
"hidden"
name=
"oauth_consumer_key"
value=
""
/>
<input
type=
"hidden"
name=
"oauth_nonce"
value=
""
/>
<input
type=
"hidden"
name=
"oauth_signature_method"
value=
"HMAC-SHA1"
/>
<input
type=
"hidden"
name=
"oauth_timestamp"
value=
""
/>
<input
type=
"hidden"
name=
"oauth_version"
value=
"1.0"
/>
<input
type=
"hidden"
name=
"user_id"
value=
"default_user_id"
>
<input
type=
"hidden"
name=
"oauth_signature"
value=
""
/>
<input
name=
"launch_presentation_return_url"
value=
""
/>
<input
name=
"lti_version"
value=
"LTI-1p0"
/
>
<input
name=
"user_id"
value=
"student"
/
>
<input
name=
"oauth_nonce"
value=
"28347958723982798572"
/
>
<input
name=
"oauth_timestamp"
value=
"2389479832"
/
>
<input
name=
"oauth_consumer_key"
value=
""
/
>
<input
name=
"lis_result_sourcedid"
value=
""
/
>
<input
name=
"oauth_signature_method"
value=
"HMAC-SHA1"
/>
<input
name=
"oauth_version"
value=
"1.0"
/>
<input
name=
"role"
value=
"student"
/>
<input
name=
"lis_outcome_service_url"
value=
""
/>
<input
name=
"oauth_signature"
value=
"89ru3289r3ry283y3r82ryr38yr"
/>
<input
name=
"lti_message_type"
value=
"basic-lti-launch-request"
/
>
<input
name=
"oauth_callback"
value=
"about:blank"
/>
<input
type=
"submit"
value=
"Press to Launch"
/>
</form>
...
...
@@ -31,10 +31,6 @@
required fields.
</h3>
<iframe
name=
"ltiLaunchFrame"
class=
"ltiLaunchFrame"
src=
""
></iframe>
<iframe
name=
"ltiLaunchFrame"
class=
"ltiLaunchFrame"
src=
""
></iframe>
</div>
common/lib/xmodule/xmodule/js/spec/lti/constructor.js
View file @
2286259b
...
...
@@ -46,7 +46,7 @@
});
it
(
'when URL setting is filled form is not submited'
,
'when URL setting is
not
filled form is not submited'
,
function
()
{
expect
(
'submit'
).
not
.
toHaveBeenTriggeredOn
(
form
);
...
...
@@ -70,7 +70,7 @@
// The user "fills in" the necessary settings, and the
// form will get an action URL.
form
.
attr
(
'action'
,
'http://www.example.com/'
);
form
.
attr
(
'action'
,
'http://www.example.com/
test_submit
'
);
LTI
(
element
);
});
...
...
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