Fix spelling of "fragment" in test descriptions
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 1 Oct 2015 20:23:45 +0000 (23:23 +0300)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Sat, 3 Oct 2015 12:30:59 +0000 (12:30 +0000)
Change-Id: I97ca75b9c587443e195b1c162dcfee7880a5e226

tests/phpunit/includes/WikiMapTest.php
tests/phpunit/includes/WikiReferenceTest.php
tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js

index 2092e0c..08ba41d 100644 (file)
@@ -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',
                                'Фу',
index 308851a..85ddafc 100644 (file)
@@ -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',
index 63de2fd..b12803d 100644 (file)
                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 ) {