summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-22 21:15:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-22 21:15:16 +0000
commit36623f65c39c38effe681aa82e3a11f1d4d6cc7b (patch)
tree1e3334028e55ebdc45ef7c945d14599b6209cb47
parent25b56107ef349726f74b27de2d491ac3fc5d36ca (diff)
downloadpdfium-36623f65c39c38effe681aa82e3a11f1d4d6cc7b.tar.xz
Add missing property to event_properties.in
Change-Id: I63c2f2c416d3270061fcffd0c9d0a82c10de88d2 Reviewed-on: https://pdfium-review.googlesource.com/c/44411 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--testing/resources/javascript/event_properties.in4
-rw-r--r--testing/resources/javascript/event_properties_expected.txt3
2 files changed, 7 insertions, 0 deletions
diff --git a/testing/resources/javascript/event_properties.in b/testing/resources/javascript/event_properties.in
index 495c16bc14..6f563d1c2c 100644
--- a/testing/resources/javascript/event_properties.in
+++ b/testing/resources/javascript/event_properties.in
@@ -156,6 +156,10 @@ endobj
expect("event.value = 'boo'", "boo");
expect("event.value", "boo");
+ expect("event.willCommit", true);
+ expectError("event.willCommit = 'boo'");
+ expect("event.willCommit", true);
+
app.alert("*** ending test ***");
} catch (e) {
app.alert("Truly unexpected error occured: " + e);
diff --git a/testing/resources/javascript/event_properties_expected.txt b/testing/resources/javascript/event_properties_expected.txt
index ca1cbeba4a..bdcecc2e46 100644
--- a/testing/resources/javascript/event_properties_expected.txt
+++ b/testing/resources/javascript/event_properties_expected.txt
@@ -46,4 +46,7 @@ Alert: PASS: event.type = 'boo' threw event.type: Operation not supported.
Alert: PASS: event.value =
Alert: PASS: event.value = 'boo' = boo
Alert: PASS: event.value = boo
+Alert: PASS: event.willCommit = true
+Alert: PASS: event.willCommit = 'boo' threw event.willCommit: Operation not supported.
+Alert: PASS: event.willCommit = true
Alert: *** ending test ***