Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
oov committed Jul 27, 2016
1 parent 329f131 commit 40a13f2
Show file tree
Hide file tree
Showing 213 changed files with 16 additions and 0 deletions.
Binary file added png/psb_compat_!merged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_!merged_Ch0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_!merged_Ch1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_!merged_Ch2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_!merged_Ch3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0_Ch-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0_Ch-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0_Ch0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0_Ch1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_0_Ch2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1_Ch-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1_Ch-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1_Ch0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1_Ch1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_1_Ch2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_2_Ch2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/psb_compat_3_Ch-1.png
Binary file added png/psb_compat_3_Ch-2.png
Binary file added png/psb_compat_3_Ch0.png
Binary file added png/psb_compat_3_Ch1.png
Binary file added png/psb_compat_3_Ch2.png
Binary file added png/psb_compat_4.png
Binary file added png/psb_compat_4_Ch-1.png
Binary file added png/psb_compat_4_Ch0.png
Binary file added png/psb_compat_4_Ch1.png
Binary file added png/psb_compat_4_Ch2.png
Binary file added png/psb_compat_5.png
Binary file added png/psb_compat_5_Ch-1.png
Binary file added png/psb_compat_5_Ch-2.png
Binary file added png/psb_compat_5_Ch-3.png
Binary file added png/psb_compat_5_Ch0.png
Binary file added png/psb_compat_5_Ch1.png
Binary file added png/psb_compat_5_Ch2.png
Binary file added png/psb_compat_6.png
Binary file added png/psb_compat_6_Ch-1.png
Binary file added png/psb_compat_6_Ch-2.png
Binary file added png/psb_compat_6_Ch0.png
Binary file added png/psb_compat_6_Ch1.png
Binary file added png/psb_compat_6_Ch2.png
Binary file added png/psb_compat_7.png
Binary file added png/psb_compat_7_Ch-1.png
Binary file added png/psb_compat_7_Ch-2.png
Binary file added png/psb_compat_7_Ch0.png
Binary file added png/psb_compat_7_Ch1.png
Binary file added png/psb_compat_7_Ch2.png
Binary file added png/psb_nocompat_!merged.png
Binary file added png/psb_nocompat_!merged_Ch0.png
Binary file added png/psb_nocompat_!merged_Ch1.png
Binary file added png/psb_nocompat_!merged_Ch2.png
Binary file added png/psb_nocompat_0.png
Binary file added png/psb_nocompat_0_Ch-1.png
Binary file added png/psb_nocompat_0_Ch-2.png
Binary file added png/psb_nocompat_0_Ch0.png
Binary file added png/psb_nocompat_0_Ch1.png
Binary file added png/psb_nocompat_0_Ch2.png
Binary file added png/psb_nocompat_1.png
Binary file added png/psb_nocompat_1_Ch-1.png
Binary file added png/psb_nocompat_1_Ch0.png
Binary file added png/psb_nocompat_1_Ch1.png
Binary file added png/psb_nocompat_1_Ch2.png
Binary file added png/psb_nocompat_2.png
Binary file added png/psb_nocompat_2_Ch-1.png
Binary file added png/psb_nocompat_2_Ch-2.png
Binary file added png/psb_nocompat_2_Ch0.png
Binary file added png/psb_nocompat_2_Ch1.png
Binary file added png/psb_nocompat_2_Ch2.png
Binary file added png/psb_nocompat_3.png
Binary file added png/psb_nocompat_3_Ch-1.png
Binary file added png/psb_nocompat_3_Ch-2.png
Binary file added png/psb_nocompat_3_Ch0.png
Binary file added png/psb_nocompat_3_Ch1.png
Binary file added png/psb_nocompat_3_Ch2.png
Binary file added png/psb_nocompat_4.png
Binary file added png/psb_nocompat_4_Ch-1.png
Binary file added png/psb_nocompat_4_Ch0.png
Binary file added png/psb_nocompat_4_Ch1.png
Binary file added png/psb_nocompat_4_Ch2.png
Binary file added png/psb_nocompat_5.png
Binary file added png/psb_nocompat_5_Ch-1.png
Binary file added png/psb_nocompat_5_Ch-2.png
Binary file added png/psb_nocompat_5_Ch0.png
Binary file added png/psb_nocompat_5_Ch1.png
Binary file added png/psb_nocompat_5_Ch2.png
Binary file added png/psb_nocompat_6.png
Binary file added png/psb_nocompat_6_Ch-1.png
Binary file added png/psb_nocompat_6_Ch-2.png
Binary file added png/psb_nocompat_6_Ch0.png
Binary file added png/psb_nocompat_6_Ch1.png
Binary file added png/psb_nocompat_6_Ch2.png
Binary file added png/psb_nocompat_7.png
Binary file added png/psb_nocompat_7_Ch-1.png
Binary file added png/psb_nocompat_7_Ch-2.png
Binary file added png/psb_nocompat_7_Ch0.png
Binary file added png/psb_nocompat_7_Ch1.png
Binary file added png/psb_nocompat_7_Ch2.png
Binary file added png/psd_compat_!merged.png
Binary file added png/psd_compat_!merged_Ch0.png
Binary file added png/psd_compat_!merged_Ch1.png
Binary file added png/psd_compat_!merged_Ch2.png
Binary file added png/psd_compat_!merged_Ch3.png
Binary file added png/psd_compat_0.png
Binary file added png/psd_compat_0_Ch-1.png
Binary file added png/psd_compat_0_Ch-2.png
Binary file added png/psd_compat_0_Ch0.png
Binary file added png/psd_compat_0_Ch1.png
Binary file added png/psd_compat_0_Ch2.png
Binary file added png/psd_compat_1.png
Binary file added png/psd_compat_1_Ch-1.png
Binary file added png/psd_compat_1_Ch-2.png
Binary file added png/psd_compat_1_Ch0.png
Binary file added png/psd_compat_1_Ch1.png
Binary file added png/psd_compat_1_Ch2.png
Binary file added png/psd_compat_2.png
Binary file added png/psd_compat_2_Ch-1.png
Binary file added png/psd_compat_2_Ch-2.png
Binary file added png/psd_compat_2_Ch-3.png
Binary file added png/psd_compat_2_Ch0.png
Binary file added png/psd_compat_2_Ch1.png
Binary file added png/psd_compat_2_Ch2.png
Binary file added png/psd_compat_3.png
Binary file added png/psd_compat_3_Ch-1.png
Binary file added png/psd_compat_3_Ch-2.png
Binary file added png/psd_compat_3_Ch0.png
Binary file added png/psd_compat_3_Ch1.png
Binary file added png/psd_compat_3_Ch2.png
Binary file added png/psd_compat_4.png
Binary file added png/psd_compat_4_Ch-1.png
Binary file added png/psd_compat_4_Ch0.png
Binary file added png/psd_compat_4_Ch1.png
Binary file added png/psd_compat_4_Ch2.png
Binary file added png/psd_compat_5.png
Binary file added png/psd_compat_5_Ch-1.png
Binary file added png/psd_compat_5_Ch-2.png
Binary file added png/psd_compat_5_Ch-3.png
Binary file added png/psd_compat_5_Ch0.png
Binary file added png/psd_compat_5_Ch1.png
Binary file added png/psd_compat_5_Ch2.png
Binary file added png/psd_compat_6.png
Binary file added png/psd_compat_6_Ch-1.png
Binary file added png/psd_compat_6_Ch-2.png
Binary file added png/psd_compat_6_Ch0.png
Binary file added png/psd_compat_6_Ch1.png
Binary file added png/psd_compat_6_Ch2.png
Binary file added png/psd_compat_7.png
Binary file added png/psd_compat_7_Ch-1.png
Binary file added png/psd_compat_7_Ch-2.png
Binary file added png/psd_compat_7_Ch0.png
Binary file added png/psd_compat_7_Ch1.png
Binary file added png/psd_compat_7_Ch2.png
Binary file added png/psd_nocompat_!merged.png
Binary file added png/psd_nocompat_!merged_Ch0.png
Binary file added png/psd_nocompat_!merged_Ch1.png
Binary file added png/psd_nocompat_!merged_Ch2.png
Binary file added png/psd_nocompat_0.png
Binary file added png/psd_nocompat_0_Ch-1.png
Binary file added png/psd_nocompat_0_Ch-2.png
Binary file added png/psd_nocompat_0_Ch0.png
Binary file added png/psd_nocompat_0_Ch1.png
Binary file added png/psd_nocompat_0_Ch2.png
Binary file added png/psd_nocompat_1.png
Binary file added png/psd_nocompat_1_Ch-1.png
Binary file added png/psd_nocompat_1_Ch0.png
Binary file added png/psd_nocompat_1_Ch1.png
Binary file added png/psd_nocompat_1_Ch2.png
Binary file added png/psd_nocompat_2.png
Binary file added png/psd_nocompat_2_Ch-1.png
Binary file added png/psd_nocompat_2_Ch-2.png
Binary file added png/psd_nocompat_2_Ch0.png
Binary file added png/psd_nocompat_2_Ch1.png
Binary file added png/psd_nocompat_2_Ch2.png
Binary file added png/psd_nocompat_3.png
Binary file added png/psd_nocompat_3_Ch-1.png
Binary file added png/psd_nocompat_3_Ch-2.png
Binary file added png/psd_nocompat_3_Ch0.png
Binary file added png/psd_nocompat_3_Ch1.png
Binary file added png/psd_nocompat_3_Ch2.png
Binary file added png/psd_nocompat_4.png
Binary file added png/psd_nocompat_4_Ch-1.png
Binary file added png/psd_nocompat_4_Ch0.png
Binary file added png/psd_nocompat_4_Ch1.png
Binary file added png/psd_nocompat_4_Ch2.png
Binary file added png/psd_nocompat_5.png
Binary file added png/psd_nocompat_5_Ch-1.png
Binary file added png/psd_nocompat_5_Ch-2.png
Binary file added png/psd_nocompat_5_Ch0.png
Binary file added png/psd_nocompat_5_Ch1.png
Binary file added png/psd_nocompat_5_Ch2.png
Binary file added png/psd_nocompat_6.png
Binary file added png/psd_nocompat_6_Ch-1.png
Binary file added png/psd_nocompat_6_Ch-2.png
Binary file added png/psd_nocompat_6_Ch0.png
Binary file added png/psd_nocompat_6_Ch1.png
Binary file added png/psd_nocompat_6_Ch2.png
Binary file added png/psd_nocompat_7.png
Binary file added png/psd_nocompat_7_Ch-1.png
Binary file added png/psd_nocompat_7_Ch-2.png
Binary file added png/psd_nocompat_7_Ch0.png
Binary file added png/psd_nocompat_7_Ch1.png
Binary file added png/psd_nocompat_7_Ch2.png
16 changes: 16 additions & 0 deletions psd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ var testImages = []testImage{
Name: "Layer Mask & Vector Mask",
PSD: "mask.psd",
},
{
Name: "Normal Format(maximize compatibility on)",
PSD: "psd_compat.psd",
},
{
Name: "Normal Format(maximize compatibility off)",
PSD: "psd_nocompat.psd",
},
{
Name: "Big Document Format(maximize compatibility on)",
PSD: "psb_compat.psb",
},
{
Name: "Big Document Format(maximize compatibility off)",
PSD: "psb_nocompat.psb",
},
}

func verifyChannel(t *testing.T, name string, filename string, ch image.Image) {
Expand Down
Binary file added testdata/psb_compat.psb
Binary file not shown.
Binary file added testdata/psb_nocompat.psb
Binary file not shown.
Binary file added testdata/psd_compat.psd
Diff not rendered.
Binary file added testdata/psd_nocompat.psd
Diff not rendered.

0 comments on commit 40a13f2

Please sign in to comment.