mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
fix test to match swapped (correct) implementation
This commit is contained in:
@@ -743,11 +743,11 @@
|
||||
// range1 start is before range2 start
|
||||
testing.expectEqual(-1, range1.compareBoundaryPoints(Range.START_TO_START, range2));
|
||||
|
||||
// range1 start is before range2 end
|
||||
testing.expectEqual(-1, range1.compareBoundaryPoints(Range.START_TO_END, range2));
|
||||
|
||||
// range1 end is after range2 start
|
||||
testing.expectEqual(1, range1.compareBoundaryPoints(Range.END_TO_START, range2));
|
||||
testing.expectEqual(1, range1.compareBoundaryPoints(Range.START_TO_END, range2));
|
||||
|
||||
// range1 start is before range2 end
|
||||
testing.expectEqual(-1, range1.compareBoundaryPoints(Range.END_TO_START, range2));
|
||||
|
||||
// range1 end is before range2 end
|
||||
testing.expectEqual(-1, range1.compareBoundaryPoints(Range.END_TO_END, range2));
|
||||
@@ -767,11 +767,11 @@
|
||||
testing.expectEqual(0, range.compareBoundaryPoints(Range.START_TO_START, range));
|
||||
testing.expectEqual(0, range.compareBoundaryPoints(Range.END_TO_END, range));
|
||||
|
||||
// Start is before end
|
||||
testing.expectEqual(-1, range.compareBoundaryPoints(Range.START_TO_END, range));
|
||||
|
||||
// End is after start
|
||||
testing.expectEqual(1, range.compareBoundaryPoints(Range.END_TO_START, range));
|
||||
testing.expectEqual(1, range.compareBoundaryPoints(Range.START_TO_END, range));
|
||||
|
||||
// Start is before end
|
||||
testing.expectEqual(-1, range.compareBoundaryPoints(Range.END_TO_START, range));
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user