Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: testing/resources/javascript/bug_494057.in

Issue 2430583002: Add a test case for bug 494057. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/resources/javascript/bug_494057_expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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}}
« no previous file with comments | « no previous file | testing/resources/javascript/bug_494057_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698