You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/09/10 14:57:58 UTC

svn commit: r1382810 - /pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml

Author: smartini
Date: Mon Sep 10 12:57:57 2012
New Revision: 1382810

URL: http://svn.apache.org/viewvc?rev=1382810&view=rev
Log:
PIVOT-781, add the test case

Added:
    pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml

Added: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml?rev=1382810&view=auto
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml (added)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_781.bxml Mon Sep 10 12:57:57 2012
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+
+<Window title="PIVOT-781 - Full Screen Mode" maximized="true"
+    xmlns:bxml="http://pivot.apache.org/bxml"
+    xmlns:content="org.apache.pivot.wtk.content"
+    xmlns:collections="org.apache.pivot.collections"
+    xmlns="org.apache.pivot.wtk"
+    preferredWidth="800" preferredHeight="600"
+>
+
+    <bxml:script>
+    <![CDATA[
+    importPackage(java.lang);    // for System
+
+    System.out.println("This (Test) application has to be run with --maximized=true, to test the current issue");
+    System.out.println("After, run even with --fullScreen=true, and finally maybe with a combination of both ...");
+    ]]>
+    </bxml:script>
+
+    <Border>
+        <BoxPane styles="{padding:4, horizontalAlignment:'center', verticalAlignment:'center'}">
+            <PushButton bxml:id="exitButton" buttonData="Click to Exit">
+                <buttonPressListeners>
+                function buttonPressed(button) {
+                    System.out.println("Exiting from application now.");
+                    System.exit(0);
+                }
+                </buttonPressListeners>
+            </PushButton>
+        </BoxPane>
+    </Border>
+
+</Window>