285 head = self.htmlhead(base_url) |
285 head = self.htmlhead(base_url) |
286 head.add_js(base_url + u'bob0.js') |
286 head.add_js(base_url + u'bob0.js') |
287 head.add_js(base_url + u'bob1.js') |
287 head.add_js(base_url + u'bob1.js') |
288 head.add_js(u'http://ext.com/bob2.js') |
288 head.add_js(u'http://ext.com/bob2.js') |
289 head.add_js(u'http://ext.com/bob3.js') |
289 head.add_js(u'http://ext.com/bob3.js') |
|
290 head.write_front( |
|
291 '<script type="text/javascript">console.log("FIRST SCRIPT ADDED HERE")</script>' |
|
292 ) |
290 head.add_css(base_url + u'bob4.css') |
293 head.add_css(base_url + u'bob4.css') |
291 head.add_css(base_url + u'bob5.css') |
294 head.add_css(base_url + u'bob5.css') |
292 head.add_css(base_url + u'bob6.css', 'print') |
295 head.add_css(base_url + u'bob6.css', 'print') |
293 head.add_css(base_url + u'bob7.css', 'print') |
296 head.add_css(base_url + u'bob7.css', 'print') |
294 head.add_ie_css(base_url + u'bob8.css') |
297 head.add_ie_css(base_url + u'bob8.css') |
295 head.add_ie_css(base_url + u'bob9.css', 'print', u'[if lt IE 7]') |
298 head.add_ie_css(base_url + u'bob9.css', 'print', u'[if lt IE 7]') |
296 result = head.getvalue() |
299 result = head.getvalue() |
297 expected = u"""<head> |
300 expected = u"""<head> |
|
301 <script type="text/javascript">console.log("FIRST SCRIPT ADDED HERE")</script> |
298 <link rel="stylesheet" type="text/css" media="all" href="http://test.fr/data/bob4.css"/> |
302 <link rel="stylesheet" type="text/css" media="all" href="http://test.fr/data/bob4.css"/> |
299 <link rel="stylesheet" type="text/css" media="all" href="http://test.fr/data/bob5.css"/> |
303 <link rel="stylesheet" type="text/css" media="all" href="http://test.fr/data/bob5.css"/> |
300 <link rel="stylesheet" type="text/css" media="print" href="http://test.fr/data/bob6.css"/> |
304 <link rel="stylesheet" type="text/css" media="print" href="http://test.fr/data/bob6.css"/> |
301 <link rel="stylesheet" type="text/css" media="print" href="http://test.fr/data/bob7.css"/> |
305 <link rel="stylesheet" type="text/css" media="print" href="http://test.fr/data/bob7.css"/> |
302 <!--[if lt IE 8]> |
306 <!--[if lt IE 8]> |