[webkit-changes] cvs commit: LayoutTests/fast/js date-DST-pre-1970-expected.txt date-DST-pre-1970.html

Eric eseidel at opensource.apple.com
Tue Nov 29 02:36:05 PST 2005


eseidel     05/11/29 02:36:05

  Modified:    .        ChangeLog
  Added:       fast/js  date-DST-pre-1970-expected.txt
                        date-DST-pre-1970.html
  Log:
  Bug #: 5514
  Submitted by: mitz
  Reviewed by: ggaren
          Tests for: http://bugzilla.opendarwin.org/show_bug.cgi?id=5514
  
          * fast/js/date-DST-pre-1970-expected.txt: Added.
          * fast/js/date-DST-pre-1970.html: Added.
  
  Revision  Changes    Path
  1.110     +10 -1     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- ChangeLog	29 Nov 2005 09:54:58 -0000	1.109
  +++ ChangeLog	29 Nov 2005 10:36:04 -0000	1.110
  @@ -1,6 +1,15 @@
  +2005-11-29  Mitz Pettel  <opendarwin.org at mitzpettel.com>
  +
  +        Reviewed by ggaren.  Committed by eseidel.
  +
  +        Tests for: http://bugzilla.opendarwin.org/show_bug.cgi?id=5514
  +
  +        * fast/js/date-DST-pre-1970-expected.txt: Added.
  +        * fast/js/date-DST-pre-1970.html: Added.
  +
   2005-11-29  Darin Adler  <darin at apple.com>
   
  -        Reviewed by eseidel.  Landed by eseidel.
  +        Reviewed by eseidel.  Committed by eseidel.
   
           Re-enabling hc_noderemovechild.xhtml and fixing bug (hang).
           http://bugzilla.opendarwin.org/show_bug.cgi?id=5316
  
  
  
  1.1                  LayoutTests/fast/js/date-DST-pre-1970-expected.txt
  
  Index: date-DST-pre-1970-expected.txt
  ===================================================================
  This tests the DST status in dates earlier than 1970-01-01 00:00 UTC. Regardless of your time zone, it should not fail.
  
  SUCCESS! (This tests time zones: US/Pacific, US/Central, US/Mountain, US/Eastern, CET, Asia/Jerusalem and NZ.)
  
  
  
  1.1                  LayoutTests/fast/js/date-DST-pre-1970.html
  
  Index: date-DST-pre-1970.html
  ===================================================================
  <html>
  <head>
  <script>
  function print(message) {
      var paragraph = document.createElement("p");
      paragraph.appendChild(document.createTextNode(message));
      document.getElementById("console").appendChild(paragraph);
  }
  
  function test() {
      if (window.layoutTestController) {
          layoutTestController.dumpAsText();
      }
  
      var dates = [
          new Date(1970, 0, 1),   // fails in NZ
          new Date(1969, 8, 1),   // fails in CET, Asia/Jerusalem
          new Date(1969, 9, 28),  // fails in US/Eastern, Mountain, Pacific, Central
      ];
      while (d = dates.shift()) {
          if (d.getHours() != 0) {
              print("FAILED: " + d);
              break;
          }
      }
      if (!d)
          print("SUCCESS!  (This tests time zones: US/Pacific, US/Central, US/Mountain, US/Eastern, CET, Asia/Jerusalem and NZ.)");
  }
  </script>
  </head>
  <body onload="test();">
  <p>This tests the DST status in dates earlier than 1970-01-01 00:00 UTC. Regardless of your time zone, it should not fail.</p>
  <hr>
  <div id='console'/>
  </body>
  </html>
  
  
  



More information about the webkit-changes mailing list