From cf40218d138efb68c9f36d90e364e933f1280aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Sun, 9 Mar 2014 13:09:17 +0100 Subject: [PATCH] extra.images: call register-image-class before testing, otherwise the wrong backend might be ran --- extra/images/bitmap/bitmap-tests.factor | 4 +++- extra/images/png/png-tests.factor | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/extra/images/bitmap/bitmap-tests.factor b/extra/images/bitmap/bitmap-tests.factor index 2ac2fed4d1..cae6655984 100644 --- a/extra/images/bitmap/bitmap-tests.factor +++ b/extra/images/bitmap/bitmap-tests.factor @@ -1,6 +1,8 @@ -USING: images.bitmap images.testing kernel ; +USING: images.bitmap images.loader images.testing kernel ; IN: images.bitmap.tests +"bmp" bmp-image register-image-class + ! "vocab:images/testing/bmp/1bit.bmp" decode-test ! "vocab:images/testing/bmp/rgb_4bit.bmp" decode-test diff --git a/extra/images/png/png-tests.factor b/extra/images/png/png-tests.factor index acccc84e37..781aad58e1 100644 --- a/extra/images/png/png-tests.factor +++ b/extra/images/png/png-tests.factor @@ -1,8 +1,10 @@ ! Copyright (C) 2009 Doug Coleman, Keith Lazuka ! See http://factorcode.org/license.txt for BSD license. -USING: images.testing io.directories ; +USING: images.loader images.png images.testing io.directories ; IN: images.png.tests +"png" png-image register-image-class + ! Test files from PngSuite (http://www.libpng.org/pub/png/pngsuite.html) ! The subset of the suite that should work given the current implementation.