Commit 2286259b by Valera Rozuvan

Merge pull request #943 from edx/valera/update_lti_tests

Updating LTI Jasmine tests.
parents 049aa3bb b858810a
<div id="lti_id" class="lti"> <div id="lti_id" class="lti">
<form <form
action="" action="http://www.example.com"
name="ltiLaunchForm" name="ltiLaunchForm"
class="ltiLaunchForm" class="ltiLaunchForm"
method="post" method="post"
target="ltiLaunchFrame" target="ltiLaunchFrame"
encType="application/x-www-form-urlencoded" enctype="application/x-www-form-urlencoded"
> >
<input name="launch_presentation_return_url" value="" />
<input type="hidden" name="launch_presentation_return_url" value=""> <input name="lti_version" value="LTI-1p0" />
<input type="hidden" name="lis_outcome_service_url" value=""> <input name="user_id" value="student" />
<input type="hidden" name="lis_result_sourcedid" value=""> <input name="oauth_nonce" value="28347958723982798572" />
<input type="hidden" name="lti_message_type" value="basic-lti-launch-request"> <input name="oauth_timestamp" value="2389479832" />
<input type="hidden" name="lti_version" value="LTI-1p0"> <input name="oauth_consumer_key" value="" />
<input type="hidden" name="oauth_callback" value="about:blank"> <input name="lis_result_sourcedid" value="" />
<input type="hidden" name="oauth_consumer_key" value=""/> <input name="oauth_signature_method" value="HMAC-SHA1" />
<input type="hidden" name="oauth_nonce" value=""/> <input name="oauth_version" value="1.0" />
<input type="hidden" name="oauth_signature_method" value="HMAC-SHA1"/> <input name="role" value="student" />
<input type="hidden" name="oauth_timestamp" value=""/> <input name="lis_outcome_service_url" value="" />
<input type="hidden" name="oauth_version" value="1.0"/> <input name="oauth_signature" value="89ru3289r3ry283y3r82ryr38yr" />
<input type="hidden" name="user_id" value="default_user_id"> <input name="lti_message_type" value="basic-lti-launch-request" />
<input type="hidden" name="oauth_signature" value=""/> <input name="oauth_callback" value="about:blank" />
<input type="submit" value="Press to Launch" /> <input type="submit" value="Press to Launch" />
</form> </form>
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
required fields. required fields.
</h3> </h3>
<iframe <iframe name="ltiLaunchFrame" class="ltiLaunchFrame" src=""></iframe>
name="ltiLaunchFrame"
class="ltiLaunchFrame"
src=""
></iframe>
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
}); });
it( it(
'when URL setting is filled form is not submited', 'when URL setting is not filled form is not submited',
function () { function () {
expect('submit').not.toHaveBeenTriggeredOn(form); expect('submit').not.toHaveBeenTriggeredOn(form);
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
// The user "fills in" the necessary settings, and the // The user "fills in" the necessary settings, and the
// form will get an action URL. // form will get an action URL.
form.attr('action', 'http://www.example.com/'); form.attr('action', 'http://www.example.com/test_submit');
LTI(element); LTI(element);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment