Ξ-W2-T1: the resample bake chain — instrument renders, extension banks, one click re-points and resets
This commit is contained in:
@@ -59,12 +59,16 @@ static void testToolbarRunIsOrderedRightToLeftWithoutOverlap() {
|
||||
CHECK(r.chanMono.right() == r.chanStereo.x);
|
||||
CHECK(r.velCell.right() <= r.chanMono.x);
|
||||
CHECK(r.preview.right() <= r.velCell.x);
|
||||
CHECK(r.title.right() <= r.preview.x);
|
||||
CHECK(r.bake.right() <= r.preview.x);
|
||||
CHECK(r.bake.width == kBakeButtonWidth);
|
||||
CHECK(r.bake.y == r.preview.y); // shares the run's button baseline
|
||||
CHECK(r.bake.height == r.preview.height);
|
||||
CHECK(r.title.right() <= r.bake.x); // the title yields to the bake, not the preview
|
||||
CHECK(r.title.x == band.x + kPad);
|
||||
CHECK(r.title.width > 0);
|
||||
|
||||
// Every toolbar rect sits inside the toolbar row.
|
||||
const Rect items[] = {r.title, r.preview, r.velCell, r.chanMono,
|
||||
const Rect items[] = {r.title, r.bake, r.preview, r.velCell, r.chanMono,
|
||||
r.chanStereo, r.navBrowse};
|
||||
for (const Rect& it : items) {
|
||||
CHECK(it.y >= r.toolbar.y && it.bottom() <= r.toolbar.bottom());
|
||||
@@ -78,7 +82,7 @@ static void testChromePartsNeverOverlapAtAnyWidth() {
|
||||
// stay inside its own row, clear of every control.
|
||||
CHECK(!overlaps(r.toolbar, r.rootStrip));
|
||||
CHECK(r.rootStrip.y >= r.controls.y && r.rootStrip.bottom() <= r.controls.bottom());
|
||||
const Rect items[] = {r.preview, r.velCell, r.chanMono, r.chanStereo,
|
||||
const Rect items[] = {r.bake, r.preview, r.velCell, r.chanMono, r.chanStereo,
|
||||
r.navBrowse};
|
||||
for (const Rect& it : items) {
|
||||
CHECK(!overlaps(it, r.rootStrip));
|
||||
|
||||
Reference in New Issue
Block a user