Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -6835,6 +6835,41 @@ |
6836 | 6836 | !! end |
6837 | 6837 | |
6838 | 6838 | !! test |
| 6839 | +Gallery (with namespace-less filenames) |
| 6840 | +!! input |
| 6841 | +<gallery> |
| 6842 | +File:Nonexistant.jpg |
| 6843 | +Nonexistant.jpg |
| 6844 | +image:foobar.jpg |
| 6845 | +foobar.jpg |
| 6846 | +</gallery> |
| 6847 | +!! result |
| 6848 | +<ul class="gallery"> |
| 6849 | + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> |
| 6850 | + <div style="height: 150px;">Nonexistant.jpg</div> |
| 6851 | + <div class="gallerytext"> |
| 6852 | + </div> |
| 6853 | + </div></li> |
| 6854 | + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> |
| 6855 | + <div style="height: 150px;">Nonexistant.jpg</div> |
| 6856 | + <div class="gallerytext"> |
| 6857 | + </div> |
| 6858 | + </div></li> |
| 6859 | + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> |
| 6860 | + <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div> |
| 6861 | + <div class="gallerytext"> |
| 6862 | + </div> |
| 6863 | + </div></li> |
| 6864 | + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> |
| 6865 | + <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div> |
| 6866 | + <div class="gallerytext"> |
| 6867 | + </div> |
| 6868 | + </div></li> |
| 6869 | +</ul> |
| 6870 | + |
| 6871 | +!! end |
| 6872 | + |
| 6873 | +!! test |
6839 | 6874 | HTML Hex character encoding (spells the word "JavaScript") |
6840 | 6875 | !! input |
6841 | 6876 | JavaScript |