"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/qunit/suites/resources/mediawiki/mediawiki.String.byteLength.test.js" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

mediawiki.String.byteLength.test.js  (mediawiki-1.31.1):mediawiki.String.byteLength.test.js  (mediawiki-1.32.0)
skipping to change at line 13 skipping to change at line 13
QUnit.module( 'mediawiki.String.byteLength', QUnit.newMwEnvironment() ); QUnit.module( 'mediawiki.String.byteLength', QUnit.newMwEnvironment() );
QUnit.test( 'Simple text', function ( assert ) { QUnit.test( 'Simple text', function ( assert ) {
var azLc = 'abcdefghijklmnopqrstuvwxyz', var azLc = 'abcdefghijklmnopqrstuvwxyz',
azUc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', azUc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
num = '0123456789', num = '0123456789',
x = '*', x = '*',
space = ' '; space = ' ';
assert.equal( byteLength( azLc ), 26, 'Lowercase a-z' ); assert.strictEqual( byteLength( azLc ), 26, 'Lowercase a-z' );
assert.equal( byteLength( azUc ), 26, 'Uppercase A-Z' ); assert.strictEqual( byteLength( azUc ), 26, 'Uppercase A-Z' );
assert.equal( byteLength( num ), 10, 'Numbers 0-9' ); assert.strictEqual( byteLength( num ), 10, 'Numbers 0-9' );
assert.equal( byteLength( x ), 1, 'An asterisk' ); assert.strictEqual( byteLength( x ), 1, 'An asterisk' );
assert.equal( byteLength( space ), 3, '3 spaces' ); assert.strictEqual( byteLength( space ), 3, '3 spaces' );
} ); } );
QUnit.test( 'Special text', function ( assert ) { QUnit.test( 'Special text', function ( assert ) {
// https://en.wikipedia.org/wiki/UTF-8 // https://en.wikipedia.org/wiki/UTF-8
var u0024 = '$', var u0024 = '$',
// Cent symbol // Cent symbol
u00A2 = '\u00A2', u00A2 = '\u00A2',
// Euro symbol // Euro symbol
u20AC = '\u20AC', u20AC = '\u20AC',
 End of changes. 1 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)