cahrens
a82daf0710
Change to Backbone collection.
2013-05-31 15:59:53 -04:00
cahrens
c0c5e920a3
Go back to setFixtures.
2013-05-30 12:56:55 -04:00
cahrens
f0260757c5
Cleanup.
2013-05-29 16:50:22 -04:00
cahrens
7d07309f9d
Don't call setFixtures. Can stomp on other tests.
2013-05-29 14:03:16 -04:00
cahrens
24707f8f85
Jasmine test for views.
2013-05-29 12:09:42 -04:00
cahrens
625c6b518c
Cleanup, change how we load templates.
2013-05-28 14:07:35 -04:00
cahrens
c95b44d851
Merge branch 'master' into feature/christina/metadata-ui
...
Conflicts:
cms/envs/common.py
cms/templates/base.html
common/lib/xmodule/xmodule/combined_open_ended_module.py
2013-05-23 11:41:12 -04:00
David Baumgold
c26edbd631
jasmine-jquery compatiblity post-backport
2013-05-23 10:14:47 -04:00
David Baumgold
4736527952
Add Jasmine tests to cover AJAX error notifications
2013-05-22 15:55:56 -04:00
David Baumgold
3738078ce9
Load system feedback template for SectionEdit tests
2013-05-22 15:55:56 -04:00
David Baumgold
9e864834bd
Unify system feedback templates
...
Also, a SystemFeedback model no longer has a `type`, it has an `intent`. This is
because SystemFeedback views have `type`, as well, and this prevents a naming
collision.
2013-05-22 15:55:55 -04:00
David Baumgold
5a06c69289
Add toBeShown and toBeHiding matchers for Jasmine
...
To reduce redundancy in tests
2013-05-22 15:55:54 -04:00
David Baumgold
0052eaacbc
Backbone section: don't save name on validation error
2013-05-22 15:55:54 -04:00
David Baumgold
c628a8a360
Fix test
2013-05-22 15:55:53 -04:00
David Baumgold
9cbfee9894
Fix Jasmine tests related to invalid messages for section model
2013-05-22 15:55:53 -04:00
David Baumgold
2b01273f7f
Added some Jasmine tests for section views in Backbone
2013-05-22 15:55:52 -04:00
David Baumgold
6ed5a2aa01
Added tests for Backbone section models
2013-05-22 15:55:52 -04:00
David Baumgold
56d8a467c8
Add tests for minShown and maxShown in views
2013-05-22 15:55:52 -04:00
David Baumgold
dc76d71c42
4-space indents for coffeescript
2013-05-22 15:55:52 -04:00
David Baumgold
4af3325976
Move display logic into view
...
Model shouldn't know about things like close buttons, visibility, and so on
2013-05-22 15:55:51 -04:00
David Baumgold
528987342a
Add tests for primary and secondary CSS classes
2013-05-22 15:55:51 -04:00
David Baumgold
fedfe8627f
Add tests for click events on views
2013-05-22 15:55:51 -04:00
David Baumgold
070d24cf61
Jasmine doesn't like asserting on the <body> element :(
2013-05-22 15:55:51 -04:00
David Baumgold
10ec604630
Got jasmine tests working with fixtures properly
2013-05-22 15:55:50 -04:00
David Baumgold
5275e41e4a
Adding new feedback view tests
2013-05-22 15:55:50 -04:00
David Baumgold
39f81df476
Added a few more tests for feedback models
2013-05-22 15:55:50 -04:00
David Baumgold
e440580c79
Started writing Backbone tests
...
Hacking the Python, because our JS dependency management is borked.
2013-05-22 15:55:50 -04:00
cahrens
4facd262bd
Jasmine test for metadata model.
2013-05-20 16:26:48 -04:00
cahrens
235ecff28b
In progress.
2013-05-16 10:40:48 -04:00
cahrens
c01410626f
Jasmine test for changedMetadata method.
2013-05-02 13:39:20 -04:00
Calen Pennington
255720abd7
Clean old javascript tests from CAS
2012-10-31 13:21:36 -04:00
Victor Shnayder
77175872cc
Fix some of the CMS jasmine tests.
...
* still a few that I haven't tracked down...
2012-08-08 13:14:54 -04:00
Prem Sichanugrist
b8fd728e06
Pass in element in CMS.start() instead
2012-07-06 11:33:37 -04:00
Prem Sichanugrist
289599733d
Make it more obvious that the function is no-op
2012-07-06 11:33:00 -04:00
Prem Sichanugrist
f71e54cc9b
Removed unused Week Model
2012-07-06 11:28:02 -04:00
Prem Sichanugrist
95cf25c1dc
Fix quote convention in tests
2012-07-06 00:35:00 -04:00
Prem Sichanugrist
9ba624683d
Update Views.ModuleEdit, also added test
2012-07-06 00:32:50 -04:00
Prem Sichanugrist
dd3ddeb946
CMS.Views.Week is tested
2012-07-06 00:05:08 -04:00
Prem Sichanugrist
b11b916906
CMS.Views.Course fixed and tested
2012-07-05 23:40:40 -04:00
Prem Sichanugrist
4d4a856c4b
CMS.Views.Module tested
2012-07-05 22:51:08 -04:00
Prem Sichanugrist
4d29c311c7
CMS.Views.WeekEdit tested
2012-07-05 22:50:23 -04:00
Prem Sichanugrist
8979b993ef
Add blank spec for CMS.Models.Week
2012-07-05 21:33:19 -04:00
Prem Sichanugrist
fe17c37783
CMS.Models.Module tested
2012-07-05 21:31:32 -04:00
Prem Sichanugrist
68bb8d5874
Patch window.it to raise error on pending tests
2012-07-05 21:08:09 -04:00
Prem Sichanugrist
d6c033d675
main.coffee/CMS module tested
2012-07-05 19:42:10 -04:00