Skip to content

Commit 3463c9b

Browse files
committed
test: Added orientation test
1 parent c02861d commit 3463c9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_protocol_v7.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,3 +938,9 @@ fn test_thread_id_format() {
938938
assert_eq!(serde_json::from_str::<v7::ThreadId>("0").unwrap(), v7::ThreadId::Int(0));
939939
assert_eq!(serde_json::from_str::<v7::ThreadId>("\"0\"").unwrap(), v7::ThreadId::String("0".into()));
940940
}
941+
942+
#[test]
943+
fn test_orientation() {
944+
assert_eq!(serde_json::to_string(&v7::Orientation::Landscape).unwrap(), "\"landscape\"");
945+
assert_eq!(serde_json::to_string(&v7::Orientation::Portrait).unwrap(), "\"portrait\"");
946+
}

0 commit comments

Comments
 (0)