Revision: 9530
Author: [email protected]
Date: Thu Jan 13 09:45:23 2011
Log: Cherry picking r9527 into releases/2.2 branch for http://code.google.com/p/google-web-toolkit/issues/detail?id=5869

http://code.google.com/p/google-web-toolkit/source/detail?r=9530

Modified:
/releases/2.2/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java /releases/2.2/user/test/com/google/gwt/user/cellview/client/ColumnSortEventTest.java

=======================================
--- /releases/2.2/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java Thu Jan 6 05:35:04 2011 +++ /releases/2.2/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java Thu Jan 13 09:45:23 2011
@@ -103,7 +103,7 @@
       }

       // Sort using the comparator.
-      if (event.isSortAcsending()) {
+      if (event.isSortAscending()) {
         Collections.sort(list, comparator);
       } else {
         Collections.sort(list, new Comparator<T>() {
@@ -199,7 +199,7 @@
    *
    * @return true if ascending, false if descending or not sorted
    */
-  public boolean isSortAcsending() {
+  public boolean isSortAscending() {
     return (sortList == null || sortList.size() == 0) ? false
         : sortList.get(0).isAscending();
   }
=======================================
--- /releases/2.2/user/test/com/google/gwt/user/cellview/client/ColumnSortEventTest.java Thu Jan 6 05:35:04 2011 +++ /releases/2.2/user/test/com/google/gwt/user/cellview/client/ColumnSortEventTest.java Thu Jan 13 09:45:23 2011
@@ -44,7 +44,7 @@
     ColumnSortEvent event = new ColumnSortEvent(sortList);
     assertEquals(sortList, event.getColumnSortList());
     assertEquals(col1, event.getColumn());
-    assertFalse(event.isSortAcsending());
+    assertFalse(event.isSortAscending());
   }

   public void testAsyncHandler() {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to