Skip to content

Commit 18f827d

Browse files
committed
mojtaba-proof test msgs
1 parent d5bacfe commit 18f827d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/jasmine/tests/axes_test.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -3249,7 +3249,7 @@ describe('Test axes', function() {
32493249

32503250
function assertSize(msg, actual, exp) {
32513251
for(var k in exp) {
3252-
var parts = exp[k].split(' -');
3252+
var parts = exp[k].split('|');
32533253
var op = parts[0];
32543254

32553255
var method = {
@@ -3261,7 +3261,7 @@ describe('Test axes', function() {
32613261
}[op];
32623262

32633263
var val = op === 'initial' ? initialSize[k] : previousSize[k];
3264-
var msgk = msg + ' ' + k + (parts[1] ? ' -' + parts[1] : '');
3264+
var msgk = msg + ' ' + k + (parts[1] ? ' |' + parts[1] : '');
32653265
var args = op === '~=' ? [val, 1.1, msgk] : [val, msgk, ''];
32663266

32673267
expect(actual[k])[method](args[0], args[1], args[2]);
@@ -3334,19 +3334,19 @@ describe('Test axes', function() {
33343334
}))
33353335
.then(check('bump y-axis tick length', {'yaxis.ticklen': 30}, {
33363336
t: '=', l: 'grew',
3337-
b: '=', r: 'grew - as x ticks got shifted right'
3337+
b: '=', r: 'grew| as x ticks got shifted right'
33383338
}))
33393339
.then(check('add y-axis title', {'yaxis.title.text': 'hello'}, {
33403340
t: '=', l: 'grew',
3341-
b: '=', r: 'grew - as x ticks got shifted right'
3341+
b: '=', r: 'grew| as x ticks got shifted right'
33423342
}))
33433343
.then(check('size up y-axis title', {'yaxis.title.font.size': 30}, {
33443344
t: '=', l: 'grew',
3345-
b: '=', r: 'grew - as x ticks got shifted right'
3345+
b: '=', r: 'grew| as x ticks got shifted right'
33463346
}))
33473347
.then(check('tilt y labels up 30 degrees', {'yaxis.tickangle': 30}, {
33483348
t: 'grew', l: 'shrunk',
3349-
b: '=', r: 'shrunk - as x ticks got shifted left'
3349+
b: '=', r: 'shrunk| as x ticks got shifted left'
33503350
}))
33513351
.then(check('un-tilt y labels', {'yaxis.tickangle': null}, {
33523352
t: 'shrunk', l: 'grew',
@@ -3357,8 +3357,8 @@ describe('Test axes', function() {
33573357
b: '=', r: '='
33583358
}))
33593359
.then(check('offset y-axis to the left', {'yaxis.position': 0.1}, {
3360-
t: '=', l: 'shrunk - as y-axis shifted right',
3361-
b: '=', r: 'shrunk - as y-axis shifted right'
3360+
t: '=', l: 'shrunk| as y-axis shifted right',
3361+
b: '=', r: 'shrunk| as y-axis shifted right'
33623362
}))
33633363
.then(check('re-anchor y-axis', {'yaxis.anchor': 'x'}, {
33643364
t: '=', l: 'grew',

0 commit comments

Comments
 (0)