mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-18 01:00:45 +00:00
702677220d
The following rules are failing and were disabled: * modules/ve-mw/tests: * implicit-arrow-linebreak Change-Id: If857233c0de24c8cf619dbb1347ebb375f3ab1ba
26 lines
815 B
JavaScript
26 lines
815 B
JavaScript
'use strict';
|
|
|
|
const createScreenshotEnvironment = require( './screenshots.js' ).createScreenshotEnvironment,
|
|
test = require( 'selenium-webdriver/testing' ),
|
|
diffs = require( './screenshots-client/diffs.js' ),
|
|
runScreenshotTest = createScreenshotEnvironment( test );
|
|
|
|
function runTests( lang ) {
|
|
|
|
const runLang = runScreenshotTest.bind( this, lang );
|
|
|
|
test.describe( 'Screenshots: ' + lang, function () {
|
|
this.lang = lang;
|
|
test.it( 'Simple diff', () => {
|
|
runLang( 'VisualEditor_diff_simple', diffs.simple );
|
|
runLang( 'VisualEditor_diff_move_and_change', diffs.moveAndChange );
|
|
runLang( 'VisualEditor_diff_link_change', diffs.linkChange );
|
|
runLang( 'VisualEditor_diff_list_change', diffs.listChange );
|
|
} );
|
|
} );
|
|
}
|
|
|
|
for ( let i = 0, l = langs.length; i < l; i++ ) {
|
|
runTests( langs[ i ] );
|
|
}
|