mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use specific assertion for DOM attr
This commit is contained in:
parent
968976aba7
commit
34babb6dcf
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ impl Attr {
|
||||||
ScriptThread::enqueue_callback_reaction(owner, reaction, None);
|
ScriptThread::enqueue_callback_reaction(owner, reaction, None);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert!(Some(owner) == self.owner().r());
|
assert_eq!(Some(owner), self.owner().r());
|
||||||
owner.will_mutate_attr(self);
|
owner.will_mutate_attr(self);
|
||||||
self.swap_value(&mut value);
|
self.swap_value(&mut value);
|
||||||
if self.identifier.namespace == ns!() {
|
if self.identifier.namespace == ns!() {
|
||||||
|
@ -230,7 +230,7 @@ impl Attr {
|
||||||
// Already gone from the list of attributes of old owner.
|
// Already gone from the list of attributes of old owner.
|
||||||
assert!(old.get_attribute(&ns, &self.identifier.local_name).r() != Some(self))
|
assert!(old.get_attribute(&ns, &self.identifier.local_name).r() != Some(self))
|
||||||
}
|
}
|
||||||
(Some(old), Some(new)) => assert!(&*old == new),
|
(Some(old), Some(new)) => assert_eq!(&*old, new),
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
self.owner.set(owner);
|
self.owner.set(owner);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue