Assert complete typed activations in authoring and offset regressions
This commit is contained in:
@@ -3234,12 +3234,24 @@ mod tests {
|
||||
.iter()
|
||||
.any(|l| l.id == steps[1] && l.dashed && l.label.contains("reply"))
|
||||
);
|
||||
assert!(
|
||||
scene
|
||||
.boxes
|
||||
.iter()
|
||||
.any(|b| b.id == steps[0] && b.rect.width == 8.)
|
||||
assert_eq!(
|
||||
scene.activations,
|
||||
vec![super::super::scenario_activation::Segment {
|
||||
call: steps[0],
|
||||
receiver,
|
||||
scope: owner,
|
||||
rect: Rectangle::new(
|
||||
Point::new(scene.lanes[&receiver] - 6., 148.),
|
||||
Size::new(12., 92.),
|
||||
),
|
||||
column: 0,
|
||||
finish: super::super::scenario_activation::Finish::Reply(steps[1]),
|
||||
}]
|
||||
);
|
||||
let call_line = scene.lines.iter().find(|line| line.id == steps[0]).unwrap();
|
||||
let reply_line = scene.lines.iter().find(|line| line.id == steps[1]).unwrap();
|
||||
assert_eq!(call_line.points.last().unwrap().y, 148.);
|
||||
assert_eq!(reply_line.points.first().unwrap().y, 240.);
|
||||
let mut reply = State::default();
|
||||
reply
|
||||
.update(result, Event::Start(owner, Tool::Message))
|
||||
|
||||
Reference in New Issue
Block a user