mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-21 01:52:37 +00:00
49b83a1a48
Mostly to fix Libraryupgrader jobs. Change-Id: I587d3b27ef4cf7acfa0a7e9cfdd1f33c405bc0bc
20 lines
367 B
JavaScript
20 lines
367 B
JavaScript
'use strict';
|
|
|
|
const Api = require( 'wdio-mediawiki/Api' );
|
|
|
|
const fixture1 = '[]{{template}}';
|
|
|
|
class FixtureContent {
|
|
/**
|
|
* Create a new fixture for testing syntax highlighting.
|
|
*
|
|
* @param {string} title
|
|
*/
|
|
async createFixturePage( title ) {
|
|
const bot = await Api.bot();
|
|
await bot.edit( title, fixture1 );
|
|
}
|
|
}
|
|
|
|
module.exports = new FixtureContent();
|