1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

JS -- Add few missing constants in global scope

- these constants are available in pdfium implementation too
 - fix error code in aform.js
This commit is contained in:
Calixte Denizet 2021-01-11 17:19:24 +01:00
parent 631bada0df
commit 8e6bec6e2e
4 changed files with 138 additions and 20 deletions

View file

@ -858,7 +858,8 @@ describe("Scripting", function () {
expect(send_queue.has("alert")).toEqual(true);
expect(send_queue.get("alert")).toEqual({
command: "alert",
value: "Invalid number in [ MyField ]",
value:
"The value entered does not match the format of the field [ MyField ]",
});
done();
} catch (ex) {
@ -1052,7 +1053,8 @@ describe("Scripting", function () {
expect(send_queue.has("alert")).toEqual(true);
expect(send_queue.get("alert")).toEqual({
command: "alert",
value: "12 is not between 123 and 456",
value:
"Invalid value: must be greater than or equal to 123 and less than or equal to 456.",
});
done();