Debian Codegraph @

extensions/VisualEditor/build/screenshots.diffs.js

raw symbols SCIP
1 'use strict';
2
3 const createScreenshotEnvironment = require( './screenshots.js' ).createScreenshotEnvironment,
4 test = require( 'selenium-webdriver/testing' ),
5 diffs = require( './screenshots-client/diffs.js' ),
6 runScreenshotTest = createScreenshotEnvironment( test );
7
8 function runTests( lang ) {
9
10 const runLang = runScreenshotTest.bind( this, lang );
11
12 test.describe( 'Screenshots: ' + lang, function () {
13 this.lang = lang;
14 test.it( 'Simple diff', () => {
15 runLang( 'VisualEditor_diff_simple', diffs.simple );
16 runLang( 'VisualEditor_diff_move_and_change', diffs.moveAndChange );
17 runLang( 'VisualEditor_diff_link_change', diffs.linkChange );
18 runLang( 'VisualEditor_diff_list_change', diffs.listChange );
19 } );
20 } );
21 }
22
23 for ( let i = 0, l = langs.length; i < l; i++ ) {
24 runTests( langs[ i ] );
25 }