[devtools] Fix JS tests' HTML code
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 01 Sep 2014 14:56:00 +0200
changeset 9994 12a97d1c6015
parent 9993 1ced03652d5e
child 9995 c9f1111e0ee8
[devtools] Fix JS tests' HTML code
devtools/qunit.py
--- a/devtools/qunit.py	Mon Sep 01 10:22:46 2014 +0200
+++ b/devtools/qunit.py	Mon Sep 01 14:56:00 2014 +0200
@@ -280,8 +280,10 @@
             'web_test': cw_path('devtools', 'data'),
         }
 
-    html = ['''<html>
+    html = ['''<!DOCTYPE html>
+<html>
   <head>
+    <meta http-equiv="content-type" content="application/html; charset=UTF-8"/>
     <!-- JS lib used as testing framework -->
     <link rel="stylesheet" type="text/css" media="all" href="%(web_test)s/qunit.css" />
     <script src="%(web_data)s/jquery.js" type="text/javascript"></script>
@@ -307,7 +309,7 @@
     <h1 id="qunit-header">QUnit example</h1>
     <h2 id="qunit-banner"></h2>
     <h2 id="qunit-userAgent"></h2>
-    <ol id="qunit-tests">
+    <ol id="qunit-tests"></ol>
   </body>
 </html>''')
     return u'\n'.join(html)