From ebe37e1a654fa1dda93185a77383a9537e67ff4f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 17 Oct 2011 15:57:47 +0000 Subject: [PATCH] add useful comments about portlet ids comments comes from r95571 commit log by Krinkle --- .../suites/resources/mediawiki/mediawiki.util.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js index 12c14ca394..da18f02f4a 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js @@ -142,6 +142,13 @@ test( '$content', function() { strictEqual( mw.util.$content.length, 1, 'mw.util.$content must have length of 1' ); }); + +/** + * Portlet names are prefixed with 'p-test' to avoid conflict with core + * when running the test suite under a wiki page. + * Previously, test elements where invisible to the selector since only + * one element can have a given id. + */ test( 'addPortletLink', function() { expect(7); -- 2.20.1