r83433 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83432‎ | r83433 | r83434 >
Date:03:41, 7 March 2011
Author:bawolff
Status:resolved
Tags:
Comment:
Add parser tests to this extension.

There are currently 2 broken tests. Thats because the extension is broken. (Clearly people use these
features). I'll try and fix them soonish. There's some tests also commented out that didn't
work due to issues with how parserTests work. (most notably, mysql doesn't like doing self-joins
on a temporary table, which this extension does quite a lot of, being so efficient and all).
Modified paths:
  • /trunk/extensions/intersection/DynamicPageList.php (modified) (history)
  • /trunk/extensions/intersection/DynamicPageList.tests.txt (added) (history)

Diff [purge]

Index: trunk/extensions/intersection/DynamicPageList.php
@@ -51,6 +51,8 @@
5252 $dir = dirname( __FILE__ ) . '/';
5353 $wgExtensionMessagesFiles['DynamicPageList'] = $dir . 'DynamicPageList.i18n.php';
5454
 55+$wgParserTestFiles[] = $dir . 'DynamicPageList.tests.txt';
 56+
5557 # Configuration variables
5658 $wgDLPmaxCategories = 6; // Maximum number of categories to look for
5759 $wgDLPMaxResultCount = 200; // Maximum number of results to allow
Index: trunk/extensions/intersection/DynamicPageList.tests.txt
@@ -0,0 +1,628 @@
 2+# Not clear if this does anything, but other extension do it.
 3+# However, seems to make this not work, so commenting out for now.
 4+#!! hooks
 5+#DynamicPageList
 6+#!! endhooks
 7+
 8+# Some of these might fail if some other
 9+# extension adds articles to the tests, which is bad.
 10+
 11+# Things not tested:
 12+## *Flagged revs related props
 13+## *Actual intersection (multiple notcategory/category clauses)
 14+## due to issue with mysql self-joins on temp tables.
 15+## *Date related things (Addcategorydate) since the output
 16+## varries depending on today's date.
 17+## *gallery stuff (lack of images)
 18+## *some order methods, due to lack of flexibity in page creation
 19+
 20+!! article
 21+DPLTest1
 22+!! text
 23+[[category:DPLtest]]
 24+!! endarticle
 25+
 26+!! article
 27+Talk:DPLTest2
 28+!! text
 29+[[category:DPLtest]]
 30+[[category:DPLtest3]]
 31+[[category:DPLtest2]]
 32+!! endarticle
 33+
 34+!! article
 35+Talk:no_Categories
 36+!! text
 37+no cats
 38+!! endarticle
 39+
 40+!! article
 41+Yet another DPL test page!
 42+!! text
 43+[[category:DPLtest]]
 44+[[category:DPLtest2]]
 45+!! endarticle
 46+
 47+!! article
 48+help:DPLTest3
 49+!! text
 50+Article.
 51+[[category:DPLtest2]]
 52+!! endarticle
 53+
 54+!! article
 55+DPLRedir
 56+!! text
 57+#Redirect[[DPLtest]]
 58+
 59+[[category:DPLtest]]
 60+!! endarticle
 61+
 62+# start actual tests.
 63+!!test
 64+basic, single category list, ordered by cat add, desc.
 65+!!input
 66+<DynamicPageList>
 67+category=DPLtest
 68+</DynamicPageList>
 69+!!result
 70+<ul>
 71+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 72+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 73+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 74+
 75+!!end
 76+
 77+
 78+!!test
 79+basic, single category list, but ascending
 80+!!input
 81+<DynamicPageList>
 82+order = ascending
 83+category=DPLtest
 84+</DynamicPageList>
 85+!!result
 86+<ul>
 87+<li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li>
 88+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 89+ <li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li></ul>
 90+
 91+!!end
 92+
 93+# Depnds on page id of other pages
 94+# so could break depending on other tests
 95+# if they get different page id
 96+!!test
 97+dpl_id
 98+!!input
 99+<DynamicPageList>
 100+category=DPLtest
 101+googlehack=true
 102+</DynamicPageList>
 103+!!result
 104+<ul>
 105+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!?dpl_id=53">Yet another DPL test page!</a></li>
 106+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2?dpl_id=51">Talk:DPLTest2</a></li>
 107+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1?dpl_id=50">DPLTest1</a></li></ul>
 108+
 109+!!end
 110+
 111+
 112+!!test
 113+nofollow
 114+!!input
 115+<DynamicPageList>
 116+category=DPLtest
 117+nofollow=true
 118+</DynamicPageList>
 119+!!result
 120+<ul>
 121+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!" rel="nofollow">Yet another DPL test page!</a></li>
 122+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2" rel="nofollow">Talk:DPLTest2</a></li>
 123+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1" rel="nofollow">DPLTest1</a></li></ul>
 124+
 125+!!end
 126+
 127+!!test
 128+supresserrors
 129+!!input
 130+<DynamicPageList>
 131+category=DPLtest
 132+category=DPLtest1
 133+category=DPLtest2
 134+category=DPLtest3
 135+category=DPLtest4
 136+category=DPLtest5
 137+category=DPLtest7
 138+category=DPLtest6
 139+category=DPLtest8
 140+category=DPLtest9
 141+category=DPLtest10
 142+suppresserrors=true
 143+</DynamicPageList>
 144+!!result
 145+
 146+!!end
 147+
 148+## BROKEN!! mysql doesn't like using self-joins on temporary tables
 149+## which breaks this test.
 150+#!!test
 151+#Intersection.
 152+#!!input
 153+#<DynamicPageList>
 154+#category=DPLtest
 155+#category=DPLtest2
 156+#</DynamicPageList>
 157+#!!result
 158+#<ul>
 159+#<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 160+# <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li></ul>
 161+#
 162+#!!end
 163+
 164+## BROKEN!! (same as above)
 165+#!!test
 166+#Intersection and negation.
 167+#!!input
 168+#<DynamicPageList>
 169+#category=DPLtest
 170+#category=DPLtest2
 171+#notcategory=DPLtest3
 172+#</DynamicPageList>
 173+#!!result
 174+#<ul>
 175+#<li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li></ul>
 176+#
 177+#!!end
 178+
 179+!!test
 180+Negation with namespace.
 181+!!input
 182+<DynamicPageList>
 183+namespace=talk
 184+notcategory=DPLtest3
 185+</DynamicPageList>
 186+!!result
 187+<ul>
 188+<li><a href="https://www.mediawiki.org/wiki/Talk:No_Categories">Talk:No Categories</a></li></ul>
 189+
 190+!!end
 191+
 192+!!test
 193+Namespace limited to category.
 194+!!input
 195+<DynamicPageList>
 196+category=DPLtest
 197+namespace=talk
 198+</DynamicPageList>
 199+!!result
 200+<ul>
 201+<li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li></ul>
 202+
 203+!!end
 204+
 205+!!test
 206+Namespace no category.
 207+!!input
 208+<DynamicPageList>
 209+namespace=help
 210+</DynamicPageList>
 211+!!result
 212+<ul>
 213+<li><a href="https://www.mediawiki.org/wiki/Help:DPLTest3">Help:DPLTest3</a></li></ul>
 214+
 215+!!end
 216+
 217+!!test
 218+Don't show namespace name. (shownamespace=false)
 219+!!input
 220+<DynamicPageList>
 221+namespace=help
 222+shownamespace=false
 223+</DynamicPageList>
 224+!!result
 225+<ul>
 226+<li><a href="https://www.mediawiki.org/wiki/Help:DPLTest3" title="Help:DPLTest3">DPLTest3</a></li></ul>
 227+
 228+!!end
 229+
 230+# This one has count=1 to avoid articles from other tests.
 231+!!test
 232+Invalid ns treated as main namespace
 233+!!input
 234+<DynamicPageList>
 235+namespace=Look mummy, this totally isn't a namespace
 236+count=2
 237+</DynamicPageList>
 238+!!result
 239+<ul>
 240+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 241+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 242+
 243+!!end
 244+
 245+!!test
 246+count and offset combined.
 247+!!input
 248+<DynamicPageList>
 249+category=DPLtest
 250+count=1
 251+offset=1
 252+</DynamicPageList>
 253+!!result
 254+<ul>
 255+<li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li></ul>
 256+
 257+!!end
 258+
 259+!!test
 260+include redirects
 261+!!input
 262+<DynamicPageList>
 263+category=DPLtest
 264+redirects=include
 265+</DynamicPageList>
 266+!!result
 267+<ul>
 268+<li><a href="https://www.mediawiki.org/wiki/DPLRedir" class="mw-redirect">DPLRedir</a></li>
 269+ <li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 270+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 271+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 272+
 273+!!end
 274+
 275+!!test
 276+only redirect
 277+!!input
 278+<DynamicPageList>
 279+category=DPLtest
 280+redirects=only
 281+</DynamicPageList>
 282+!!result
 283+<ul>
 284+<li><a href="https://www.mediawiki.org/wiki/DPLRedir" class="mw-redirect">DPLRedir</a></li></ul>
 285+
 286+!!end
 287+
 288+
 289+# Should behave like false.
 290+# Can't actually test true, since the date would vary.
 291+!!test
 292+addfirstcategorydate=INVALID
 293+!!input
 294+<DynamicPageList>
 295+category=DPLtest
 296+addfirstcategorydate=INVALID
 297+</DynamicPageList>
 298+!!result
 299+<ul>
 300+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 301+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 302+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 303+
 304+!!end
 305+
 306+!!test
 307+addfirstcategorydate=false
 308+!!input
 309+<DynamicPageList>
 310+category=DPLtest
 311+addfirstcategorydate=false
 312+</DynamicPageList>
 313+!!result
 314+<ul>
 315+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 316+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 317+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 318+
 319+!!end
 320+
 321+
 322+!!test
 323+mode=unordered (default)
 324+!!input
 325+<DynamicPageList>
 326+category=DPLtest
 327+mode=unordered
 328+</DynamicPageList>
 329+!!result
 330+<ul>
 331+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 332+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 333+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 334+
 335+!!end
 336+!!test
 337+mode=INVALID
 338+!!input
 339+<DynamicPageList>
 340+category=DPLtest
 341+mode=INVALID
 342+</DynamicPageList>
 343+!!result
 344+<ul>
 345+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 346+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 347+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 348+
 349+!!end
 350+
 351+!!test
 352+mode=ordered
 353+!!input
 354+<DynamicPageList>
 355+category=DPLtest
 356+mode=ordered
 357+</DynamicPageList>
 358+!!result
 359+<ol>
 360+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 361+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 362+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ol>
 363+
 364+!!end
 365+
 366+# This is broken
 367+!!test
 368+mode=none (line breaks)
 369+!!input
 370+<DynamicPageList>
 371+category=DPLtest
 372+mode=none
 373+</DynamicPageList>
 374+!!result
 375+<a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a><br />
 376+<a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a><br />
 377+<a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a><br />
 378+
 379+!!end
 380+
 381+!!test
 382+mode=inline (comma list)
 383+!!input
 384+<DynamicPageList>
 385+category=DPLtest
 386+mode=inline
 387+</DynamicPageList>
 388+!!result
 389+<a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a>, <a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a>, <a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a>
 390+
 391+!!end
 392+
 393+# None of these are images, so crappy test.
 394+!!test
 395+mode=gallery (complex, no image)
 396+!!input
 397+<DynamicPageList>
 398+category=DPLtest
 399+addfirstcategorydate=ymd
 400+imagewidth=70
 401+galleryshowfilesize=yes
 402+galleryshowfilename=yes
 403+imagesperrow=7
 404+gallerycaption=Look at my pretty gallery. {{SERVER}}
 405+mode=gallery
 406+</DynamicPageList>
 407+!!result
 408+<ul class="gallery" style="max-width: 840px;_width: 840px;">
 409+ <li class='gallerycaption'>Look at my pretty gallery. http://Britney-Spears</li>
 410+ <li class="gallerybox" style="width: 105px"><div style="width: 105px">
 411+ <div style="height: 150px;">Yet another DPL test page!</div>
 412+ <div class="gallerytext">
 413+<p><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!" title="Yet another DPL test page!">Yet another DPL test...</a><br />
 414+<span class="mw-formatted-date" title="2011-03-07">2011 March 7</span> File missing<br />
 415+</p>
 416+ </div>
 417+ </div></li>
 418+ <li class="gallerybox" style="width: 105px"><div style="width: 105px">
 419+ <div style="height: 150px;">DPLTest2</div>
 420+ <div class="gallerytext">
 421+<p><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2" title="Talk:DPLTest2">DPLTest2</a><br />
 422+<span class="mw-formatted-date" title="2011-03-07">2011 March 7</span> File missing<br />
 423+</p>
 424+ </div>
 425+ </div></li>
 426+ <li class="gallerybox" style="width: 105px"><div style="width: 105px">
 427+ <div style="height: 150px;">DPLTest1</div>
 428+ <div class="gallerytext">
 429+<p><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a><br />
 430+<span class="mw-formatted-date" title="2011-03-07">2011 March 7</span> File missing<br />
 431+</p>
 432+ </div>
 433+ </div></li>
 434+</ul>
 435+
 436+!!end
 437+
 438+!!test
 439+mode=gallery (simple, no image)
 440+!!input
 441+<DynamicPageList>
 442+category=DPLtest
 443+mode=gallery
 444+</DynamicPageList>
 445+!!result
 446+<ul class="gallery">
 447+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 448+ <div style="height: 150px;">Yet another DPL test page!</div>
 449+ <div class="gallerytext">
 450+<p><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!" title="Yet another DPL test page!">Yet another DPL test...</a><br />
 451+</p>
 452+ </div>
 453+ </div></li>
 454+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 455+ <div style="height: 150px;">DPLTest2</div>
 456+ <div class="gallerytext">
 457+<p><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2" title="Talk:DPLTest2">DPLTest2</a><br />
 458+</p>
 459+ </div>
 460+ </div></li>
 461+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 462+ <div style="height: 150px;">DPLTest1</div>
 463+ <div class="gallerytext">
 464+<p><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a><br />
 465+</p>
 466+ </div>
 467+ </div></li>
 468+</ul>
 469+
 470+!!end
 471+
 472+!!test
 473+mode=gallery (complex, with image + bad image)
 474+!!input
 475+<DynamicPageList>
 476+mode=gallery
 477+namespace=file
 478+addfirstcategorydate=ymd
 479+imagewidth=70
 480+galleryshowfilesize=yes
 481+galleryshowfilename=yes
 482+imagesperrow=7
 483+gallerycaption=I love Captions
 484+ordermethod=sortkey
 485+order=descending
 486+</DynamicPageList>
 487+!!result
 488+<ul class="gallery" style="max-width: 840px;_width: 840px;">
 489+ <li class='gallerycaption'>I love Captions</li>
 490+ <li class="gallerybox" style="width: 105px"><div style="width: 105px">
 491+ <div style="height: 150px;"><a href="https://www.mediawiki.org/wiki/File:Bad.jpg" title="File:Bad.jpg">Bad.jpg</a></div>
 492+ <div class="gallerytext">
 493+<p><a href="https://www.mediawiki.org/wiki/File:Bad.jpg" title="File:Bad.jpg">Bad.jpg</a><br />
 494+7,881 bytes<br />
 495+</p>
 496+ </div>
 497+ </div></li>
 498+ <li class="gallerybox" style="width: 105px"><div style="width: 105px">
 499+ <div class="thumb" style="width: 100px;"><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="70" height="8" /></a></div></div>
 500+ <div class="gallerytext">
 501+<p><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
 502+12,345 bytes<br />
 503+</p>
 504+ </div>
 505+ </div></li>
 506+</ul>
 507+
 508+!!end
 509+
 510+!!test
 511+mode=gallery (simple showfilesize, no image)
 512+!!input
 513+<DynamicPageList>
 514+category=DPLtest
 515+mode=gallery
 516+galleryshowfilesize=yes
 517+galleryshowfilename=no
 518+</DynamicPageList>
 519+!!result
 520+<ul class="gallery">
 521+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 522+ <div style="height: 150px;">Yet another DPL test page!</div>
 523+ <div class="gallerytext">
 524+<p>File missing<br />
 525+</p>
 526+ </div>
 527+ </div></li>
 528+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 529+ <div style="height: 150px;">DPLTest2</div>
 530+ <div class="gallerytext">
 531+<p>File missing<br />
 532+</p>
 533+ </div>
 534+ </div></li>
 535+ <li class="gallerybox" style="width: 155px"><div style="width: 155px">
 536+ <div style="height: 150px;">DPLTest1</div>
 537+ <div class="gallerytext">
 538+<p>File missing<br />
 539+</p>
 540+ </div>
 541+ </div></li>
 542+</ul>
 543+
 544+!!end
 545+
 546+
 547+# This is a crappy test since creation and categoryadd are the
 548+# same for parser tests.
 549+!!test
 550+ordermethod=created (by article id)
 551+!!input
 552+<DynamicPageList>
 553+category=DPLtest
 554+ordermethod=created
 555+</DynamicPageList>
 556+!!result
 557+<ul>
 558+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 559+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 560+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 561+
 562+!!end
 563+
 564+# This one is BROKEN! I'm not sure why.
 565+# Seems to order it in opposite order. Maybe timestamp isn't
 566+# fine grained enough or something given how parsertests creates them.
 567+#!!test
 568+#ordermethod=lastedit (by page_touched)
 569+#!!input
 570+#<DynamicPageList>
 571+#category=DPLtest
 572+#ordermethod=lastedit
 573+#</DynamicPageList>
 574+#!!result
 575+#<ul>
 576+#<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 577+# <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 578+# <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 579+#
 580+#!!end
 581+
 582+
 583+!!test
 584+ordermethod=length
 585+!!input
 586+<DynamicPageList>
 587+category=DPLtest
 588+ordermethod=length
 589+</DynamicPageList>
 590+!!result
 591+<ul>
 592+<li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 593+ <li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 594+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 595+
 596+!!end
 597+
 598+!!test
 599+ordermethod=sortkey
 600+!!input
 601+<DynamicPageList>
 602+category=DPLtest
 603+ordermethod=sortkey
 604+</DynamicPageList>
 605+!!result
 606+<ul>
 607+<li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li>
 608+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 609+ <li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li></ul>
 610+
 611+!!end
 612+
 613+#check to make sure the alias works.
 614+!!test
 615+ordermethod=categorysortkey
 616+!!input
 617+<DynamicPageList>
 618+category=DPLtest
 619+ordermethod=categorysortkey
 620+order=ascending
 621+</DynamicPageList>
 622+!!result
 623+<ul>
 624+<li><a href="https://www.mediawiki.org/wiki/DPLTest1">DPLTest1</a></li>
 625+ <li><a href="https://www.mediawiki.org/wiki/Talk:DPLTest2">Talk:DPLTest2</a></li>
 626+ <li><a href="https://www.mediawiki.org/wiki/Yet_another_DPL_test_page!">Yet another DPL test page!</a></li></ul>
 627+
 628+!!end
 629+
Property changes on: trunk/extensions/intersection/DynamicPageList.tests.txt
___________________________________________________________________
Added: svn:eol-style
1630 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r83434(follow-up r63291). *head* -> *wall*. Add forgotten variable that caused inva...bawolff04:04, 7 March 2011
r83621(follow-up r83433) Fix (or workaround) bug discovered with mode=none having <...bawolff00:29, 10 March 2011

Status & tagging log