Index: testing/resources/javascript/app_repsonse.in |
diff --git a/testing/resources/javascript/app_alert.in b/testing/resources/javascript/app_repsonse.in |
similarity index 53% |
copy from testing/resources/javascript/app_alert.in |
copy to testing/resources/javascript/app_repsonse.in |
index 75aecc9075397775c30997f9a357ca9166971ef2..bd78da35e3ccd27770ce2a9bb8894e36b7a5e7ea 100644 |
--- a/testing/resources/javascript/app_alert.in |
+++ b/testing/resources/javascript/app_repsonse.in |
@@ -34,30 +34,34 @@ endobj |
{{object 11 0}} << |
>> |
stream |
-app.alert("This test passes if alert() logs output under the test utility."); |
-app.alert("message", 1, 2, "title"); |
-app.alert({"cMsg": "message", "cTitle": "title"}); |
-app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4}); |
-app.alert(undefined); |
-app.alert(null); |
-app.alert(true); |
-app.alert(false); |
-app.alert(42); |
-app.alert([1, 2, 3]); |
-app.alert([1, 2, {"color": "red"}]); |
-app.alert({"color": "red"}, 5, 6, "title"); |
+var result; |
try { |
- app.alert(); |
+ result = app.response("question"); |
+ app.alert("result: " + result); |
+ result = app.response("question", "title", "default", true, "label"); |
+ app.alert("result: " + result); |
+ result = app.response({"cQuestion": "question"}); |
+ app.alert("result: " + result); |
+ result = app.response({ |
+ "cQuestion": "question", |
+ "cTitle": "title", |
+ "cDefault": "default", |
+ "bPassword": true, |
+ "cLabel": "label" |
+ }); |
+ app.alert("result: " + result); |
} catch (e) { |
- app.alert("Caught expected error " + e); |
+ app.alert("unexpected error " + e); |
} |
try { |
- app.alert({}); |
+ app.response(); |
+ app.alert("unexpected success"); |
} catch (e) { |
app.alert("Caught expected error " + e); |
} |
try { |
- app.alert({"color": "red", "size": 42}); |
+ app.response({}); |
+ app.alert("unexpected success"); |
} catch (e) { |
app.alert("Caught expected error " + e); |
} |