r14581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14580‎ | r14581 | r14582 >
Date:21:28, 5 June 2006
Author:brion
Status:old
Tags:
Comment:
More section extraction tests: trailing comments, starting comments (bug 2587), invalid trailing text
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -4663,7 +4663,123 @@
46644664 ===ca===
46654665 !! end
46664666
 4667+!! test
 4668+Section extraction test (nonexistent section 11)
 4669+!! options
 4670+section=11
 4671+!! input
 4672+start
 4673+==a==
 4674+===aa===
 4675+====aaa====
 4676+==b==
 4677+===ba===
 4678+===bb===
 4679+====bba====
 4680+===bc===
 4681+==c==
 4682+===ca===
 4683+!! result
 4684+!! end
46674685
 4686+!! test
 4687+Section extraction test with bogus heading (section 1)
 4688+!! options
 4689+section=1
 4690+!! input
 4691+==a==
 4692+==bogus== not a legal section
 4693+==b==
 4694+!! result
 4695+==a==
 4696+==bogus== not a legal section
 4697+!! end
 4698+
 4699+!! test
 4700+Section extraction test with bogus heading (section 2)
 4701+!! options
 4702+section=2
 4703+!! input
 4704+==a==
 4705+==bogus== not a legal section
 4706+==b==
 4707+!! result
 4708+==b==
 4709+!! end
 4710+
 4711+!! test
 4712+Section extraction test with comment after heading (section 1)
 4713+!! options
 4714+section=1
 4715+!! input
 4716+==a==
 4717+==legal== <!-- a legal section -->
 4718+==b==
 4719+!! result
 4720+==a==
 4721+!! end
 4722+
 4723+!! test
 4724+Section extraction test with comment after heading (section 2)
 4725+!! options
 4726+section=2
 4727+!! input
 4728+==a==
 4729+==legal== <!-- a legal section -->
 4730+==b==
 4731+!! result
 4732+==legal== <!-- a legal section -->
 4733+!! end
 4734+
 4735+!! test
 4736+Section extraction test with bogus <nowiki> heading (section 1)
 4737+!! options
 4738+section=1
 4739+!! input
 4740+==a==
 4741+==bogus== <nowiki>not a legal section</nowiki>
 4742+==b==
 4743+!! result
 4744+==a==
 4745+==bogus== <nowiki>not a legal section</nowiki>
 4746+!! end
 4747+
 4748+!! test
 4749+Section extraction test with bogus <nowiki> heading (section 2)
 4750+!! options
 4751+section=2
 4752+!! input
 4753+==a==
 4754+==bogus== <nowiki>not a legal section</nowiki>
 4755+==b==
 4756+!! result
 4757+==b==
 4758+!! end
 4759+
 4760+
 4761+!! test
 4762+Section extraction prefixed by comment (section 1) (bug 2587)
 4763+!! options
 4764+section=1
 4765+!! input
 4766+<!-- -->==sec1==
 4767+==sec2==
 4768+!!result
 4769+<!-- -->==sec1==
 4770+!!end
 4771+
 4772+!! test
 4773+Section extraction prefixed by comment (section 2) (bug 2587)
 4774+!! options
 4775+section=2
 4776+!! input
 4777+<!-- -->==sec1==
 4778+==sec2==
 4779+!!result
 4780+==sec2==
 4781+!!end
 4782+
 4783+
46684784 #
46694785 #
46704786 #

Follow-up revisions

RevisionCommit summaryAuthorDate
r14583* (bug 2587) Fix for section editing with comment prefix...brion00:51, 6 June 2006

Status & tagging log