Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80933c4

Browse files
committed
adjust jasmine tests
1 parent 26d4998 commit 80933c4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/jasmine/tests/axes_test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6500,7 +6500,7 @@ describe('Test axes', function() {
65006500
.then(done, done.fail);
65016501
});
65026502

6503-
it('linear auto with defined minor nticks: 5', function(done) {
6503+
it('linear auto with defined minor nticks: 7', function(done) {
65046504
Plotly.newPlot(gd, {
65056505
data: [{
65066506
x: [10, 100]
@@ -6509,14 +6509,14 @@ describe('Test axes', function() {
65096509
width: 1000,
65106510
xaxis: {
65116511
minor: {
6512-
nticks: 5,
6512+
nticks: 7,
65136513
showgrid: true
65146514
}
65156515
}
65166516
}
65176517
})
65186518
.then(function() {
6519-
_assert([ 8, 12, 16, 24, 28, 32, 36, 44, 48, 52, 56, 64, 68, 72, 76, 84, 88, 92, 96, 104 ]);
6519+
_assert([ 5, 10, 15, 25, 30, 35, 45, 50, 55, 65, 70, 75, 85, 90, 95, 105 ]);
65206520
})
65216521
.then(done, done.fail);
65226522
});
@@ -6609,7 +6609,7 @@ describe('Test axes', function() {
66096609
it('log auto - case 1', function(done) {
66106610
Plotly.newPlot(gd, {
66116611
data: [{
6612-
x: [1, 10e8]
6612+
x: [1, 10e20]
66136613
}],
66146614
layout: {
66156615
width: 1000,
@@ -6622,7 +6622,7 @@ describe('Test axes', function() {
66226622
}
66236623
})
66246624
.then(function() {
6625-
_assert([ 1, 3, 5, 7, 9 ]);
6625+
_assert([ -1, 1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22 ]);
66266626
})
66276627
.then(done, done.fail);
66286628
});
@@ -6685,7 +6685,7 @@ describe('Test axes', function() {
66856685
}
66866686
})
66876687
.then(function() {
6688-
_assert([ 0.021189299069938092, 0.06069784035361173, 0.09691001300805648, 0.13033376849500622, 0.161368002234975, 0.1903316981702915, 0.2174839442139062, 0.24303804868629436, 0.26717172840301373, 0.2900346113625179, 0.31175386105575414 ]);
6688+
_assert([ -0.017728766960431602, -0.00877392430750515, 0.008600171761917567, 0.017033339298780367, 0.025305865264770258, 0.03342375548694973, 0.049218022670181646, 0.056904851336472634, 0.06445798922691853, 0.07188200730612543, 0.08635983067474828, 0.09342168516223513, 0.10037054511756296, 0.10720996964786844, 0.12057393120584996, 0.1271047983648077, 0.13353890837021762, 0.13987908640123659, 0.15228834438305658, 0.15836249209524975, 0.1643528557844372, 0.17026171539495752, 0.18184358794477265, 0.18752072083646318, 0.1931245983544617, 0.1986570869544227, 0.20951501454263102, 0.21484384804769796, 0.22010808804005513, 0.22530928172586287, 0.23552844690754896, 0.24054924828259974, 0.24551266781414988, 0.250420002308894, 0.2600713879850748, 0.2648178230095364, 0.26951294421791616, 0.2741578492636797, 0.28330122870354935, 0.2878017299302258, 0.29225607135647574, 0.29666519026153076, 0.30535136944662333, 0.3096301674258983, 0.31386722036915293, 0.31806333496276107 ]);
66896689
})
66906690
.then(done, done.fail);
66916691
});
@@ -6789,7 +6789,7 @@ describe('Test axes', function() {
67896789
}
67906790
})
67916791
.then(function() {
6792-
_assert([ 978307200000, 1041379200000, 1104537600000, 1167609600000, 1230768000000 ]);
6792+
_assert([ 930787200000, 962409600000, 978307200000, 993945600000, 1025481600000, 1041379200000, 1057017600000, 1088640000000, 1104537600000, 1120176000000, 1151712000000, 1167609600000, 1183248000000, 1214870400000, 1230768000000, 1246406400000, 1277942400000 ]);
67936793
})
67946794
.then(done, done.fail);
67956795
});
@@ -6829,7 +6829,7 @@ describe('Test axes', function() {
68296829
}
68306830
})
68316831
.then(function() {
6832-
_assert([ 941414400000, 944006400000, 949363200000, 951868800000, 954547200000, 957139200000, 959817600000, 965088000000, 967766400000, 970358400000, 973036800000, 975628800000, 980985600000, 983404800000, 986083200000, 988675200000, 991353600000, 996624000000, 999302400000, 1001894400000, 1004572800000, 1007164800000, 1012521600000, 1014940800000, 1017619200000, 1020211200000, 1022889600000, 1028160000000, 1030838400000, 1033430400000, 1036108800000, 1038700800000, 1044057600000, 1046476800000 ]);
6832+
_assert([ 941414400000, 951868800000, 957139200000, 967766400000, 973036800000, 983404800000, 988675200000, 999302400000, 1004572800000, 1014940800000, 1020211200000, 1030838400000, 1036108800000, 1046476800000 ]);
68336833
})
68346834
.then(done, done.fail);
68356835
});
@@ -6969,7 +6969,7 @@ describe('Test axes', function() {
69696969
}
69706970
})
69716971
.then(function() {
6972-
_assert([ 946684800000, 946857600000, 947030400000, 947203200000, 947376000000, 947548800000 ]);
6972+
_assert([ 946641600000, 946684800000, 946728000000, 946814400000, 946857600000, 946900800000, 946987200000, 947030400000, 947073600000, 947160000000, 947203200000, 947246400000, 947332800000, 947376000000, 947419200000, 947505600000, 947548800000, 947592000000 ]);
69736973
})
69746974
.then(done, done.fail);
69756975
});
@@ -7009,7 +7009,7 @@ describe('Test axes', function() {
70097009
}
70107010
})
70117011
.then(function() {
7012-
_assert([ 946677600000, 946681200000, 946688400000, 946692000000, 946695600000, 946699200000, 946702800000, 946710000000, 946713600000, 946717200000, 946720800000, 946724400000, 946731600000, 946735200000, 946738800000, 946742400000, 946746000000, 946753200000, 946756800000, 946760400000, 946764000000, 946767600000, 946774800000, 946778400000, 946782000000, 946785600000, 946789200000, 946796400000, 946800000000, 946803600000, 946807200000, 946810800000, 946818000000, 946821600000, 946825200000, 946828800000, 946832400000, 946839600000, 946843200000, 946846800000, 946850400000, 946854000000, 946861200000, 946864800000 ]);
7012+
_assert([ 946677600000, 946692000000, 946699200000, 946713600000, 946720800000, 946735200000, 946742400000, 946756800000, 946764000000, 946778400000, 946785600000, 946800000000, 946807200000, 946821600000, 946828800000, 946843200000, 946850400000, 946864800000 ]);
70137013
})
70147014
.then(done, done.fail);
70157015
});
@@ -7029,7 +7029,7 @@ describe('Test axes', function() {
70297029
}
70307030
})
70317031
.then(function() {
7032-
_assert([ 946677600000, 946681200000, 946688400000, 946692000000, 946695600000, 946699200000, 946702800000, 946710000000, 946713600000, 946717200000, 946720800000, 946724400000, 946731600000, 946735200000, 946738800000, 946742400000, 946746000000, 946753200000, 946756800000, 946760400000, 946764000000, 946767600000, 946774800000, 946778400000, 946782000000, 946785600000, 946789200000, 946796400000, 946800000000, 946803600000, 946807200000, 946810800000, 946818000000, 946821600000 ]);
7032+
_assert([ 946677600000, 946692000000, 946699200000, 946713600000, 946720800000, 946735200000, 946742400000, 946756800000, 946764000000, 946778400000, 946785600000, 946800000000, 946807200000, 946821600000 ]);
70337033
})
70347034
.then(done, done.fail);
70357035
});
@@ -7049,7 +7049,7 @@ describe('Test axes', function() {
70497049
}
70507050
})
70517051
.then(function() {
7052-
_assert([ 946681200000, 946683000000, 946686600000, 946688400000, 946690200000, 946692000000, 946693800000, 946697400000, 946699200000, 946701000000, 946702800000, 946704600000, 946708200000, 946710000000, 946711800000, 946713600000, 946715400000, 946719000000, 946720800000, 946722600000, 946724400000, 946726200000, 946729800000, 946731600000, 946733400000, 946735200000, 946737000000, 946740600000, 946742400000, 946744200000, 946746000000, 946747800000, 946751400000, 946753200000, 946755000000, 946756800000, 946758600000, 946762200000, 946764000000, 946765800000, 946767600000, 946769400000, 946773000000, 946774800000 ]);
7052+
_assert([ 946681200000, 946688400000, 946692000000, 946699200000, 946702800000, 946710000000, 946713600000, 946720800000, 946724400000, 946731600000, 946735200000, 946742400000, 946746000000, 946753200000, 946756800000, 946764000000, 946767600000, 946774800000 ]);
70537053
})
70547054
.then(done, done.fail);
70557055
});

0 commit comments

Comments
 (0)