~autra/webapps-applications/deezer

« back to all changes in this revision

Viewing changes to tests/cnn-news.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:
23
23
        var found = false;
24
24
        for (i = 0; i < out.length; i++) {
25
25
            if (out[i].match(/^total:\d+$/)) {
26
 
                var num = out[i].match(/\d+/)[0];
 
26
                var num = out[i].match(/\d+/)[0];
27
27
 
28
 
                if (Number(num) > 0) {
 
28
                if (Number(num) > 0) {
29
29
                    found = true;
30
 
                }
 
30
                }
31
31
            }
32
32
        }
33
33
        assertTrue('PASS SELF TEST', found);
34
34
    },
35
35
 
36
36
    scriptName: 'cnn-news/cnn-news.user.js'
37
 
};
 
37
};
 
 
b'\\ No newline at end of file'