Fixes: U4-3840 MediaPicker doesn't show images when there are also folders inside of the folder being viewed

and moves some of the util classes into their own files, adjusted media picker's icon sizes too to make it more readable.
This commit is contained in:
Shannon
2013-12-12 16:16:59 +11:00
parent a098e49840
commit d223ee97cd
6 changed files with 815 additions and 800 deletions

View File

@@ -23,16 +23,5 @@ describe('image helper tests', function () {
expect(umbImageHelper.detectIfImageByExtension(doc1)).toBe(false);
});
it('gets a thumbnail path', function () {
var image1 = "a-jpeg.jpg";
var image2 = "a-png.png";
var image3 = "thisisagif.blah.gif";
expect(umbImageHelper.getThumbnailFromPath(image1)).toBe("a-jpeg_big-thumb.jpg");
expect(umbImageHelper.getThumbnailFromPath(image2)).toBe("a-png_big-thumb.jpg");
expect(umbImageHelper.getThumbnailFromPath(image3)).toBe("thisisagif.blah_big-thumb.jpg");
});
});
});