mediawiki-extensions-Visual.../build/screenshots.diffs.js
Ed Sanders 6076708ff3 build: Update eslint-config-wikimedia to 0.16.0
Change-Id: I638e0f82949597e2a2e4ea18fc2f0258f225358c
2020-06-02 21:30:00 +01:00

31 lines
952 B
JavaScript

'use strict';
const createScreenshotEnvironment = require( './screenshots.js' ).createScreenshotEnvironment,
test = require( 'selenium-webdriver/testing' ),
runScreenshotTest = createScreenshotEnvironment( test );
function runTests( lang ) {
test.describe( 'Screenshots: ' + lang, function () {
this.lang = lang;
test.it( 'Simple diff', function () {
runScreenshotTest( 'VisualEditor_diff_simple', lang,
require( './screenshots-client/diffs.js' ).simple
);
runScreenshotTest( 'VisualEditor_diff_move_and_change', lang,
require( './screenshots-client/diffs.js' ).moveAndChange
);
runScreenshotTest( 'VisualEditor_diff_link_change', lang,
require( './screenshots-client/diffs.js' ).linkChange
);
runScreenshotTest( 'VisualEditor_diff_list_change', lang,
require( './screenshots-client/diffs.js' ).listChange
);
} );
} );
}
for ( let i = 0, l = langs.length; i < l; i++ ) {
runTests( langs[ i ] );
}