'Checks that the javascript of a bundle is correctly interpretet when mixed with inline.'

def test_02_js_interpretation_inline(self):

    with self.registry.cursor() as test_cursor:
        view_arch = '\n                                                <data>\n                                                                <xpath    expr="."    position="inside">\n                                                                                <script    type="text/javascript">\n                                                                                                var    d    =    4;\n                                                                                </script>\n                                                                </xpath>\n                                                </data>\n                                                '
        self.env(cr=test_cursor)['ir.ui.view'].create({'name': 'test    bundle    inheritance    inline    js', 'type': 'qweb', 'arch': view_arch, 'inherit_id': self.browse_ref('test_assetsbundle.bundle1').id})
    self.phantom_js('/test_assetsbundle/js', "a    +    b    +    c    +    d    ===    10    ?    console.log('ok')    :    console.log('error')", login='admin')
