|
0 |
Index: image/src/codecs/bmp/decoder.rs
|
|
1 |
===================================================================
|
0 | 2 |
--- image.orig/src/codecs/bmp/decoder.rs
|
1 | 3 |
+++ image/src/codecs/bmp/decoder.rs
|
2 | |
@@ -1574,3 +1574,3 @@
|
|
4 |
@@ -1572,13 +1572,13 @@ mod test {
|
|
5 |
}
|
|
6 |
|
3 | 7 |
#[test]
|
4 | 8 |
- fn read_rect() {
|
5 | 9 |
+ /*fn read_rect() {
|
6 | 10 |
let f = std::fs::File::open("tests/images/bmp/images/Core_8_Bit.bmp").unwrap();
|
7 | |
@@ -1580,3 +1580,3 @@
|
|
11 |
let mut decoder = super::BmpDecoder::new(f).unwrap();
|
|
12 |
|
|
13 |
let mut buf: Vec<u8> = vec![0; 8 * 8 * 3];
|
8 | 14 |
decoder.read_rect(0, 0, 8, 8, &mut *buf).unwrap();
|
9 | 15 |
- }
|
10 | 16 |
+ }*/
|
11 | 17 |
|
|
18 |
#[test]
|
|
19 |
fn read_rle_too_short() {
|
|
20 |
Index: image/src/codecs/png.rs
|
|
21 |
===================================================================
|
12 | 22 |
--- image.orig/src/codecs/png.rs
|
13 | 23 |
+++ image/src/codecs/png.rs
|
14 | |
@@ -713,3 +713,3 @@
|
|
24 |
@@ -711,7 +711,7 @@ mod tests {
|
|
25 |
|
|
26 |
use std::io::{Cursor, Read};
|
15 | 27 |
|
16 | 28 |
- #[test]
|
17 | 29 |
+ /*#[test]
|
18 | 30 |
fn ensure_no_decoder_off_by_one() {
|
19 | |
@@ -737,5 +737,5 @@
|
|
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 |
|
20 | 36 |
assert_eq![6_000_000, correct_bytes.len()];
|
21 | 37 |
- }
|
22 | 38 |
+ }*/
|
|
24 | 40 |
- #[test]
|
25 | 41 |
+ /*#[test]
|
26 | 42 |
fn underlying_error() {
|
27 | |
@@ -755,2 +755,3 @@
|
|
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");
|
28 | 48 |
}
|
29 | 49 |
+ */
|
30 | 50 |
|
|
51 |
#[test]
|
|
52 |
fn encode_bad_color_type() {
|
|
53 |
Index: image/src/dynimage.rs
|
|
54 |
===================================================================
|
31 | 55 |
--- image.orig/src/dynimage.rs
|
32 | 56 |
+++ image/src/dynimage.rs
|
33 | |
@@ -1244,3 +1244,3 @@
|
|
57 |
@@ -1242,7 +1242,7 @@ mod test {
|
|
58 |
assert!(super::load_from_memory(b"").is_err());
|
|
59 |
}
|
34 | 60 |
|
35 | 61 |
- #[cfg(feature = "jpeg")]
|
36 | 62 |
+ /*#[cfg(feature = "jpeg")]
|
37 | 63 |
#[test]
|
38 | |
@@ -1259,2 +1259,3 @@
|
|
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);
|
39 | 69 |
}
|
40 | 70 |
+ */
|
41 | 71 |
|
|
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 |
===================================================================
|
42 | 76 |
--- image.orig/src/imageops/sample.rs
|
43 | 77 |
+++ image/src/imageops/sample.rs
|
44 | |
@@ -866,3 +866,3 @@
|
|
78 |
@@ -864,7 +864,7 @@ mod tests {
|
|
79 |
#[cfg(feature = "benchmarks")]
|
|
80 |
use test;
|
45 | 81 |
|
46 | 82 |
- #[bench]
|
47 | 83 |
+ /*#[bench]
|
48 | 84 |
#[cfg(all(feature = "benchmarks", feature = "png"))]
|
49 | |
@@ -875,3 +875,3 @@
|
|
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 |
});
|
50 | 90 |
b.bytes = 800 * 800 * 3 + 200 * 200 * 3;
|
51 | 91 |
- }
|
52 | 92 |
+ }*/
|
53 | 93 |
|
54 | |
@@ -883,3 +883,3 @@
|
|
94 |
#[test]
|
|
95 |
fn test_issue_186() {
|
|
96 |
@@ -881,7 +881,7 @@ mod tests {
|
|
97 |
let _ = resize(&img, 50, 50, FilterType::Lanczos3);
|
|
98 |
}
|
55 | 99 |
|
56 | 100 |
- #[bench]
|
57 | 101 |
+ /*#[bench]
|
58 | 102 |
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
|
59 | |
@@ -923,5 +923,5 @@
|
|
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 |
});
|
60 | 108 |
b.bytes = 193 * 193 * 4 + 256 * 256 * 4;
|
61 | 109 |
- }
|
62 | 110 |
+ }*/
|
|
64 | 112 |
- #[test]
|
65 | 113 |
+ /*#[test]
|
66 | 114 |
#[cfg(feature = "png")]
|
67 | |
@@ -957,2 +957,3 @@
|
|
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 |
}
|
68 | 120 |
}
|
69 | 121 |
+ */
|
70 | 122 |
|
|
123 |
#[test]
|
|
124 |
fn bug_1600() {
|