Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / number / number-l10n-input.html
blob1e94334ba89fe9b66f667544451a4f637a5608a9
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 if (window.internals)
6 internals.settings.setLangAttributeAwareFormControlUIEnabled(true);
7 else
8 debug('Require DRT/WRT.');
9 </script>
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">
15 <script>
16 debug('Putting some ASCII digit strings to a number input using localized digits.');
17 var arabicInput = document.getElementById('input-ar');
18 arabicInput.focus();
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');
25 debug('');
26 debug('Putting some digit strings to a French number input.');
27 var frenchInput = document.getElementById('input-fr');
28 frenchInput.focus();
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');
35 debug('');
36 debug('Puttting some digit strings to an English number input.');
37 var englishInput = document.getElementById('input-en');
38 englishInput.focus();
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');
46 </script>
47 </body>