Merge "Add tests for events on multiple sections edits"

This commit is contained in:
jenkins-bot 2016-08-03 10:13:36 +00:00 committed by Gerrit Code Review
commit 84bcf2d7a2
5 changed files with 109 additions and 0 deletions

View file

@ -387,6 +387,45 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
),
),
),
array(
'new' => 747798766,
'old' => 747798765,
'username' => 'Admin',
'lang' => 'en',
'pages' => array(),
'title' => 'UTPage',
'expected' => array(
array(
'type' => 'mention-failure',
'agent' => 'Admin',
'section-title' => 'Section 2',
),
),
),
array(
'new' => 747798767,
'old' => 747798765,
'username' => 'Admin',
'lang' => 'en',
'pages' => array(),
'title' => 'UTPage',
'expected' => array(
array(
'type' => 'mention-failure',
'agent' => 'Admin',
'section-title' => 'Section 2',
),
),
),
array(
'new' => 747798768,
'old' => 747798765,
'username' => 'Admin',
'lang' => 'en',
'pages' => array(),
'title' => 'UTPage',
'expected' => array(),
),
);
}

View file

@ -0,0 +1,9 @@
Simultaneously edit multiple sections
== Section 1 ==
Content 1
== Section 2 ==
Content 2

View file

@ -0,0 +1,19 @@
Simultaneously edit multiple sections
== Section 1 ==
Content 1
New content with userlink ( dont try to mention this one )
[[User:Test11]]
== Section 2 ==
Content 2
New content with userlink & signature in another section ( try to mention this one )
[[User:NoUser]]
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)

View file

@ -0,0 +1,25 @@
Simultaneously edit multiple sections
== Section 1 ==
Content 1
New content with userlink ( dont try to mention this one )
[[User:Test11]]
== Section 1.5 ==
New section in between with userlink ( dont try to mention this one )
[[User:Test11]]
== Section 2 ==
Content 2
New content with userlink & signature in another section ( try to mention this one )
[[User:NoUser]]
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)

View file

@ -0,0 +1,17 @@
Simultaneously edit multiple sections
== Section 1 ==
Content 1
New content with signature
[[:User:Admin|Admin]] 13:22, 23 June 2016 (UTC)
== Section 2 ==
Content 2
New content with userlink ( dont try to mention this one )
[[User:Test11]]