|
1 | 1 | const inkPlayer = require('../../lib/inkPlayer'); |
2 | 2 | const config = require('../../../lib/configuration').getConfiguration('MATH', 'WEBSOCKET', 'V4'); |
3 | 3 |
|
4 | | -function runInkTests(ink) { |
5 | | - // module.exports[config.header + ' checkUndoRedo ' + ink.name] = function checkUndoRedo(browser) { |
6 | | - // inkPlayer.checkUndoRedo(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]'); |
7 | | - // }; |
8 | | - |
| 4 | +function runLabelTests(ink) { |
9 | 5 | // module.exports[config.header + ' checkConvert ' + ink.name] = function checkConvert(browser) { |
10 | 6 | // inkPlayer.checkConvert(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]'); |
11 | 7 | // }; |
| 8 | + module.exports[config.header + ' checkLabels ' + ink.name] = function checkLabels(browser) { |
| 9 | + inkPlayer.checkLabels(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]'); |
| 10 | + }; |
| 11 | +} |
12 | 12 |
|
| 13 | +function runUndoTests(ink) { |
| 14 | + // module.exports[config.header + ' checkUndoRedo ' + ink.name] = function checkUndoRedo(browser) { |
| 15 | + // inkPlayer.checkUndoRedo(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex]'); |
| 16 | + // }; |
13 | 17 | module.exports[config.header + ' checkUndoRedoReconnect ' + ink.name] = function checkUndoRedoReconnect(browser) { |
14 | 18 | inkPlayer.checkUndoRedoReconnect(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]'); |
15 | 19 | }; |
16 | 20 | } |
17 | 21 |
|
18 | 22 | config.inks |
19 | | - .filter(ink => ['equation'].includes(ink.name)) |
20 | | - .forEach(ink => runInkTests(ink)); |
| 23 | + .filter(ink => ['equation2'].includes(ink.name)) |
| 24 | + .forEach(ink => runLabelTests(ink)); |
| 25 | + |
| 26 | +config.inks |
| 27 | + .filter(ink => ['equation3'].includes(ink.name)) |
| 28 | + .forEach(ink => runUndoTests(ink)); |
| 29 | + |
0 commit comments