Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -4663,7 +4663,123 @@ |
4664 | 4664 | ===ca=== |
4665 | 4665 | !! end |
4666 | 4666 | |
| 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 |
4667 | 4685 | |
| 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 | + |
4668 | 4784 | # |
4669 | 4785 | # |
4670 | 4786 | # |