[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

sullivan sullivan at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:56:09 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit ab100ac29d3edcf301008625a440f8e72659106e
Author: sullivan <sullivan at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Feb 22 22:26:32 2002 +0000

    	Added relatively complete unit tests for the two simple methods in
    	this category. These found bugs! Yay for unit tests!
    
    	* Tests/WebFoundation-Misc/ifnscalendardateextensions-test.chk:
    	* Tests/WebFoundation-Misc/ifnscalendardateextensions-test.m: (main):
    
    	Fixed problems in NSCalendarDate extensions revealed by unit tests.
    
    	* Misc.subproj/IFNSCalendarDateExtensions.h:
    	* Misc.subproj/IFNSCalendarDateExtensions.m:
    	Removed [NSCalendarDate daysSinceDate:], which was broken.
    	(-[NSCalendarDate compareDay:]): New method, returns NSComparisonResult.
    	(-[NSCalendarDate isToday]): Rewrote to use compareDay:
    
    	* WebFoundation.pbproj/project.pbxproj: Didn't change this on purpose, probably
    	auto-changed by opening it in Puma.
    
    
    	Updated for modified NSCalendarDate extensions API.
    
    	* History.subproj/IFWebHistoryPrivate.m:
    	(-[IFWebHistoryPrivate findIndex:forDay:]): use compareDate: instead of
    	daysSinceDate:, which no longer exists.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@661 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index d7348fb..a4b2423 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,11 @@
+2002-02-22  John Sullivan  <sullivan at apple.com>
+
+	Updated for modified NSCalendarDate extensions API.
+
+	* History.subproj/IFWebHistoryPrivate.m: 
+	(-[IFWebHistoryPrivate findIndex:forDay:]): use compareDate: instead of 
+	daysSinceDate:, which no longer exists.
+
 2002-02-22  Richard Williamson  <rjw at apple.com>
 
         Added data: to IFURLHandleResourceDidFinishLoading:
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index d7348fb..a4b2423 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,11 @@
+2002-02-22  John Sullivan  <sullivan at apple.com>
+
+	Updated for modified NSCalendarDate extensions API.
+
+	* History.subproj/IFWebHistoryPrivate.m: 
+	(-[IFWebHistoryPrivate findIndex:forDay:]): use compareDate: instead of 
+	daysSinceDate:, which no longer exists.
+
 2002-02-22  Richard Williamson  <rjw at apple.com>
 
         Added data: to IFURLHandleResourceDidFinishLoading:
diff --git a/WebKit/History.subproj/IFWebHistoryPrivate.m b/WebKit/History.subproj/IFWebHistoryPrivate.m
index 6d2de6a..3252a3e 100644
--- a/WebKit/History.subproj/IFWebHistoryPrivate.m
+++ b/WebKit/History.subproj/IFWebHistoryPrivate.m
@@ -48,11 +48,11 @@
     //FIXME: just does linear search through days; inefficient if many days
     count = [_datesWithEntries count];
     for (*index = 0; *index < count; ++*index) {
-        int deltaDays = [date daysSinceDate: [_datesWithEntries objectAtIndex: *index]];
-        if (deltaDays == 0) {
+        NSComparisonResult result = [date compareDay: [_datesWithEntries objectAtIndex: *index]];
+        if (result == NSOrderedSame) {
             return YES;
         }
-        if (deltaDays > 0) {
+        if (result == NSOrderedDescending) {
             return NO;
         }
     }
diff --git a/WebKit/History.subproj/WebHistoryPrivate.m b/WebKit/History.subproj/WebHistoryPrivate.m
index 6d2de6a..3252a3e 100644
--- a/WebKit/History.subproj/WebHistoryPrivate.m
+++ b/WebKit/History.subproj/WebHistoryPrivate.m
@@ -48,11 +48,11 @@
     //FIXME: just does linear search through days; inefficient if many days
     count = [_datesWithEntries count];
     for (*index = 0; *index < count; ++*index) {
-        int deltaDays = [date daysSinceDate: [_datesWithEntries objectAtIndex: *index]];
-        if (deltaDays == 0) {
+        NSComparisonResult result = [date compareDay: [_datesWithEntries objectAtIndex: *index]];
+        if (result == NSOrderedSame) {
             return YES;
         }
-        if (deltaDays > 0) {
+        if (result == NSOrderedDescending) {
             return NO;
         }
     }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list