You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2009/12/15 11:30:49 UTC
svn commit: r890746 -
/incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java
Author: scottbw
Date: Tue Dec 15 10:30:49 2009
New Revision: 890746
URL: http://svn.apache.org/viewvc?rev=890746&view=rev
Log:
Updated conformance tests "bl" and "bm" as per W3C as discussed under WOOKIE-58 - our error report was accepted, and we now pass these two tests.
Modified:
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java
Modified: incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java?rev=890746&r1=890745&r2=890746&view=diff
==============================================================================
--- incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java (original)
+++ incubator/wookie/trunk/src-tests/org/apache/wookie/tests/conformance/PackagingAndConfiguration.java Tue Dec 15 10:30:49 2009
@@ -1078,16 +1078,19 @@
Element widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-FAFYMEGELU/002/bl.wgt");
List icons = widget.getChildren("icon");
assertTrue(icons.size() == 2);
- assertEquals("locales/en/icon.jpg",getLocalIconPath(widget,((Element)icons.get(0))));
- assertEquals("icon.png",getLocalIconPath(widget,((Element)icons.get(1))));
+ String icon1 = getLocalIconPath(widget,((Element)icons.get(0)));
+ String icon2 = getLocalIconPath(widget,((Element)icons.get(1)));
+ assertTrue((icon1.equals("locales/en/icon.jpg") && (icon2.equals("icon.png"))) || (icon2.equals("locales/en/icon.jpg") && (icon1.equals("icon.png"))));
}
@Test
public void bm(){
Element widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-FAFYMEGELU/003/bm.wgt");
List icons = widget.getChildren("icon");
assertTrue(icons.size() == 2);
- assertEquals("locales/en/icon.jpg",getLocalIconPath(widget,((Element)icons.get(0))));
- assertEquals("icon.png",getLocalIconPath(widget,((Element)icons.get(1))));
+ String icon1 = getLocalIconPath(widget,((Element)icons.get(0)));
+ String icon2 = getLocalIconPath(widget,((Element)icons.get(1)));
+ assertTrue((icon1.equals("locales/en/icon.jpg") && (icon2.equals("icon.png"))) || (icon2.equals("locales/en/icon.jpg") && (icon1.equals("icon.png"))));
+
}
@Test
public void bn(){