From 93a673d24a068400846cab325a972ff10cbd42ff Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Thu, 1 Oct 2015 23:23:45 +0300 Subject: [PATCH] Fix spelling of "fragment" in test descriptions Change-Id: I97ca75b9c587443e195b1c162dcfee7880a5e226 --- tests/phpunit/includes/WikiMapTest.php | 2 +- tests/phpunit/includes/WikiReferenceTest.php | 12 ++++++------ .../suites/resources/mediawiki/mediawiki.Uri.test.js | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/includes/WikiMapTest.php b/tests/phpunit/includes/WikiMapTest.php index 2092e0cf5d..08ba41d9a1 100644 --- a/tests/phpunit/includes/WikiMapTest.php +++ b/tests/phpunit/includes/WikiMapTest.php @@ -118,7 +118,7 @@ class WikiMapTest extends MediaWikiLangTestCase { return array( 'unknown' => array( false, 'xyzzy', 'Foo' ), 'enwiki' => array( 'http://en.example.org/w/Foo', 'enwiki', 'Foo' ), - 'ruwiki with fragement' => array( + 'ruwiki with fragment' => array( '//ru.example.org/wiki/%D0%A4%D1%83#%D0%B2%D0%B0%D1%80', 'ruwiki', 'Фу', diff --git a/tests/phpunit/includes/WikiReferenceTest.php b/tests/phpunit/includes/WikiReferenceTest.php index 308851abb4..85ddafc06f 100644 --- a/tests/phpunit/includes/WikiReferenceTest.php +++ b/tests/phpunit/includes/WikiReferenceTest.php @@ -31,7 +31,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { public function provideGetCanonicalUrl() { return array( - 'no fragement' => array( + 'no fragment' => array( 'https://acme.com/wiki/Foo', 'https://acme.com', '//acme.com', @@ -39,7 +39,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { 'Foo', null ), - 'empty fragement' => array( + 'empty fragment' => array( 'https://acme.com/wiki/Foo', 'https://acme.com', '//acme.com', @@ -63,7 +63,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { 'Foo', 'Bar#Xus' ), - 'escaped fragement' => array( + 'escaped fragment' => array( 'https://acme.com/wiki/Foo%23Bar', 'https://acme.com', '//acme.com', @@ -101,7 +101,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { public function provideGetFullUrl() { return array( - 'no fragement' => array( + 'no fragment' => array( '//acme.com/wiki/Foo', 'https://acme.com', '//acme.com', @@ -109,7 +109,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { 'Foo', null ), - 'empty fragement' => array( + 'empty fragment' => array( '//acme.com/wiki/Foo', 'https://acme.com', '//acme.com', @@ -133,7 +133,7 @@ class WikiReferenceTest extends PHPUnit_Framework_TestCase { 'Foo', 'Bar#Xus' ), - 'escaped fragement' => array( + 'escaped fragment' => array( '//acme.com/wiki/Foo%23Bar', 'https://acme.com', '//acme.com', diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js index 63de2fdd24..b12803d6c7 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js @@ -432,7 +432,7 @@ relativePath = uri.getRelativePath(); assert.ok( relativePath.indexOf( uri.path ) >= 0, 'path in relative path' ); assert.ok( relativePath.indexOf( uri.getQueryString() ) >= 0, 'query string in relative path' ); - assert.ok( relativePath.indexOf( uri.fragment ) >= 0, 'fragement in relative path' ); + assert.ok( relativePath.indexOf( uri.fragment ) >= 0, 'fragment in relative path' ); } ); QUnit.test( 'Parse a uri with an @ symbol in the path and query', 1, function ( assert ) { -- 2.20.1