devtools/qunit.py
changeset 9994 12a97d1c6015
parent 9993 1ced03652d5e
child 10413 22a89d0f4143
--- 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)