r80417 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80416‎ | r80417 | r80418 >
Date:18:20, 16 January 2011
Author:platonides
Status:ok
Tags:
Comment:
Another couple of tests. Also passed by the NtPrepro :)
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/parser/PreprocessorTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/parser/PreprocessorTest.php
@@ -66,6 +66,8 @@
6767 array( "{{{{{{Foo}}}}}}", "<root><tplarg><title><tplarg><title>Foo</title></tplarg></title></tplarg></root>" ),
6868 array( "{{{{{{Foo}}}}}", "<root>{<template><title><tplarg><title>Foo</title></tplarg></title></template></root>" ),
6969 array( "[[[Foo]]", "<root>[[[Foo]]</root>" ),
 70+ array( "{{Foo|[[[[bar]]|baz]]}}", "<root><template><title>Foo</title><part><name index=\"1\" /><value>[[[[bar]]|baz]]</value></part></template></root>" ), /* This test is important, since it means the difference between having the [[ rule stacked or not */
 71+ array( "{{Foo|[[[[bar]|baz]]}}", "<root>{{Foo|[[[[bar]|baz]]}}</root>" ),
7072 /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */
7173 );
7274 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r80427The test {{Foo|[[[[bar]|baz]]}} added in r80417 actually didn't pass....platonides21:00, 16 January 2011

Status & tagging log