We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f85823 commit 8abae3bCopy full SHA for 8abae3b
crates/tests/src/shadow.rs
@@ -27,6 +27,12 @@ fn test_invalid_color() {
27
// AppKit ends up calling the `CGColor` selector.
28
let err = catch(|| shadow.set()).unwrap_err().unwrap().to_string();
29
30
- assert!(err.contains("CGColor"));
31
- assert!(err.contains("unrecognized selector sent to instance"));
+ assert!(
+ err.contains("CGColor") || err.contains("colorUsingColorSpaceName:"),
32
+ "{err:?} did not have expected message"
33
+ );
34
35
+ err.contains("unrecognized selector sent to instance"),
36
37
38
}
0 commit comments