equal
deleted
inserted
replaced
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
269 (base_url + u'bob9.css', ('print', u'[if IE 8]')) |
269 (base_url + u'bob9.css', ('print', u'[if IE 8]')) |
270 ] |
270 ] |
271 self.assertEqual(list(result), expected) |
271 self.assertEqual(list(result), expected) |
272 |
272 |
273 def test_getvalue_with_concat(self): |
273 def test_getvalue_with_concat(self): |
|
274 self.config.global_set_option('concat-resources', True) |
274 base_url = u'http://test.fr/data/' |
275 base_url = u'http://test.fr/data/' |
275 head = self.htmlhead(base_url) |
276 head = self.htmlhead(base_url) |
276 head.add_js(base_url + u'bob0.js') |
277 head.add_js(base_url + u'bob0.js') |
277 head.add_js(base_url + u'bob1.js') |
278 head.add_js(base_url + u'bob1.js') |
278 head.add_js(u'http://ext.com/bob2.js') |
279 head.add_js(u'http://ext.com/bob2.js') |