[gdk-pixbuf] tests: add jp2 test case to pixbuf-threads



commit 6450951d20d05351cb58029007c35bb92014ef26
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Jan 11 16:42:03 2016 +0100

    tests: add jp2 test case to pixbuf-threads
    
    In case jp2 is supported, add a test to pixbuf-threads for it,
    since seems is the place where most of the format tests are performed.
    
    The image used as a test is the one provided by upstream libjasper.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760474

 tests/pixbuf-threads.c                          |    2 ++
 tests/test-images/randomly-modified/valid.1.jp2 |  Bin 0 -> 1987968 bytes
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/pixbuf-threads.c b/tests/pixbuf-threads.c
index 8ea15a1..0690acd 100644
--- a/tests/pixbuf-threads.c
+++ b/tests/pixbuf-threads.c
@@ -88,6 +88,8 @@ test_threads (void)
         g_thread_pool_push (pool, "valid.1.tga", NULL);
       if (format_supported ("tiff"))
         g_thread_pool_push (pool, "valid.1.tiff", NULL);
+      if (format_supported ("jp2"))
+        g_thread_pool_push (pool, "valid.1.jp2", NULL);
     }
 
   g_thread_pool_free (pool, FALSE, TRUE);
diff --git a/tests/test-images/randomly-modified/valid.1.jp2 b/tests/test-images/randomly-modified/valid.1.jp2
new file mode 100644
index 0000000..5fc8bdb
Binary files /dev/null and b/tests/test-images/randomly-modified/valid.1.jp2 differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]