0 | |
Index: image/src/codecs/bmp/decoder.rs
|
1 | |
===================================================================
|
2 | 0 |
--- image.orig/src/codecs/bmp/decoder.rs
|
3 | 1 |
+++ image/src/codecs/bmp/decoder.rs
|
4 | |
@@ -1572,13 +1572,13 @@ mod test {
|
5 | |
}
|
6 | |
|
|
2 |
@@ -1574,3 +1574,3 @@
|
7 | 3 |
#[test]
|
8 | 4 |
- fn read_rect() {
|
9 | 5 |
+ /*fn read_rect() {
|
10 | 6 |
let f = std::fs::File::open("tests/images/bmp/images/Core_8_Bit.bmp").unwrap();
|
11 | |
let mut decoder = super::BmpDecoder::new(f).unwrap();
|
12 | |
|
13 | |
let mut buf: Vec<u8> = vec![0; 8 * 8 * 3];
|
|
7 |
@@ -1580,3 +1580,3 @@
|
14 | 8 |
decoder.read_rect(0, 0, 8, 8, &mut *buf).unwrap();
|
15 | 9 |
- }
|
16 | 10 |
+ }*/
|
17 | 11 |
|
18 | |
#[test]
|
19 | |
fn read_rle_too_short() {
|
20 | |
Index: image/src/codecs/png.rs
|
21 | |
===================================================================
|
22 | 12 |
--- image.orig/src/codecs/png.rs
|
23 | 13 |
+++ image/src/codecs/png.rs
|
24 | |
@@ -711,7 +711,7 @@ mod tests {
|
25 | |
|
26 | |
use std::io::{Cursor, Read};
|
|
14 |
@@ -713,3 +713,3 @@
|
27 | 15 |
|
28 | 16 |
- #[test]
|
29 | 17 |
+ /*#[test]
|
30 | 18 |
fn ensure_no_decoder_off_by_one() {
|
31 | |
let dec = PngDecoder::new(
|
32 | |
std::fs::File::open("tests/images/png/bugfixes/debug_triangle_corners_widescreen.png")
|
33 | |
@@ -735,9 +735,9 @@ mod tests {
|
34 | |
.collect::<Vec<u8>>();
|
35 | |
|
|
19 |
@@ -737,5 +737,5 @@
|
36 | 20 |
assert_eq![6_000_000, correct_bytes.len()];
|
37 | 21 |
- }
|
38 | 22 |
+ }*/
|
|
40 | 24 |
- #[test]
|
41 | 25 |
+ /*#[test]
|
42 | 26 |
fn underlying_error() {
|
43 | |
use std::error::Error;
|
44 | |
|
45 | |
@@ -753,6 +753,7 @@ mod tests {
|
46 | |
.downcast_ref::<png::DecodingError>()
|
47 | |
.expect("Caused by a png error");
|
|
27 |
@@ -755,2 +755,3 @@
|
48 | 28 |
}
|
49 | 29 |
+ */
|
50 | 30 |
|
51 | |
#[test]
|
52 | |
fn encode_bad_color_type() {
|
53 | |
Index: image/src/dynimage.rs
|
54 | |
===================================================================
|
55 | 31 |
--- image.orig/src/dynimage.rs
|
56 | 32 |
+++ image/src/dynimage.rs
|
57 | |
@@ -1242,7 +1242,7 @@ mod test {
|
58 | |
assert!(super::load_from_memory(b"").is_err());
|
59 | |
}
|
|
33 |
@@ -1244,3 +1244,3 @@
|
60 | 34 |
|
61 | 35 |
- #[cfg(feature = "jpeg")]
|
62 | 36 |
+ /*#[cfg(feature = "jpeg")]
|
63 | 37 |
#[test]
|
64 | |
fn image_dimensions() {
|
65 | |
let im_path = "./tests/images/jpg/progressive/cat.jpg";
|
66 | |
@@ -1257,6 +1257,7 @@ mod test {
|
67 | |
let image = super::open(im_path).unwrap();
|
68 | |
assert_eq!(image.color(), super::color::ColorType::Rgba16);
|
|
38 |
@@ -1259,2 +1259,3 @@
|
69 | 39 |
}
|
70 | 40 |
+ */
|
71 | 41 |
|
72 | |
fn test_grayscale(mut img: super::DynamicImage, alpha_discarded: bool) {
|
73 | |
use crate::image::{GenericImage, GenericImageView};
|
74 | |
Index: image/src/imageops/sample.rs
|
75 | |
===================================================================
|
76 | 42 |
--- image.orig/src/imageops/sample.rs
|
77 | 43 |
+++ image/src/imageops/sample.rs
|
78 | |
@@ -864,7 +864,7 @@ mod tests {
|
79 | |
#[cfg(feature = "benchmarks")]
|
80 | |
use test;
|
|
44 |
@@ -866,3 +866,3 @@
|
81 | 45 |
|
82 | 46 |
- #[bench]
|
83 | 47 |
+ /*#[bench]
|
84 | 48 |
#[cfg(all(feature = "benchmarks", feature = "png"))]
|
85 | |
fn bench_resize(b: &mut test::Bencher) {
|
86 | |
use std::path::Path;
|
87 | |
@@ -873,7 +873,7 @@ mod tests {
|
88 | |
test::black_box(resize(&img, 200, 200, FilterType::Nearest));
|
89 | |
});
|
|
49 |
@@ -875,3 +875,3 @@
|
90 | 50 |
b.bytes = 800 * 800 * 3 + 200 * 200 * 3;
|
91 | 51 |
- }
|
92 | 52 |
+ }*/
|
93 | 53 |
|
94 | |
#[test]
|
95 | |
fn test_issue_186() {
|
96 | |
@@ -881,7 +881,7 @@ mod tests {
|
97 | |
let _ = resize(&img, 50, 50, FilterType::Lanczos3);
|
98 | |
}
|
|
54 |
@@ -883,3 +883,3 @@
|
99 | 55 |
|
100 | 56 |
- #[bench]
|
101 | 57 |
+ /*#[bench]
|
102 | 58 |
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
|
103 | |
fn bench_thumbnail(b: &mut test::Bencher) {
|
104 | |
let path = concat!(
|
105 | |
@@ -921,9 +921,9 @@ mod tests {
|
106 | |
test::black_box(image.thumbnail(256, 256));
|
107 | |
});
|
|
59 |
@@ -923,5 +923,5 @@
|
108 | 60 |
b.bytes = 193 * 193 * 4 + 256 * 256 * 4;
|
109 | 61 |
- }
|
110 | 62 |
+ }*/
|
|
112 | 64 |
- #[test]
|
113 | 65 |
+ /*#[test]
|
114 | 66 |
#[cfg(feature = "png")]
|
115 | |
fn resize_transparent_image() {
|
116 | |
use super::FilterType::{CatmullRom, Gaussian, Lanczos3, Nearest, Triangle};
|
117 | |
@@ -955,6 +955,7 @@ mod tests {
|
118 | |
assert_resize(rgba8, *filter);
|
119 | |
}
|
|
67 |
@@ -957,2 +957,3 @@
|
120 | 68 |
}
|
121 | 69 |
+ */
|
122 | 70 |
|
123 | |
#[test]
|
124 | |
fn bug_1600() {
|