amir.aharoni at mail
Mar 5, 2012, 12:28 AM
Post #1 of 1
testing keyboards events in Narayam
We are writing QUnit tests for the Narayam extension and we ran into
transliterates ASCII Latin characters into characters which are hard
to type without installing keyboard layouts, and it's used in some
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 · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
“We're living in pieces,
I want to live in peace.” – T. Moore
Wikitech-l mailing list
Wikitech-l [at] lists