devtools/qunit.py
changeset 9994 12a97d1c6015
parent 9993 1ced03652d5e
child 10413 22a89d0f4143
equal deleted inserted replaced
9993:1ced03652d5e 9994:12a97d1c6015
   278     data = {
   278     data = {
   279             'web_data': web_data_path,
   279             'web_data': web_data_path,
   280             'web_test': cw_path('devtools', 'data'),
   280             'web_test': cw_path('devtools', 'data'),
   281         }
   281         }
   282 
   282 
   283     html = ['''<html>
   283     html = ['''<!DOCTYPE html>
       
   284 <html>
   284   <head>
   285   <head>
       
   286     <meta http-equiv="content-type" content="application/html; charset=UTF-8"/>
   285     <!-- JS lib used as testing framework -->
   287     <!-- JS lib used as testing framework -->
   286     <link rel="stylesheet" type="text/css" media="all" href="%(web_test)s/qunit.css" />
   288     <link rel="stylesheet" type="text/css" media="all" href="%(web_test)s/qunit.css" />
   287     <script src="%(web_data)s/jquery.js" type="text/javascript"></script>
   289     <script src="%(web_data)s/jquery.js" type="text/javascript"></script>
   288     <script src="%(web_test)s/cwmock.js" type="text/javascript"></script>
   290     <script src="%(web_test)s/cwmock.js" type="text/javascript"></script>
   289     <script src="%(web_test)s/qunit.js" type="text/javascript"></script>'''
   291     <script src="%(web_test)s/qunit.js" type="text/javascript"></script>'''
   305     <div id="main">
   307     <div id="main">
   306     </div>
   308     </div>
   307     <h1 id="qunit-header">QUnit example</h1>
   309     <h1 id="qunit-header">QUnit example</h1>
   308     <h2 id="qunit-banner"></h2>
   310     <h2 id="qunit-banner"></h2>
   309     <h2 id="qunit-userAgent"></h2>
   311     <h2 id="qunit-userAgent"></h2>
   310     <ol id="qunit-tests">
   312     <ol id="qunit-tests"></ol>
   311   </body>
   313   </body>
   312 </html>''')
   314 </html>''')
   313     return u'\n'.join(html)
   315     return u'\n'.join(html)
   314 
   316 
   315 
   317