diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js')
-rw-r--r-- | tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js new file mode 100644 index 00000000..52cd32c8 --- /dev/null +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js @@ -0,0 +1,35 @@ +/* Some misc JavaScript compatibility tests, just to make sure the environments we run in are consistent */ + +module( 'mediawiki.jscompat' ); + +test( 'Variable with Unicode letter in name', function() { + expect(3); + var orig = "some token"; + var ŝablono = orig; + deepEqual( ŝablono, orig, 'ŝablono' ); + deepEqual( \u015dablono, orig, '\\u015dablono' ); + deepEqual( \u015Dablono, orig, '\\u015Dablono' ); +}); + +/* +// Not that we need this. ;) +// This fails on IE 6-8 +// Works on IE 9, Firefox 6, Chrome 14 +test( 'Keyword workaround: "if" as variable name using Unicode escapes', function() { + var orig = "another token"; + \u0069\u0066 = orig; + deepEqual( \u0069\u0066, orig, '\\u0069\\u0066' ); +}); +*/ + +/* +// Not that we need this. ;) +// This fails on IE 6-9 +// Works on Firefox 6, Chrome 14 +test( 'Keyword workaround: "if" as member variable name using Unicode escapes', function() { + var orig = "another token"; + var foo = {}; + foo.\u0069\u0066 = orig; + deepEqual( foo.\u0069\u0066, orig, 'foo.\\u0069\\u0066' ); +}); +*/ |