Commit 8c5ac225b45688251f0d5b2ee610cadaa3f69efe

Authored by Daniela Feitosa
1 parent fe43ec78

Fixed test and added gallery big icon

(ActionItem1799)
public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png 0 → 100644

5.58 KB

public/designs/icons/tango/style.css
@@ -102,3 +102,4 @@ @@ -102,3 +102,4 @@
102 102
103 /******************LARGE ICONS********************/ 103 /******************LARGE ICONS********************/
104 .image-gallery-item .folder { background-image: url(mod/96x96/places/folder.png) } 104 .image-gallery-item .folder { background-image: url(mod/96x96/places/folder.png) }
  105 +.image-gallery-item .gallery { background-image: url(mod/96x96/mimetypes/image-x-generic.png) }
test/functional/content_viewer_controller_test.rb
@@ -827,7 +827,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase @@ -827,7 +827,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase
827 827
828 get :view_page, :profile => profile.identifier, :page => folder.explode_path 828 get :view_page, :profile => profile.identifier, :page => folder.explode_path
829 829
830 - assert_tag :tag => 'img', :attributes => {:src => /\/images\/icons-app\/image-loading-thumb.png/} 830 + assert_tag :tag => 'a', :attributes => {:class => 'image', :style => /background-image: url\(\/images\/icons-app\/image-loading-thumb.png\)/}
831 end 831 end
832 832
833 should 'display thumbnail image in gallery if thumbnails were processed' do 833 should 'display thumbnail image in gallery if thumbnails were processed' do
@@ -839,7 +839,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase @@ -839,7 +839,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase
839 process_delayed_job_queue 839 process_delayed_job_queue
840 get :view_page, :profile => profile.identifier, :page => folder.explode_path 840 get :view_page, :profile => profile.identifier, :page => folder.explode_path
841 841
842 - assert_tag :tag => 'img', :attributes => {:src => /other-pic_thumb.jpg/} 842 + assert_tag :tag => 'a', :attributes => {:class => 'image', :style => /background-image: url\(.*\/other-pic_thumb.jpg\)/}
843 end 843 end
844 844
845 should 'display source from article' do 845 should 'display source from article' do