Skip to content

Commit

Permalink
add chinese simplified layers to properly test unicode support as wel…
Browse files Browse the repository at this point in the history
…l as removing ci runs on branch
  • Loading branch information
EmilDohne committed Jul 11, 2024
1 parent 5f59c8b commit 9551e5b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- dev
- 82-add-unicode-layer-name-support
pull_request:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- dev
- 82-add-unicode-layer-name-support
pull_request:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- dev
- 82-add-unicode-layer-name-support
pull_request:
branches:
- master
Expand Down
Binary file modified PhotoshopTest/documents/UnicodeNames/UnicodeLayerNames.psb
Binary file not shown.
Binary file modified PhotoshopTest/documents/UnicodeNames/UnicodeLayerNames.psd
Binary file not shown.
28 changes: 24 additions & 4 deletions PhotoshopTest/src/TestUnicodeLayerNames/TestUnicodeLayerNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ TEST_CASE("Read Unicode layer name from psd file")

LayeredFile<bpp8_t> layeredFile = LayeredFile<bpp8_t>::read(psd_path);

// Find the two layers by their names and check if the result is not null
// Find the three layers by their names and check if the result is not null
SUBCASE("Find chinese simplified layer")
{
auto ptr = layeredFile.findLayer("Chinese_Simplified/请问可以修改psd 的画板尺寸吗");
CHECK(ptr);
}
SUBCASE("Find overflow layer")
{
auto ptr = layeredFile.findLayer("äüöUnicodeNameOverflowPascalString--------------------------------------------------------------------------------------------------------------------");
Expand All @@ -44,7 +49,12 @@ TEST_CASE("Read Unicode layer name from psb file")

LayeredFile<bpp8_t> layeredFile = LayeredFile<bpp8_t>::read(psb_path);

// Find the two layers by their names and check if the result is not null
// Find the three layers by their names and check if the result is not null
SUBCASE("Find chinese simplified layer")
{
auto ptr = layeredFile.findLayer("Chinese_Simplified/请问可以修改psd 的画板尺寸吗");
CHECK(ptr);
}
SUBCASE("Find overflow layer")
{
auto ptr = layeredFile.findLayer("äüöUnicodeNameOverflowPascalString--------------------------------------------------------------------------------------------------------------------");
Expand Down Expand Up @@ -74,7 +84,12 @@ TEST_CASE("Read write unicode layer name from psd file")
LayeredFile<bpp8_t> layeredFile = LayeredFile<bpp8_t>::read(psd_path);


// Find the two layers by their names and check if the result is not null
// Find the three layers by their names and check if the result is not null
SUBCASE("Find chinese simplified layer")
{
auto ptr = layeredFile.findLayer("Chinese_Simplified/请问可以修改psd 的画板尺寸吗");
CHECK(ptr);
}
SUBCASE("Find overflow layer")
{
auto ptr = layeredFile.findLayer("äüöUnicodeNameOverflowPascalString--------------------------------------------------------------------------------------------------------------------");
Expand Down Expand Up @@ -104,7 +119,12 @@ TEST_CASE("Read write unicode layer name from psb file")
LayeredFile<bpp8_t> layeredFile = LayeredFile<bpp8_t>::read(psb_path);


// Find the two layers by their names and check if the result is not null
// Find the three layers by their names and check if the result is not null
SUBCASE("Find chinese simplified layer")
{
auto ptr = layeredFile.findLayer("Chinese_Simplified/请问可以修改psd 的画板尺寸吗");
CHECK(ptr);
}
SUBCASE("Find overflow layer")
{
auto ptr = layeredFile.findLayer("äüöUnicodeNameOverflowPascalString--------------------------------------------------------------------------------------------------------------------");
Expand Down

0 comments on commit 9551e5b

Please sign in to comment.