function expectGroupRanges(spec, cssCode, selector, ranges, mode) {
                var result = CSSUtils._findAllMatchingSelectorsInText(cssCode, selector, mode);
                spec.expect(result.length).toEqual(ranges.length);
                ranges.forEach(function (range, i) {
                    spec.expect(result[i].selectorGroupStartLine).toEqual(range.start);
                    spec.expect(result[i].declListEndLine).toEqual(range.end);
                });
            }
Similar to the above function, but instead checks the lines ranges for the entire selector *group*
of the results returned by CSSUtils. For example, if a rule looks like ".foo,[newline].bar"
and the caller asks for selector ".bar", this function checks against the entire range
starting with the line ".foo. is on.

Expects the numbers of results to equal the length of 'ranges'; each entry in range gives
the {start, end} of the expected line range for that Nth result.