add test for visitor mad from same context
This commit is contained in:
parent
1d9104bbae
commit
85b206a32c
@ -34,3 +34,24 @@ this should be skipped</div>
|
||||
}
|
||||
.to_string();
|
||||
}
|
||||
|
||||
fn visitor_made_from_same_context() {
|
||||
let pair = (
|
||||
|| {
|
||||
foo!(<div>
|
||||
this should be mangled</div>
|
||||
);
|
||||
skip_macro_mod!(<div>
|
||||
this should be skipped</div>
|
||||
);
|
||||
},
|
||||
|| {
|
||||
foo!(<div>
|
||||
this should be mangled</div>
|
||||
);
|
||||
skip_macro_mod!(<div>
|
||||
this should be skipped</div>
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -34,3 +34,24 @@ this should be skipped</div>
|
||||
}
|
||||
.to_string();
|
||||
}
|
||||
|
||||
fn visitor_made_from_same_context() {
|
||||
let pair = (
|
||||
|| {
|
||||
foo!(<div>
|
||||
this should be mangled</div>
|
||||
);
|
||||
skip_macro_mod!(<div>
|
||||
this should be skipped</div>
|
||||
);
|
||||
},
|
||||
|| {
|
||||
foo!(<div>
|
||||
this should be mangled</div>
|
||||
);
|
||||
skip_macro_mod!(<div>
|
||||
this should be skipped</div>
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user