mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-18 00:30:30 +00:00
b27c9843b5
This was introduced in Iac30ffe274 to control the rollout of CM6 to RTL wikis separately from LTR wikis because of various bugs. While RTL still isn't perfect, it is stable enough now (hewiki has not complained) and the 2017 editor is also fully supported. Thus, we no longer need this feature flag. Bug: T170001 Change-Id: Ia439527aaab07644b358cedf9603cd9d148b6608
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\CodeMirror\Tests;
|
|
|
|
use MediaWiki\Extension\CodeMirror\DataScript;
|
|
use MediaWiki\ResourceLoader\Context;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\CodeMirror\DataScript
|
|
*/
|
|
class DataScriptTest extends \MediaWikiIntegrationTestCase {
|
|
|
|
public function testMakeScript() {
|
|
$context = $this->createMock( Context::class );
|
|
|
|
$script = DataScript::makeScript( $context );
|
|
$this->assertStringContainsString( '"extCodeMirrorConfig":', $script );
|
|
$this->assertStringContainsString( '"lineNumberingNamespaces":', $script );
|
|
$this->assertStringContainsString( '"templateFoldingNamespaces":', $script );
|
|
$this->assertStringContainsString( '"pluginModules":', $script );
|
|
$this->assertStringContainsString( '"tagModes":', $script );
|
|
$this->assertStringContainsString( '"tags":', $script );
|
|
$this->assertStringContainsString( '"doubleUnderscore":', $script );
|
|
$this->assertStringContainsString( '"functionSynonyms":', $script );
|
|
$this->assertStringContainsString( '"urlProtocols":', $script );
|
|
$this->assertStringContainsString( '"linkTrailCharacters":', $script );
|
|
}
|
|
|
|
}
|