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/06/07 18:39:24 UTC

svn commit: r1347708 - in /pivot/branches/2.0.x/tests/src/org/apache/pivot/tests: table_view_test.bxml table_view_test2.bxml

Author: smartini
Date: Thu Jun  7 16:39:24 2012
New Revision: 1347708

URL: http://svn.apache.org/viewvc?rev=1347708&view=rev
Log:
fix image load in this bxml test (backport from trunk)

Modified:
    pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test.bxml
    pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test2.bxml

Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test.bxml?rev=1347708&r1=1347707&r2=1347708&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test.bxml Thu Jun  7 16:39:24 2012
@@ -20,7 +20,8 @@ limitations under the License.
     xmlns:bxml="http://pivot.apache.org/bxml"
     xmlns:collections="org.apache.pivot.collections"
     xmlns:content="org.apache.pivot.wtk.content"
-    xmlns="org.apache.pivot.wtk">
+    xmlns="org.apache.pivot.wtk"
+>
     <bxml:script>
     <![CDATA[
     importPackage(java.net);
@@ -32,7 +33,13 @@ limitations under the License.
     var b = true;
     var n = 100.25;
     var d = new CalendarDate();
+    var location = new java.io.File("bin/" // add this to run from inside eclipse ...
+        + "org/apache/pivot/tests" // current package, view as folders
+        // + "/go-home.png" // image name
+    ).toURI().toURL();
+    java.lang.System.out.println("location for the image to load = \"" + location + "\"");
     var i = Image.load(new URL(location, "go-home.png"));
+    java.lang.System.out.println("image = " + i);
     ]]>
     </bxml:script>
 

Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test2.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test2.bxml?rev=1347708&r1=1347707&r2=1347708&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test2.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/table_view_test2.bxml Thu Jun  7 16:39:24 2012
@@ -20,7 +20,8 @@ limitations under the License.
     xmlns:bxml="http://pivot.apache.org/bxml"
     xmlns:collections="org.apache.pivot.collections"
     xmlns:content="org.apache.pivot.wtk.content"
-    xmlns="org.apache.pivot.wtk">
+    xmlns="org.apache.pivot.wtk"
+>
     <ScrollPane horizontalScrollBarPolicy="fill_to_capacity">
         <TableView bxml:id="tableView" styles="{variableRowHeight:true, backgroundColor:'#ffeeee'}">
             <columns>