mediawiki-extensions-Visual.../build/screenshots.diffs.js
libraryupgrader 702677220d build: Updating eslint-config-wikimedia to 0.28.0
The following rules are failing and were disabled:
* modules/ve-mw/tests:
  * implicit-arrow-linebreak

Change-Id: If857233c0de24c8cf619dbb1347ebb375f3ab1ba
2024-06-04 03:40:00 +00:00

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 ] );
}