[JS] By default, a text field value must be treated as a number (bug 1802888)

This commit is contained in:
Calixte Denizet 2022-11-28 15:53:17 +01:00
parent 33f9d1aab2
commit ae7da6ae48
6 changed files with 57 additions and 8 deletions

View file

@ -346,7 +346,7 @@ describe("Scripting", function () {
expect(send_queue.has(refId)).toEqual(true);
expect(send_queue.get(refId)).toEqual({
id: refId,
value: "123",
value: 123,
});
});
@ -826,7 +826,7 @@ describe("Scripting", function () {
expect(send_queue.get(refId)).toEqual({
id: refId,
siblings: null,
value: "123456.789",
value: 123456.789,
formattedValue: null,
});
});
@ -1006,7 +1006,7 @@ describe("Scripting", function () {
expect(send_queue.get(refId)).toEqual({
id: refId,
siblings: null,
value: "321",
value: 321,
formattedValue: null,
});
});