| Index: testing/resources/javascript/bug_494057.in
|
| diff --git a/testing/resources/javascript/field.in b/testing/resources/javascript/bug_494057.in
|
| similarity index 69%
|
| copy from testing/resources/javascript/field.in
|
| copy to testing/resources/javascript/bug_494057.in
|
| index c23b81a604ea67767b52b1ecc8b78aa66b627d7a..188b7bf5fa398d246abb66fb84161c665916389e 100644
|
| --- a/testing/resources/javascript/field.in
|
| +++ b/testing/resources/javascript/bug_494057.in
|
| @@ -91,31 +91,21 @@ endobj
|
| {{object 11 0}} <<
|
| >>
|
| stream
|
| -function TestGetField() {
|
| +function TestGetFieldWithDelay() {
|
| try {
|
| - var field = this.getField("MyField");
|
| - app.alert("field is " + field.name);
|
| - var sub_a = this.getField("MyField.Sub_A");
|
| - app.alert("sub_a is " + sub_a.name);
|
| - var nonesuch = this.getField("MyField.nonesuch");
|
| - app.alert("nonesuch is " + nonesuch);
|
| + var ff = this.getField("MyField");
|
| + app.alert("field is " + ff.name);
|
| + app.alert("field value is '" + ff.value + "'");
|
| + ff.delay = true;
|
| + ff.value = "new value";
|
| + this.delay=true;
|
| + ff.delay = false;
|
| + app.alert("field value is '" + ff.value + "'");
|
| } catch (e) {
|
| app.alert("Unexpected error: " + e);
|
| }
|
| }
|
| -function TestGetArray() {
|
| - try {
|
| - var subs = this.getField("MyField").getArray();
|
| - app.alert("found " + subs.length + " sub-fields:");
|
| - for (i = 0; i < subs.length; ++i) {
|
| - app.alert(subs[i].name);
|
| - }
|
| - } catch (e) {
|
| - app.alert("Unexpected error: " + e);
|
| - }
|
| -}
|
| -TestGetField();
|
| -TestGetArray();
|
| +TestGetFieldWithDelay();
|
| endstream
|
| endobj
|
| {{xref}}
|
|
|