Forward-compat data for SelserContext w/ JSON-encoded Content
As per the procedure outlined at https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility this patch adds the serialization data for SelserContext emitted after I0cc1fc1b7403674467d85618b38a3b5a4718b66e is merged, demonstrating forward-compatibility in the case of rollback. Depends-On: I544625136088164561b9169a63aed7450cce82f5 Change-Id: Iee05eff6c4094dea4fa0a5462b40a3c1fbfcb501 (cherry-picked from commit 36783b1a9cd38ded876683e0d4a82be34475a2f0)
This commit is contained in:
parent
e9539efe2c
commit
600f5a4010
3 changed files with 6 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
{"revId":5678,"pb":{"html":"<b>html<\/b>","parsoid":{"counter":1234,"offsetType":"byte","ids":{"mwAA":{"parsoid":true}}},"mw":{"ids":{"mwAA":{"mw":true}}},"version":"1.2.3.4","headers":{"X-Header-Test":"header test"},"contentmodel":"wikitext","_complex_":true},"c":{"model":"wikitext","format":"text\/x-wiki","blob":"wiki wiki wiki","_type_":"MediaWiki\\Content\\WikitextContent","_complex_":true},"_complex_":true}
|
||||
|
|
@ -0,0 +1 @@
|
|||
a:4:{s:5:"revId";i:5678;s:2:"pb";a:7:{s:4:"html";s:11:"<b>html</b>";s:7:"parsoid";a:3:{s:7:"counter";i:1234;s:10:"offsetType";s:4:"byte";s:3:"ids";a:1:{s:4:"mwAA";a:1:{s:7:"parsoid";b:1;}}}s:2:"mw";a:1:{s:3:"ids";a:1:{s:4:"mwAA";a:1:{s:2:"mw";b:1;}}}s:7:"version";s:7:"1.2.3.4";s:7:"headers";a:1:{s:13:"X-Header-Test";s:11:"header test";}s:12:"contentmodel";s:8:"wikitext";s:9:"_complex_";b:1;}s:1:"c";a:5:{s:5:"model";s:8:"wikitext";s:6:"format";s:11:"text/x-wiki";s:4:"blob";s:14:"wiki wiki wiki";s:6:"_type_";s:33:"MediaWiki\Content\WikitextContent";s:9:"_complex_";b:1;}s:9:"_complex_";b:1;}
|
||||
|
|
@ -4,6 +4,7 @@ namespace MediaWiki\Tests\Integration\Edit;
|
|||
|
||||
use MediaWiki\Content\Content;
|
||||
use MediaWiki\Content\ContentHandler;
|
||||
use MediaWiki\Content\ContentJsonCodec;
|
||||
use MediaWiki\Content\IContentHandlerFactory;
|
||||
use MediaWiki\Content\WikitextContent;
|
||||
use MediaWiki\Edit\SelserContext;
|
||||
|
|
@ -134,6 +135,9 @@ class SimpleParsoidOutputStashSerializationTest extends MediaWikiIntegrationTest
|
|||
$mockServices->set(
|
||||
'ContentHandlerFactory', $chFactory
|
||||
);
|
||||
$mockServices->set(
|
||||
'ContentJsonCodec', new ContentJsonCodec( $chFactory )
|
||||
);
|
||||
$jsonCodec = new JsonCodec( $mockServices );
|
||||
return [
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue