Widen the deck row block to 1028 so the filter tie-line is exact, and accumulate the meter's block peaks instead of sampling one in 47
This commit is contained in:
@@ -306,7 +306,7 @@ static void testGutterAtTheSawtoothMaximumResidueWidth() {
|
||||
// nor the floor is covered by another test firing if either ever changes. Derived from
|
||||
// kEditorMinWidth/kEditorMinHeight (editor_session.cpp's ViewRect default IS the floor) rather
|
||||
// than a hardcoded window size, so a floor change fails HERE instead of silently moving the
|
||||
// shipped gutter out from under it. The numbers below are today's floor (1190x680); re-derive
|
||||
// shipped gutter out from under it. The numbers below are today's floor (1198x680); re-derive
|
||||
// them by hand if the floor ever moves.
|
||||
static void testGutterAtTheShippedDefaultWindowSize() {
|
||||
// Derive rootStrip's width the same way the shell does, through the real allocator +
|
||||
@@ -315,14 +315,14 @@ static void testGutterAtTheShippedDefaultWindowSize() {
|
||||
const ChromeRects chrome = chromeRects(bands.chrome, /*knobSize=*/24);
|
||||
const int stripW = chrome.rootStrip.width;
|
||||
CHECK(stripW == kEditorMinWidth - 2 * kPad);
|
||||
CHECK(stripW == 1174);
|
||||
CHECK(stripW == 1182);
|
||||
|
||||
const StripLayout L = layoutStrip(stripW, 30);
|
||||
CHECK(L.whiteWidth == 15);
|
||||
const int margins = L.band.width - L.keys.width;
|
||||
CHECK(margins == 49);
|
||||
CHECK(margins == 57);
|
||||
const int leftMargin = L.keys.x - L.band.x;
|
||||
CHECK(leftMargin == 24);
|
||||
CHECK(leftMargin == 28);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
||||
Reference in New Issue
Block a user