harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r495691 - in /harmony/enhanced/classlib/trunk/modules/awt/src: main/java/common/java/awt/BufferCapabilities.java test/api/java/common/java/awt/BufferCapabilitiesTest.java
Date Fri, 12 Jan 2007 19:23:50 GMT
Author: ayza
Date: Fri Jan 12 11:23:49 2007
New Revision: 495691

URL: http://svn.apache.org/viewvc?view=rev&rev=495691
Log:
Patches from HARMONY-2682 and HARMONY-2683 (fixes for java.awt.BufferCapabilities)

Added:
    harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java
  (with props)
Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BufferCapabilities.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BufferCapabilities.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BufferCapabilities.java?view=diff&rev=495691&r1=495690&r2=495691
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BufferCapabilities.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BufferCapabilities.java
Fri Jan 12 11:23:49 2007
@@ -63,11 +63,11 @@
     }
 
     public boolean isFullScreenRequired() {
-        return true;
+        return false;
     }
 
     public boolean isMultiBufferAvailable() {
-        return true;
+        return false;
     }
 
     public static final class FlipContents {

Added: harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java?view=auto&rev=495691
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java
Fri Jan 12 11:23:49 2007
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package java.awt;
+
+import junit.framework.TestCase;
+
+public class BufferCapabilitiesTest extends TestCase {
+
+    /**
+     * Test method for
+     * {@link java.awt.BufferCapabilities#isFullScreenRequired()}.
+     */
+    public void testIsFullScreenRequired() {
+        // Regression test for HARMONY-2682
+        final BufferCapabilities bfc = new BufferCapabilities(
+                new ImageCapabilities(false), new ImageCapabilities(false),
+                null);
+
+        assertFalse(bfc.isFullScreenRequired());
+    }
+
+    /**
+     * Test method for
+     * {@link java.awt.BufferCapabilities#isMultiBufferAvailable()}.
+     */
+    public void testIsMultiBufferAvailable() {
+        // Regression test for HARMONY-2683
+        final BufferCapabilities bfc = new BufferCapabilities(
+                new ImageCapabilities(false), new ImageCapabilities(false),
+                null);
+
+        assertFalse(bfc.isMultiBufferAvailable());
+    }
+}

Propchange: harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/BufferCapabilitiesTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message