WordPress.org

Make WordPress Core

Ticket #38489: fix-spelling-qunit.patch

File fix-spelling-qunit.patch, 4.0 KB (added by ottok, 5 years ago)
  • tests/qunit/editor/plugins/image.js

     
    346346
    347347        });
    348348
    349         test('Advanced image dialog overriden border style options on empty editor', function(){
     349        test('Advanced image dialog overridden border style options on empty editor', function(){
    350350                editor.settings.image_advtab = true;
    351351                editor.settings.image_dimensions = false;
    352352
     
    376376
    377377        });
    378378
    379         test('Advanced image dialog overriden margin style options on empty editor', function(){
     379        test('Advanced image dialog overridden margin style options on empty editor', function(){
    380380                editor.settings.image_advtab = true;
    381381                editor.settings.image_dimensions = false;
    382382
  • tests/qunit/editor/tinymce/Formatter_apply.js

     
    151151        rng.setEnd(editor.dom.select('p')[0].lastChild, 2);
    152152        editor.selection.setRng(rng);
    153153        editor.formatter.toggle('format');
    154         equal(getContent(), '<p><b>1234</b></p>', 'Extend formating if start of selection is already formatted');
     154        equal(getContent(), '<p><b>1234</b></p>', 'Extend formatting if start of selection is already formatted');
    155155});
    156156
    157157test('Inline element on partially selected text', function() {
  • tests/qunit/editor/tinymce/dom/DOMUtils.js

     
    612612                ok(DOM.isEmpty(DOM.get('test')), 'Non empty complex HTML with space');
    613613
    614614                DOM.setHTML('test', '<div><span><b></b></span><b></b><em><a name="x"></a></em></div>');
    615                 ok(!DOM.isEmpty(DOM.get('test')), 'Non empty complex HTML with achor name');
     615                ok(!DOM.isEmpty(DOM.get('test')), 'Non empty complex HTML with anchor name');
    616616
    617617                DOM.setHTML('test', '<img src="tinymce/ui/img/raster.gif">');
    618618                ok(!DOM.isEmpty(DOM.get('test')), 'Non empty html with img element');
  • tests/qunit/vendor/qunit.js

     
    14011401        }
    14021402};
    14031403
    1404 // Provide an alternative to assert.throws(), for enviroments that consider throws a reserved word
     1404// Provide an alternative to assert.throws(), for environments that consider throws a reserved word
    14051405// Known to us are: Closure Compiler, Narwhal
    14061406(function() {
    14071407        /*jshint sub:true */
  • tests/qunit/vendor/sinon.js

     
    179179        // contain already visited objects
    180180        var objects1 = [],
    181181            objects2 = [],
    182         // contain pathes (position in the object structure)
     182        // contain paths (position in the object structure)
    183183        // of the already visited objects
    184184        // indexes same as in objects arrays
    185185            paths1 = [],
     
    294294                index1 = isObject1 ? getIndex(objects1, value1) : -1;
    295295                index2 = isObject2 ? getIndex(objects2, value2) : -1;
    296296
    297                 // determine the new pathes of the objects
     297                // determine the new paths of the objects
    298298                // - for non cyclic objects the current path will be extended
    299299                //   by current property name
    300300                // - for cyclic objects the stored path is taken
     
    310310                    return true;
    311311                }
    312312
    313                 // remember the current objects and their pathes
     313                // remember the current objects and their paths
    314314                if (index1 === -1 && isObject1) {
    315315                    objects1.push(value1);
    316316                    paths1.push(newPath1);