Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 6535838

Browse files
committed
different ink for label and undo-redo tests
1 parent 1bb70db commit 6535838

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
const inkPlayer = require('../../lib/inkPlayer');
22
const config = require('../../../lib/configuration').getConfiguration('MATH', 'WEBSOCKET', 'V4');
33

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) {
95
// module.exports[config.header + ' checkConvert ' + ink.name] = function checkConvert(browser) {
106
// inkPlayer.checkConvert(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]');
117
// };
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+
}
1212

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+
// };
1317
module.exports[config.header + ' checkUndoRedoReconnect ' + ink.name] = function checkUndoRedoReconnect(browser) {
1418
inkPlayer.checkUndoRedoReconnect(browser, config, ink.strokes, ink.exports.LATEX, '#editor', '[data-key="application/x-latex"]');
1519
};
1620
}
1721

1822
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

Comments
 (0)