Skip to content

Commit

Permalink
add test to lock issue 5267
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 12, 2020
1 parent 0f5e491 commit b95a0a5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
Binary file added test/image/baselines/missing-category-order.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions test/image/mocks/missing-category-order.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"data": [
{
"type": "histogram",
"x": [
"A",
"A",
"B"
]
},
{
"type": "histogram",
"x": [
"A",
"A",
"C"
]
},
{
"type": "histogram",
"x": [
"B",
"B"
]
}
],
"layout": {
"barmode": "stack",
"xaxis": {
"categoryorder": "total descending"
},
"width": 300,
"height": 200,
"margin": {
"t": 40,
"b": 20,
"l": 20,
"r": 20
}
}
}
2 changes: 2 additions & 0 deletions test/jasmine/tests/mock_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ var list = [
'matching-missing-axes',
'mathjax',
'mirror-all-vs-allticks',
'missing-category-order',
'multicategory',
'multicategory_histograms',
'multicategory-inside-ticks',
Expand Down Expand Up @@ -1809,6 +1810,7 @@ figs['matching-categories'] = require('@mocks/matching-categories');
// figs['matching-missing-axes'] = require('@mocks/matching-missing-axes');
// figs['mathjax'] = require('@mocks/mathjax');
figs['mirror-all-vs-allticks'] = require('@mocks/mirror-all-vs-allticks');
figs['missing-category-order'] = require('@mocks/missing-category-order');
figs['multicategory'] = require('@mocks/multicategory');
figs['multicategory_histograms'] = require('@mocks/multicategory_histograms');
figs['multicategory-inside-ticks'] = require('@mocks/multicategory-inside-ticks');
Expand Down

0 comments on commit b95a0a5

Please sign in to comment.