~knittl/webapps-applications/checkMessageCount-typofix

« back to all changes in this revision

Viewing changes to tests/yandex-music.js

  • Committer: Tarmac
  • Author(s): Alexandre Abreu
  • Date: 2012-12-04 18:22:58 UTC
  • mfrom: (466.2.1 latest)
  • Revision ID: tarmac-20121204182258-hx7dzi67dqiv4jni
Fix various jslint errors.
. Fixes: https://bugs.launchpad.net/bugs/1086482.

Approved by Víctor R. Ruiz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    },
12
12
 
13
13
    onLoad: function () {
14
 
        this._browser.injectScript('(' + function () {
15
 
            document.evaluate('//div[@class="b-track b-track_type_title js-track js-track-33273"]/div/div[@class="b-play__i"]', document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.click()
16
 
        } + ')();');
 
14
        this._browser.injectScript('(' + function () {
 
15
            document.evaluate('//div[@class="b-track b-track_type_title js-track js-track-33273"]/div/div[@class="b-play__i"]', document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.click();
 
16
        } + ')();');
17
17
 
18
18
        setTimeout(function () {
19
19
            this._browser.finish();
24
24
        assertEquals('Unity.init', log[0].func, 'Unity.init');
25
25
        var i, correctTrack = false;
26
26
        for (i = 0; i < log.length; i++) {
27
 
            if (log[i].func === 'Unity.MediaPlayer.setTrack'
28
 
                && log[i].args[0].title === 'Sweet Dreams (Are Made Of This)'
29
 
                && log[i].args[0].artist === 'Marilyn Manson') {
 
27
            if (log[i].func === 'Unity.MediaPlayer.setTrack' && log[i].args[0].title === 'Sweet Dreams (Are Made Of This)' && log[i].args[0].artist === 'Marilyn Manson') {
30
28
                correctTrack = true;
31
29
            }
32
30
        }
35
33
    },
36
34
 
37
35
    scriptName: 'yandex-music/yandex-music.user.js'
38
 
};
 
36
};
 
 
b'\\ No newline at end of file'