Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/277678

Change subject: Add test case for last section
......................................................................

Add test case for last section

(Sumit feel free to merge into your patchset)
Bug: T130025

Change-Id: Icd67432f022787bbf12ebaf46a5033b6f6564dbf
---
M tests/phpunit/MobileFormatterTest.php
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/78/277678/1

diff --git a/tests/phpunit/MobileFormatterTest.php 
b/tests/phpunit/MobileFormatterTest.php
index 115c789..bc20c8f 100644
--- a/tests/phpunit/MobileFormatterTest.php
+++ b/tests/phpunit/MobileFormatterTest.php
@@ -83,6 +83,18 @@
                                $enableSections,
                                false, false, true,
                        ),
+                       // https://phabricator.wikimedia.org/T130025
+                       array(
+                               '<p>text</p><h2>heading 1</h2><p>text</p>' . 
$originalImage
+                               '<div class="mf-section-0"><p>text</p></div>'
+                                       . '<h2>heading 1</h2>'
+                                       . '<div 
class="mf-section-1"><p>text</p>'
+                                       . $noscript
+                                       . $placeholder
+                                       . '</div>'
+                               $enableSections,
+                               false, false, true,
+                       ),
 
                        // # Removal of images
                        array(

-- 
To view, visit https://gerrit.wikimedia.org/r/277678
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd67432f022787bbf12ebaf46a5033b6f6564dbf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to