Skip to content

Commit 863480e

Browse files
committed
debug surface plot for firefox
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 6cff411 commit 863480e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

plotly/src/plot.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,19 +1177,21 @@ mod tests {
11771177
.webdriver_port(get_unique_port())
11781178
.build()
11791179
.unwrap();
1180+
1181+
assert!(!plot
1182+
.to_base64_with_exporter(&mut exporter, ImageFormat::PNG, 1024, 680, 1.0)
1183+
.unwrap()
1184+
.is_empty());
1185+
11801186
plot.write_image_with_exporter(&mut exporter, &dst, ImageFormat::PNG, 800, 600, 1.0)
11811187
.unwrap();
11821188
assert!(dst.exists());
11831189

11841190
let metadata = std::fs::metadata(&dst).expect("Could not retrieve file metadata");
11851191
let file_size = metadata.len();
11861192
assert!(file_size > 0,);
1187-
assert!(std::fs::remove_file(&dst).is_ok());
1188-
assert!(!dst.exists());
1193+
// assert!(std::fs::remove_file(&dst).is_ok());
1194+
// assert!(!dst.exists());
11891195

1190-
assert!(!plot
1191-
.to_base64_with_exporter(&mut exporter, ImageFormat::PNG, 1024, 680, 1.0)
1192-
.unwrap()
1193-
.is_empty());
11941196
}
11951197
}

0 commit comments

Comments
 (0)