incubator-photark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r939943 - in /incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui: FF3TestBrowser.java IE7TestBrowser.java IE8TestBrowser.java
Date Sat, 01 May 2010 08:12:53 GMT
Author: avd
Date: Sat May  1 08:12:53 2010
New Revision: 939943

URL: http://svn.apache.org/viewvc?rev=939943&view=rev
Log:
Fixing test cases to avoid issues when album cover picture read in different order.Also fixed
the missing apache Licenses

Modified:
    incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/FF3TestBrowser.java
    incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE7TestBrowser.java
    incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE8TestBrowser.java

Modified: incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/FF3TestBrowser.java
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/FF3TestBrowser.java?rev=939943&r1=939942&r2=939943&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/FF3TestBrowser.java
(original)
+++ incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/FF3TestBrowser.java
Sat May  1 08:12:53 2010
@@ -1,3 +1,22 @@
+/*
+ * 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 org.apache.photark.ui;
 
 import static org.junit.Assert.assertFalse;
@@ -25,8 +44,6 @@ import com.gargoylesoftware.htmlunit.htm
 import com.gargoylesoftware.htmlunit.html.HtmlTable;
 
 
-
-
 public class FF3TestBrowser {
 
 	public static WebClient webClient;
@@ -97,7 +114,7 @@ public class FF3TestBrowser {
 		Thread.sleep(3000);
 		//testing whether the expected changes has happened
 		assertTrue(select.asText().contains("boston"));
-		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
+		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc"));
 		
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00368.jpg"));

Modified: incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE7TestBrowser.java
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE7TestBrowser.java?rev=939943&r1=939942&r2=939943&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE7TestBrowser.java
(original)
+++ incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE7TestBrowser.java
Sat May  1 08:12:53 2010
@@ -1,3 +1,22 @@
+/*
+ * 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 org.apache.photark.ui;
 
 import static org.junit.Assert.assertFalse;
@@ -25,8 +44,6 @@ import com.gargoylesoftware.htmlunit.htm
 import com.gargoylesoftware.htmlunit.html.HtmlTable;
 
 
-
-
 public class IE7TestBrowser {
 
 	public static WebClient webClient;
@@ -96,7 +113,7 @@ public class IE7TestBrowser {
 		Thread.sleep(3000);
 		//testing whether the expected changes has happened
 		assertTrue(select.asText().contains("boston"));
-		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
+		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc"));
 		
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00368.jpg"));

Modified: incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE8TestBrowser.java
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE8TestBrowser.java?rev=939943&r1=939942&r2=939943&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE8TestBrowser.java
(original)
+++ incubator/photark/trunk/photark-ui/src/test/java/org/apache/photark/ui/IE8TestBrowser.java
Sat May  1 08:12:53 2010
@@ -1,3 +1,22 @@
+/*
+ * 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 org.apache.photark.ui;
 
 import static org.junit.Assert.assertFalse;
@@ -25,8 +44,6 @@ import com.gargoylesoftware.htmlunit.htm
 import com.gargoylesoftware.htmlunit.html.HtmlTable;
 
 
-
-
 public class IE8TestBrowser {
 
 	public static WebClient webClient;
@@ -96,7 +113,7 @@ public class IE8TestBrowser {
 		Thread.sleep(3000);
 		//testing whether the expected changes has happened
 		assertTrue(select.asText().contains("boston"));
-		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
+		assertTrue(page.getHtmlElementById("albumCover").asXml().contains("photark/gallery/boston/dsc"));
 		
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00376.jpg"));
 		assertTrue(page.getHtmlElementById("adminTableGallery").asXml().contains("photark/gallery/boston/dsc00368.jpg"));



Mime
View raw message