Behaviour SwRS-MDOKFSTUDIO-REVIEW-220
A change bar shows the changed lines in a tooltip while the pointer is over it
When the pointer is over a change bar itself, the page SHALL show a tooltip in the page's tooltip style reading Changed lines 12–14 since last commit, or Changed line 12 since last commit for a single line, from the source lines of the marked block that meet the changed ranges, and SHALL show no tooltip while the pointer is over the block but not the bar, while the bars are hidden with the Diff button off, or in edit mode.
Another outcome at step 3 of path 1 in StRS-MDOKFSTUDIO-REVIEW-017, in the state “Changed blocks carry a green bar”.
Scenarios 3
The situations the tests check; open one to read it.
nominalThe pointer is over a bar
Givena block of lines 12 to 14 marked as changed, and a block of line 20 only
Whenthe pointer rests on the bar of the first block, then on the bar of the second
Thena bubble in the page's tooltip style reads Changed lines 12–14 since last commit, then Changed line 20 since last commit
boundaryOnly the changed lines of the block
| Input | Outcome |
|---|---|
| A block of lines 20 to 30 and ranges 22 to 23 and 27 to 40 | the bubble reads Changed lines 22–30 since last commit (the first and last changed lines inside the block) |
| A range that meets the block on one line | the singular form, Changed line N since last commit |
refusalNo bubble away from the bar, with the bars hidden or in edit mode
Giventhe pointer over the marked block but not over its bar, the Diff button pressed off, or edit mode on
Whenthe pointer moves
Thenno bubble is shown: only the bar itself takes the pointer, the layer is hidden with Diff off, and edit mode takes the pointer from the bars