add useful comments about portlet ids
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 17 Oct 2011 15:57:47 +0000 (15:57 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 17 Oct 2011 15:57:47 +0000 (15:57 +0000)
comments comes from r95571 commit log by Krinkle

tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js

index 12c14ca..da18f02 100644 (file)
@@ -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);