From b858810aa40647a3465b0752f8100ea6d49fc7db Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Thu, 12 Sep 2013 11:07:07 +0300 Subject: [PATCH] Updating LTI Jasmine tests. Due to the fact that by default the LTI settings have "http://www.example.com" set as the default form action (launch_url), tests were updated to reflect the fact that when setting is in default state, form is not submited, even when the form action is not empty. --- .../lib/xmodule/xmodule/js/fixtures/lti.html | 38 +++++++++---------- .../xmodule/js/spec/lti/constructor.js | 4 +- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/fixtures/lti.html b/common/lib/xmodule/xmodule/js/fixtures/lti.html index e5e7ab3f3f..ae545970ce 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/lti.html +++ b/common/lib/xmodule/xmodule/js/fixtures/lti.html @@ -1,27 +1,27 @@
- - - - - - - - - - - - - - + + + + + + + + + + + + + +
@@ -31,10 +31,6 @@ required fields. - +
diff --git a/common/lib/xmodule/xmodule/js/spec/lti/constructor.js b/common/lib/xmodule/xmodule/js/spec/lti/constructor.js index 0a73496bed..f016d42d9d 100644 --- a/common/lib/xmodule/xmodule/js/spec/lti/constructor.js +++ b/common/lib/xmodule/xmodule/js/spec/lti/constructor.js @@ -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); });