Lines Matching full:app
39 expect("app.alert('message \u4023', 1, 2, 'title \u4024')", 0);
40 expect("app.alert({'cMsg': 'message', 'cTitle': 'title'})", 0);
41 expect("app.alert({'cMsg': 'message', 'cTitle': 'title', 'nIcon': 3, 'nType': 4})", 0);
42 expect("app.alert(undefined)", 0);
43 expect("app.alert(null)", 0);
44 expect("app.alert(true)", 0);
45 expect("app.alert(false)", 0);
46 expect("app.alert(42)", 0);
47 expect("app.alert([1, 2, 3])", 0);
48 expect("app.alert([1, 2, {'color': 'red'}])", 0);
49 expect("app.alert({'color': 'red'}, 5, 6, 'title')", 0);
50 expectError("app.alert()");
51 expectError("app.alert({})");
52 expectError("app.alert({'color': 'red', 'size': 42})");
54 expect("app.beep(1)", undefined);
56 expectError("app.browseForDoc()");
57 expect("app.execDialog()", undefined);
58 expectError("app.execMenuItem()");
59 expect("app.findComponent()", undefined);
60 expect("app.goBack()", undefined);
61 expect("app.goForward()", undefined);
62 expect("app.launchURL()", undefined);
63 expectError("app.newDoc()");
64 expect("app.newFDF()", undefined);
65 expectError("app.openDoc()");
66 expect("app.openFDF()", undefined);
67 expectError("app.popUpMenuEx()");
68 expectError("app.popUpMenu()");
70 expect("app.mailMsg(true)", undefined);
71 expect("app.mailMsg(false, 'user@example.com')", undefined);
72 expect("app.mailMsg(false, 'user@example.com', 'cc@example.com', " +
74 expect("app.mailMsg({'bUI': true})", undefined);
75 expect("app.mailMsg({'bUI': false, 'cTo': 'user@example.com'})", undefined);
76 expect("app.mailMsg({'bUI': false, 'cTo': 'user@example.com', " +
79 expectError("app.mailMsg()");
80 expectError("app.mailMsg(false)");
81 expectError("app.mailMsg({'color': 'red', 'size': 42})");
83 expect("app.response('question')", 'No');
84 expect("app.response('question', 'title', 'default', true, 'label')", 'No');
85 expect("app.response({'cQuestion': 'question'})", 'No');
86 expect("app.response({'cQuestion': 'question', 'cTitle': 'title', " +
88 expectError("app.response()");
89 expectError("app.response({})");
92 app.alert('Truly unexpected error: ' + e);