From 8c5ac225b45688251f0d5b2ee610cadaa3f69efe Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Mon, 14 Feb 2011 17:13:01 -0300 Subject: [PATCH] Fixed test and added gallery big icon --- public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png | Bin 0 -> 5712 bytes public/designs/icons/tango/style.css | 1 + test/functional/content_viewer_controller_test.rb | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png diff --git a/public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png b/public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png new file mode 100644 index 0000000..90a6547 Binary files /dev/null and b/public/designs/icons/tango/mod/96x96/mimetypes/image-x-generic.png differ diff --git a/public/designs/icons/tango/style.css b/public/designs/icons/tango/style.css index 4fa008b..d179940 100644 --- a/public/designs/icons/tango/style.css +++ b/public/designs/icons/tango/style.css @@ -102,3 +102,4 @@ /******************LARGE ICONS********************/ .image-gallery-item .folder { background-image: url(mod/96x96/places/folder.png) } +.image-gallery-item .gallery { background-image: url(mod/96x96/mimetypes/image-x-generic.png) } diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index ccfa9a6..52c6b05 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -827,7 +827,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase get :view_page, :profile => profile.identifier, :page => folder.explode_path - assert_tag :tag => 'img', :attributes => {:src => /\/images\/icons-app\/image-loading-thumb.png/} + assert_tag :tag => 'a', :attributes => {:class => 'image', :style => /background-image: url\(\/images\/icons-app\/image-loading-thumb.png\)/} end should 'display thumbnail image in gallery if thumbnails were processed' do @@ -839,7 +839,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase process_delayed_job_queue get :view_page, :profile => profile.identifier, :page => folder.explode_path - assert_tag :tag => 'img', :attributes => {:src => /other-pic_thumb.jpg/} + assert_tag :tag => 'a', :attributes => {:class => 'image', :style => /background-image: url\(.*\/other-pic_thumb.jpg\)/} end should 'display source from article' do -- libgit2 0.21.2