-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
185 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
DEFLNG A-Z | ||
OPTION _EXPLICIT | ||
$CONSOLE:ONLY | ||
CHDIR _STARTDIR$ | ||
|
||
CONST ICON_DIR = "./icons/" | ||
CONST TEST_FILE_FORMAT = "bmp" | ||
CONST TOLERANCE_LIMIT = 0 | ||
|
||
RESTORE file_list | ||
|
||
DIM fileName AS STRING: READ fileName | ||
|
||
DO | ||
DoImageFile ICON_DIR + fileName | ||
READ fileName | ||
LOOP WHILE LEN(fileName) | ||
|
||
SYSTEM | ||
|
||
file_list: | ||
DATA 1bpp.ico | ||
DATA 24bpp.ico | ||
DATA 4bpp.cur | ||
DATA 4bpp.ico | ||
DATA 8bpp.ico | ||
DATA 8bpp.cur | ||
DATA bard.ico | ||
DATA broom.ico | ||
DATA cat.ico | ||
DATA computer.ico | ||
DATA dumb1.ico | ||
DATA dumb2.ico | ||
DATA pencil.ico | ||
DATA please_wait.ico | ||
DATA question.ico | ||
DATA really_huge_duck.ico | ||
DATA sample3.ico | ||
DATA sample4.ico | ||
DATA soft_drink.ico | ||
DATA taco.ico | ||
DATA terra_globe.ico | ||
DATA thumbs_up.ico | ||
DATA volme_dialog.ico | ||
DATA word-icon.ico | ||
DATA x.ico | ||
DATA "" | ||
|
||
SUB PrintImageDetails (handle AS LONG, testFileName AS STRING) | ||
DIM fullTestFileName AS STRING: fullTestFileName = testFileName + "." + TEST_FILE_FORMAT | ||
|
||
PRINT "Testing against "; fullTestFileName; " ("; _WIDTH(handle); "x"; _HEIGHT(handle); ")." | ||
'_SAVEIMAGE fullTestFileName, handle | ||
AssertImage2 handle, fullTestFileName, TOLERANCE_LIMIT | ||
|
||
END SUB | ||
|
||
|
||
SUB DoImageFile (testFileName AS STRING) | ||
DIM fileName AS STRING: fileName = testFileName | ||
|
||
PRINT "Loading image from storage "; fileName; " ... "; | ||
|
||
DIM h AS LONG: h = _LOADIMAGE(fileName, 32) | ||
|
||
IF h < -1 THEN | ||
PRINT "done." | ||
|
||
PrintImageDetails h, testFileName | ||
|
||
_FREEIMAGE h | ||
ELSE | ||
PRINT "failed!" | ||
END IF | ||
END SUB | ||
|
||
'$INCLUDE:'../utilities/imageassert.bm' | ||
'$INCLUDE:'../utilities/base64.bm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
Loading image from storage ./icons/1bpp.ico ... done. | ||
Testing against ./icons/1bpp.ico.bmp ( 128 x 128 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/24bpp.ico ... done. | ||
Testing against ./icons/24bpp.ico.bmp ( 128 x 128 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/4bpp.cur ... done. | ||
Testing against ./icons/4bpp.cur.bmp ( 16 x 16 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/4bpp.ico ... done. | ||
Testing against ./icons/4bpp.ico.bmp ( 128 x 128 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/8bpp.ico ... done. | ||
Testing against ./icons/8bpp.ico.bmp ( 128 x 128 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/8bpp.cur ... done. | ||
Testing against ./icons/8bpp.cur.bmp ( 32 x 32 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/bard.ico ... done. | ||
Testing against ./icons/bard.ico.bmp ( 1360 x 1083 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/broom.ico ... done. | ||
Testing against ./icons/broom.ico.bmp ( 600 x 600 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/cat.ico ... done. | ||
Testing against ./icons/cat.ico.bmp ( 150 x 150 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/computer.ico ... done. | ||
Testing against ./icons/computer.ico.bmp ( 474 x 474 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/dumb1.ico ... done. | ||
Testing against ./icons/dumb1.ico.bmp ( 540 x 500 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/dumb2.ico ... done. | ||
Testing against ./icons/dumb2.ico.bmp ( 540 x 500 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/pencil.ico ... done. | ||
Testing against ./icons/pencil.ico.bmp ( 256 x 256 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/please_wait.ico ... done. | ||
Testing against ./icons/please_wait.ico.bmp ( 404 x 325 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/question.ico ... done. | ||
Testing against ./icons/question.ico.bmp ( 512 x 512 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/really_huge_duck.ico ... done. | ||
Testing against ./icons/really_huge_duck.ico.bmp ( 4293 x 4293 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/sample3.ico ... done. | ||
Testing against ./icons/sample3.ico.bmp ( 256 x 171 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/sample4.ico ... done. | ||
Testing against ./icons/sample4.ico.bmp ( 256 x 192 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/soft_drink.ico ... done. | ||
Testing against ./icons/soft_drink.ico.bmp ( 256 x 256 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/taco.ico ... done. | ||
Testing against ./icons/taco.ico.bmp ( 966 x 764 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/terra_globe.ico ... done. | ||
Testing against ./icons/terra_globe.ico.bmp ( 772 x 769 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/thumbs_up.ico ... done. | ||
Testing against ./icons/thumbs_up.ico.bmp ( 463 x 294 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/volme_dialog.ico ... done. | ||
Testing against ./icons/volme_dialog.ico.bmp ( 32 x 32 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/word-icon.ico ... done. | ||
Testing against ./icons/word-icon.ico.bmp ( 512 x 512 ). | ||
Success, images are identical! | ||
|
||
Loading image from storage ./icons/x.ico ... done. | ||
Testing against ./icons/x.ico.bmp ( 256 x 256 ). | ||
Success, images are identical! | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters