skin: Convert table of contents from <table> to <div>
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.util.test.js
index 713ec4b..b4b5d0b 100644 (file)
 
                assert.strictEqual( mw.util.toggleToc(), null, 'Return null if there is no table of contents on the page.' );
 
-               tocHtml = '<table id="toc" class="toc"><tr><td>' +
+               tocHtml = '<div id="toc" class="toc">' +
                        '<div id="toctitle">' +
                        '<h2>Contents</h2>' +
                        '<span class="toctoggle">&nbsp;[<a href="#" class="internal" id="togglelink">Hide</a>&nbsp;]</span>' +
                        '</div>' +
                        '<ul><li></li></ul>' +
-                       '</td></tr></table>';
+                       '</div>';
                $( tocHtml ).appendTo( '#qunit-fixture' ),
                        $toggleLink = $( '#togglelink' );