Skip to content

Commit b7f2299

Browse files
committed
adapt jasmine test to include ticks fall inside breaks
1 parent e718e3e commit b7f2299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jasmine/tests/axes_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4963,7 +4963,7 @@ describe('Test axes', function() {
49634963
.withContext(msg).toEqual(exp.tickVals);
49644964
}
49654965

4966-
it('should not include ticks that fall within rangebreaks', function(done) {
4966+
it('should include requested ticks that fall within rangebreaks', function(done) {
49674967
Plotly.plot(gd, [{
49684968
x: [
49694969
'1970-01-01 00:00:00.000',
@@ -4977,7 +4977,7 @@ describe('Test axes', function() {
49774977
]
49784978
}], {
49794979
xaxis: {},
4980-
width: 500,
4980+
width: 800,
49814981
height: 400
49824982
})
49834983
.then(function() {
@@ -5002,7 +5002,7 @@ describe('Test axes', function() {
50025002
})
50035003
.then(function() {
50045004
_assert('with two rangebreaks', {
5005-
tickVals: [0, 10, 100, 200]
5005+
tickVals: [0, 5, 10, 90, 95, 100, 190, 195, 200]
50065006
});
50075007
})
50085008
.catch(failTest)

0 commit comments

Comments
 (0)