Bug 844239 - Specify character encoding in robocop test files; r=jmaher DONTBUILD
authorGeoff Brown <gbrown@mozilla.com>
Tue, 23 Apr 2013 16:15:45 -0600
changeset 140640 5e085a3192ffea088775528f91261fd6aedc63d8
parent 140639 75648b269697496c8e84b20900e76d0350ac435b
child 140641 659fa167a6bba070697efdd0fa81bbe3d8d66074
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs844239
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 844239 - Specify character encoding in robocop test files; r=jmaher DONTBUILD
mobile/android/base/tests/robocop_404.sjs
mobile/android/base/tests/robocop_geolocation.html
mobile/android/base/tests/robocop_login.html
mobile/android/base/tests/robocop_offline_storage.html
mobile/android/base/tests/test_viewport.sjs
--- a/mobile/android/base/tests/robocop_404.sjs
+++ b/mobile/android/base/tests/robocop_404.sjs
@@ -17,12 +17,12 @@ function handleRequest(request, response
   } else {
     setState(state, "1");
   }
 
   response.setStatusLine(request.httpVersion, status, null);
   response.setHeader("Content-Type", "text/html", false);
   response.setHeader("Cache-Control", "no-cache", false);
   response.write('<html>');
-  response.write('<head><title>' + type + '</title></head>');
+  response.write('<head><title>' + type + '</title> <meta charset="utf-8"> </head>');
   response.write('<body style="background-color: ' + color + '"></body>');
   response.write('</html>');
 }
--- a/mobile/android/base/tests/robocop_geolocation.html
+++ b/mobile/android/base/tests/robocop_geolocation.html
@@ -1,10 +1,13 @@
 <html>
-<title>Geolocation Test Page</title>
+<head>
+  <title>Geolocation Test Page</title>
+  <meta charset="utf-8">
+</head>
 <body>
 <script>
   function clb(position) {
     // Show a green background if permission is granted
     document.body.style.background = "#008000";
   }
   function err(error) {
     // Show a red background if permission is denied
--- a/mobile/android/base/tests/robocop_login.html
+++ b/mobile/android/base/tests/robocop_login.html
@@ -2,17 +2,18 @@
 <script>
 function login(){
 document.login.username.value="Test";
 document.login.password.value="Test";
 document.getElementById('submit').click();
 }
 </script>
 <head>
-<title>Robocop Login</title>
+  <title>Robocop Login</title>
+  <meta charset="utf-8">
 </head>
 <body onload="login()">
   <h2>User Login </h2>
   <form name="login" method="post" action="robocop_blank_01.html">
    Username: <input type="text" name="username" id="username"><br>
    Password: <input type="password" name="password" id="password"><br>
    <input type="submit" id="submit" name="submit" value="Login!">
   </form>
--- a/mobile/android/base/tests/robocop_offline_storage.html
+++ b/mobile/android/base/tests/robocop_offline_storage.html
@@ -1,7 +1,8 @@
 <html manifest="robocop_offline">
 <head>
-<title>Robocop offline storage</title>
+  <title>Robocop offline storage</title>
+  <meta charset="utf-8">
 </head>
 <body>
 </body>
 </html>
--- a/mobile/android/base/tests/test_viewport.sjs
+++ b/mobile/android/base/tests/test_viewport.sjs
@@ -14,17 +14,17 @@
 function handleRequest(request, response) {
   response.setStatusLine(request.httpVersion, 200, "OK");
   response.setHeader("Content-Type", "text/html", false);
 
   let params = decodeQuery(request.queryString || "");
 
   response.write('<html>\n' +
     '<head>\n' +
-      '<title>Browser VKB Overlapping content</title>');
+      '<title>Browser VKB Overlapping content</title>  <meta charset="utf-8">');
 
   if (params.metadata)
     response.write("<meta name=\"viewport\" content=\"" + params.metadata + "\"/>");
 
   /* Write a spacer div into the document, above an input element*/
   response.write('</head>\n' +
     '<body style="margin: 0; padding: 0">\n' +
       '<div style="width: 100%; height: 100%"></div>\n' +