mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-30 17:04:14 +00:00
9e9a38d6fc
Bug: T300205 Change-Id: Idfcfc984833ca6ca6c09500cd4715a4e5504f84e
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();
|