From 36623f65c39c38effe681aa82e3a11f1d4d6cc7b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 22 Oct 2018 21:15:16 +0000 Subject: Add missing property to event_properties.in Change-Id: I63c2f2c416d3270061fcffd0c9d0a82c10de88d2 Reviewed-on: https://pdfium-review.googlesource.com/c/44411 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- testing/resources/javascript/event_properties.in | 4 ++++ testing/resources/javascript/event_properties_expected.txt | 3 +++ 2 files changed, 7 insertions(+) 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 *** -- cgit v1.2.3