changeset 20256:b786754ba604

test-hgweb-*: output change fixes from b1d65cb8
author Augie Fackler <raf@durin42.com>
date Thu, 16 Jan 2014 09:23:31 -0500
parents b1d65cb8c759
children 8a8626f2f72e
files tests/test-hgweb-commands.t tests/test-hgweb-filelog.t tests/test-hgweb.t
diffstat 3 files changed, 37 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t	Wed Jan 08 00:47:44 2014 +0900
+++ b/tests/test-hgweb-commands.t	Thu Jan 16 09:23:31 2014 -0500
@@ -1196,6 +1196,17 @@
   | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> 
   </div>
   
+  <script type="text/javascript">
+      ajaxScrollInit(
+              '/graph/3?revcount=%next%&style=gitweb',
+              60+60,
+              function (htmlText, previousVal) { return previousVal + 60; },
+              '#wrapper',
+              '<div class="%class%" style="text-align: center;">%text%</div>',
+              'graph'
+      );
+  </script>
+  
   <script type="text/javascript">process_dates()</script>
   <div class="page_footer">
   <div class="page_footer_text">test</div>
--- a/tests/test-hgweb-filelog.t	Wed Jan 08 00:47:44 2014 +0900
+++ b/tests/test-hgweb-filelog.t	Thu Jan 16 09:23:31 2014 -0500
@@ -604,7 +604,7 @@
   $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/c?style=spartan')
   200 Script output follows
   
-  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
   <html>
   <head>
   <link rel="icon" href="/static/hgicon.png" type="image/png">
--- a/tests/test-hgweb.t	Wed Jan 08 00:47:44 2014 +0900
+++ b/tests/test-hgweb.t	Thu Jan 16 09:23:31 2014 -0500
@@ -314,7 +314,7 @@
 
   $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   200 Script output follows
-  content-length: 4607
+  content-length: 5262
   content-type: text/css
   
   body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; }
@@ -486,6 +486,30 @@
   .block {
       border-top: 1px solid #d9d8d1;
   }
+  
+  .scroll-loading {
+    -webkit-animation: change_color 1s linear 0s infinite alternate;
+    -moz-animation: change_color 1s linear 0s infinite alternate;
+    -o-animation: change_color 1s linear 0s infinite alternate;
+    animation: change_color 1s linear 0s infinite alternate;
+  }
+  
+  @-webkit-keyframes change_color {
+    from { background-color: #A0CEFF; } to {  }
+  }
+  @-moz-keyframes change_color {
+    from { background-color: #A0CEFF; } to {  }
+  }
+  @-o-keyframes change_color {
+    from { background-color: #A0CEFF; } to {  }
+  }
+  @keyframes change_color {
+    from { background-color: #A0CEFF; } to {  }
+  }
+  
+  .scroll-loading-error {
+      background-color: #FFCCCC !important;
+  }
   304 Not Modified