Rename "compat" into "disable-validation", to insist on it breaking some guarantees.
This commit is contained in:
parent
8b15728bb2
commit
c2b7e19378
18 changed files with 39 additions and 39 deletions
|
|
@ -63,7 +63,7 @@ mod tests {
|
|||
assert_eq!(message, "This is not a chatstate element.");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid_child() {
|
||||
let elem: Element = "<gone xmlns='http://jabber.org/protocol/chatstates'><coucou/></gone>"
|
||||
|
|
@ -77,7 +77,7 @@ mod tests {
|
|||
assert_eq!(message, "Unknown child in chatstate element.");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid_attribute() {
|
||||
let elem: Element = "<inactive xmlns='http://jabber.org/protocol/chatstates' coucou=''/>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue