Revision 2010:a3d27e76b738,
1.3 KB
checked in by Nicolas <nikrou77@…>, 12 years ago
(diff) |
Rewrite pageTabs plugin
Remove dependency with hashchange plugin
Fix issue : when click on tab focus must not follow anchor
|
Line | |
---|
1 | describe("Enhanced Media Manager", function() { |
---|
2 | describe("Starting with media manager enhanced disabled", function() { |
---|
3 | it("Enhanced uploader can be temporarily enabled", function() { |
---|
4 | loadFixtures('form_media_disabled.html'); |
---|
5 | loadStyleFixtures('default.css'); |
---|
6 | |
---|
7 | $('#fileupload').enhancedUploader(); |
---|
8 | expect($('p.clear a.enhanced-toggle').text()).toBe(dotclear.msg.enhanced_uploader_activate); |
---|
9 | expect($('#fileupload .button.start')).not.toBeDisabled(); |
---|
10 | |
---|
11 | $('p.clear a.enhanced-toggle').click(); |
---|
12 | expect($('p.clear a.enhanced-toggle').text()).toBe(dotclear.msg.enhanced_uploader_disable); |
---|
13 | expect($('.button.start')).toBeDisabled(); |
---|
14 | }); |
---|
15 | }); |
---|
16 | |
---|
17 | describe("Starting with media manager enhanced enabled", function() { |
---|
18 | it("Enhanced uploader can be temporarily disabled", function() { |
---|
19 | loadFixtures('form_media_enabled.html'); |
---|
20 | loadStyleFixtures('default.css'); |
---|
21 | |
---|
22 | $('#fileupload').enhancedUploader(); |
---|
23 | expect($('p.clear a.enhanced-toggle').text()).toBe(dotclear.msg.enhanced_uploader_disable); |
---|
24 | expect($('.button.start')).toBeDisabled(); |
---|
25 | |
---|
26 | $('p.clear a.enhanced-toggle').click(); |
---|
27 | expect($('p.clear a.enhanced-toggle').text()).toBe(dotclear.msg.enhanced_uploader_activate); |
---|
28 | expect($('#fileupload .button.start')).not.toBeDisabled(); |
---|
29 | }); |
---|
30 | }); |
---|
31 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.