blob: ed4b92730b8fb8d317a41adee2db363918fa89e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
var MockCustomDialog = {
show: function(title, msg, cancel, confirm) {
this.mShown = true;
this.mShowedTitle = title;
this.mShowedMsg = msg;
this.mShowedCancel = cancel;
this.mShowedConfirm = confirm;
},
hide: function() {
this.mShown = false;
},
mShown: false,
mShowedTitle: null,
mShowedMsg: null,
mShowedCancel: null,
mShowedConfirm: null,
mTeardown: function teardown() {
this.mShown = false;
this.mShowedTitle = null;
this.mShowedMsg = null;
this.mShowedCancel = null;
this.mShowedConfirm = null;
}
};
|