Skip to content

Commit

Permalink
Added test for BrowserEvent deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Aug 15, 2024
1 parent c06a3b7 commit 8c3565c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/common/browser_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ impl TryFrom<Message> for BrowserEvent {
#[test]
fn deserialize_browser_events() {
let messages = vec![
(
Message::Text
("BrowserResized(1920, 960)".to_string()),
BrowserEvent::BrowserResized(1920, 960),
),
(
Message::Text("ReadyForText".to_string()),
BrowserEvent::ReadyForText,
),
(
Message::Text("Text(\"Testing\")".to_string()),
BrowserEvent::Text("Testing".to_string()),
Expand Down

0 comments on commit 8c3565c

Please sign in to comment.