Skip to content

Commit

Permalink
Use specific negative assertion for DOM document
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 1f9ce9e commit 5475059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/document.rs
Expand Up @@ -1831,8 +1831,8 @@ impl Document {
return;
}
self.domcontentloaded_dispatched.set(true);
assert!(self.ReadyState() != DocumentReadyState::Complete,
"Complete before DOMContentLoaded?");
assert_ne!(self.ReadyState(), DocumentReadyState::Complete,
"Complete before DOMContentLoaded?");

update_with_current_time_ms(&self.dom_content_loaded_event_start);

Expand Down

0 comments on commit 5475059

Please sign in to comment.