~autra/webapps-applications/deezer

« back to all changes in this revision

Viewing changes to tests/YahooMail.js

  • Committer: autra
  • Date: 2013-04-11 12:34:24 UTC
  • mfrom: (406.1.108 trunk)
  • Revision ID: autra@autra-optiplex-380-20130411123424-3b0xa9ppaytxx3hr
sync from parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        this._state++;
25
25
    },
26
26
 
27
 
    validateCallLog: function (log) {
 
27
    validateCallLog: function (log, out) {
28
28
        assertEquals('Unity.init', log[0].func, 'Unity.init');
29
29
        assertEquals('Yahoo Mail', log[0].args[0].name, 'Yahoo Mail');
30
30
        assertEquals('Unity.MessagingIndicator.clearIndicators', log[1].func, 'Unity.MessagingIndicator.clearIndicators');
31
 
        assertEquals('Unity.MessagingIndicator.showIndicator', log[2].func, 'Unity.MessagingIndicator.showIndicator');
 
31
 
 
32
        var found = false, i;
 
33
        for (i = 0; i < out.length; i++) {
 
34
            if (out[i] === 'PASS SELF TEST') {
 
35
                found = true;
 
36
            }
 
37
        }
 
38
        assertTrue('PASS SELF TEST', found);
32
39
    },
33
40
 
34
41
    scriptName: 'YahooMail/YahooMail.user.js'