Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71147
Change subject: Fix qunit tests
......................................................................
Fix qunit tests
Change-Id: I168170e5383ac738e87ed7037b8c247c4fd12447
---
M tests/javascripts/views/test_page.js
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/47/71147/1
diff --git a/tests/javascripts/views/test_page.js
b/tests/javascripts/views/test_page.js
index 7a410c1..a92146e 100644
--- a/tests/javascripts/views/test_page.js
+++ b/tests/javascripts/views/test_page.js
@@ -200,10 +200,10 @@
strictEqual( $container.find( 'h2' ).last().text(), mw.msg(
'mobile-frontend-language-article-heading' ), 'Language heading is the last' );
strictEqual( $container.find( 'h3' ).length, 0, 'No h3 present due to
lazy loading' );
strictEqual( $container.find( '#content_0' ).find( 'p' ).text(), 'Lead
section' );
- strictEqual( $container.find( 'h2#section_1' ).text(), 'History' );
+ strictEqual( $.trim( $container.find( 'h2#section_1' ).text() ),
'History' );
$content = $container.find( '#content_1' ).data( 'content' );
strictEqual( $( '<div>' ).html( $content ).text(), 'History section' );
- strictEqual( $container.find( 'h2#section_2' ).text(), 'Geography' );
+ strictEqual( $.trim( $container.find( 'h2#section_2' ).text() ),
'Geography' );
$content = $( '<div>' ).html( $container.find( '#content_2' ).data(
'content' ) );
strictEqual( $content.find( 'h3' ).length, 1, 'h3 is present but not
loaded into DOM yet' );
strictEqual( $content.find( 'p' ).length, 2, '1 for Geography and 1 for
climate' );
--
To view, visit https://gerrit.wikimedia.org/r/71147
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I168170e5383ac738e87ed7037b8c247c4fd12447
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