Skip to content

Commit d23ba31

Browse files
test(css): count the prefix windows discarded for each reason
Non-empty let a window discarded for an unaccounted reason pass; the totals turn it into a failure.
1 parent 43bcfbd commit d23ba31

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎test/CssPrefixWindows.unittest.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ describe("CSS prefix windows", () => {
176176
]);
177177
});
178178

179+
// Counted rather than merely non-empty: a window discarded for a reason
180+
// neither bucket accounts for has to land in one of these totals, and only an
181+
// exact figure turns that into a failure. They move when the compat data does,
182+
// and the diff is then the list of windows to re-read.
179183
it("discards the rest for a reason that is not an engine change", () => {
180-
expect(discarded.sameVersion).toBeGreaterThan(0);
181-
expect(discarded.foreignAlias).toBeGreaterThan(0);
184+
expect(discarded.sameVersion).toBe(127);
185+
expect(discarded.foreignAlias).toBe(113);
182186
});
183187
});

0 commit comments

Comments
 (0)