From bba993a59555505626b804bf6fcd1f346eac69e1 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Tue, 17 Jan 2012 00:23:07 +0000 Subject: [PATCH] Force left-to-right directionality on the QUnit output and apply the appropriate directionality to its header, since it can be translated. --- includes/specials/SpecialJavaScriptTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialJavaScriptTest.php b/includes/specials/SpecialJavaScriptTest.php index f82968d4a7..c658f0d0c8 100644 --- a/includes/specials/SpecialJavaScriptTest.php +++ b/includes/specials/SpecialJavaScriptTest.php @@ -106,7 +106,7 @@ class SpecialJavaScriptTest extends SpecialPage { * Initialize the page for QUnit. */ private function initQUnitTesting() { - global $wgJavaScriptTestConfig; + global $wgJavaScriptTestConfig, $wgLang; $out = $this->getOutput(); @@ -118,13 +118,16 @@ class SpecialJavaScriptTest extends SpecialPage { ->params( $wgJavaScriptTestConfig['qunit']['documentation'] ) ->parseAsBlock(); $header = wfMessage( 'javascripttest-qunit-heading' )->escaped(); + $userDir = $wgLang->getDir(); $baseHtml = <<$header +
+
$header
    +
    HTML; $out->addHtml( $this->wrapSummaryHtml( $summary, 'frameworkfound' ) . $baseHtml ); -- 2.20.1