3 <script src=
"../../../resources/js-test.js"></script>
6 internals
.settings
.setLangAttributeAwareFormControlUIEnabled(true);
8 debug('Require DRT/WRT.');
11 <input id=
"input-ar" lang=
"ar-eg" type=
"number">
12 <input id=
"input-fr" lang=
"fr-fr" type=
"number">
13 <input id=
"input-en" lang=
"en-us" type=
"number">
16 debug('Putting some ASCII digit strings to a number input using localized digits.');
17 var arabicInput
= document
.getElementById('input-ar');
19 shouldBeEqualToString('document.execCommand("InsertText", false, "1234"); arabicInput.value', '1234');
20 arabicInput
.value
= '';
21 shouldBeEqualToString('document.execCommand("InsertText", false, "1.234"); arabicInput.value', '1.234');
22 arabicInput
.value
= '';
23 shouldBeEqualToString('document.execCommand("InsertText", false, "1,234"); arabicInput.value', '1234');
26 debug('Putting some digit strings to a French number input.');
27 var frenchInput
= document
.getElementById('input-fr');
29 shouldBeEqualToString('document.execCommand("InsertText", false, "1234"); frenchInput.value', '1234');
30 frenchInput
.value
= '';
31 shouldBeEqualToString('document.execCommand("InsertText", false, "1,234"); frenchInput.value', '1.234');
32 frenchInput
.value
= '';
33 shouldBeEqualToString('document.execCommand("InsertText", false, "1.234"); frenchInput.value', '1.234');
36 debug('Puttting some digit strings to an English number input.');
37 var englishInput
= document
.getElementById('input-en');
39 shouldBeEqualToString('document.execCommand("InsertText", false, "1234"); englishInput.value', '1234');
40 englishInput
.value
= '';
41 shouldBeEqualToString('document.execCommand("InsertText", false, "1.234"); englishInput.value', '1.234');
42 englishInput
.value
= '';
43 shouldBeEqualToString('document.execCommand("InsertText", false, "1,234"); englishInput.value', '1234');