Hi,

We are writing QUnit tests for the Narayam extension and we ran into
some trouble simulating JavaScript events. The extension
transliterates ASCII Latin characters into characters which are hard
to type without installing keyboard layouts, and it's used in some
Wikimedia projects.

The problem is in the
extensions/Narayam/tests/qunit/ext.narayam.rules.tests.js file. It is
successful in testing the keyboard layouts that are currently present
there, but the same method doesn't work for testing layouts that have
to keep a key buffer - to remember the keys that were typed before the
last character. This is the case for German, for example, where '~o'
is supposed to be converted to 'ö'. It works when we actually type,
but if we try to test it using QUnit, it yields an empty string,
because by the time we get to the 'o', the '~' is forgotten.

Does anybody have an idea on how to solve this?

--
Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
http://aharoni.wordpress.com
‪“We're living in pieces,
I want to live in peace.” – T. Moore‬

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to