Making tests work again. Next up will be fixing test failures. (Actually next

up will be making the tests actually test something, and then fixing that when
they break.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1050 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2010-11-08 19:44:11 +00:00
parent 2a61ecf169
commit 906f69a392
183 changed files with 79 additions and 40 deletions
@@ -26,20 +26,15 @@ import java.util.Iterator;
import java.io.IOException;
import junit.framework.Test;
import junit.framework.TestCase;
import org.junit.*;
import static org.junit.Assert.*;
import com.threerings.media.tile.TileSet;
public class XMLTileSetParserTest extends TestCase
public class XMLTileSetParserTest
{
public XMLTileSetParserTest ()
{
super(XMLTileSetParserTest.class.getName());
}
@Override
public void runTest ()
@Test
public void testRuleSets ()
{
HashMap<String, TileSet> sets = new HashMap<String, TileSet>();
@@ -56,8 +51,8 @@ public class XMLTileSetParserTest extends TestCase
// print them out
Iterator<TileSet> iter = sets.values().iterator();
while (iter.hasNext()) {
iter.next();
// System.out.println(iter.next());
// iter.next();
System.out.println(iter.next());
}
} catch (IOException ioe) {
@@ -66,17 +61,5 @@ public class XMLTileSetParserTest extends TestCase
}
}
public static Test suite ()
{
return new XMLTileSetParserTest();
}
public static void main (String[] args)
{
XMLTileSetParserTest test = new XMLTileSetParserTest();
test.runTest();
}
protected static final String TILESET_PATH =
"rsrc/media/tile/tools/xml/tilesets.xml";
protected static final String TILESET_PATH = "rsrc/media/tile/tools/xml/tilesets.xml";
}
@@ -0,0 +1,76 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: actions.xml 1548 2002-06-26 23:53:07Z mdb $ -->
<!-- test component action definitions -->
<actions>
<!-- these are isometrically offset (SOUTH became SOUTHWEST, etc.) -->
<action name="standing">
<framesPerSecond>5</framesPerSecond>
<origin>50,112</origin>
<orients>SW, W, NW, N, NE, E, SE, S</orients>
<tileset>
<heights>160, 160, 160, 160, 160, 160, 160, 160</heights>
<widths>100, 100, 100, 100, 100, 100, 100, 100</widths>
<tileCounts>1, 1, 1, 1, 1, 1, 1, 1</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
<action name="walking">
<framesPerSecond>7.3</framesPerSecond>
<origin>50,112</origin>
<orients>SW, W, NW, N, NE, E, SE, S</orients>
<tileset>
<heights>160, 160, 160, 160, 160, 160, 160, 160</heights>
<widths>100, 100, 100, 100, 100, 100, 100, 100</widths>
<tileCounts>6, 6, 6, 6, 6, 6, 6, 6</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
<action name="behind_back">
<framesPerSecond>5</framesPerSecond>
<origin>50,112</origin>
<orients>SW, W, NW, N, NE, E, SE, S</orients>
<tileset>
<heights>160, 160, 160, 160, 160, 160, 160, 160</heights>
<widths>100, 100, 100, 100, 100, 100, 100, 100</widths>
<tileCounts>1, 1, 1, 1, 1, 1, 1, 1</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
<!-- these are not isometrically offset -->
<action name="sailing">
<framesPerSecond>8</framesPerSecond>
<origin>87,80</origin>
<orients>
S, SSW, SW, WSW, W, WNW, NW, NNW, N, NNE, NE, ENE, E, ESE, SE, SSE
</orients>
<tileset>
<widths>168, 168, 168, 168, 168, 168, 168, 168</widths>
<heights>128, 128, 128, 128, 128, 128, 128, 128</heights>
<tileCounts>12, 12, 12, 12, 12, 12, 12, 12</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
<action name="sailing_small">
<framesPerSecond>8</framesPerSecond>
<origin>42,34</origin>
<orients>
S, SSW, SW, WSW, W, WNW, NW, NNW, N, NNE, NE, ENE, E, ESE, SE, SSE
</orients>
<tileset>
<widths>84, 84, 84, 84, 84, 84, 84, 84</widths>
<heights>64, 64, 64, 64, 64, 64, 64, 64</heights>
<tileCounts>2, 2, 2, 2, 2, 2, 2, 2</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
</actions>
@@ -0,0 +1,32 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: classes.xml 1160 2002-03-27 21:49:40Z mdb $ -->
<!-- test component class definitions -->
<classes>
<!-- male character component classes -->
<class name="male/feet" renderPriority="0"/>
<class name="male/legs" renderPriority="1"/>
<class name="male/hand_left" renderPriority="2"/>
<class name="male/hand_right" renderPriority="2"/>
<class name="male/torso" renderPriority="3"/>
<class name="male/head" renderPriority="4"/>
<class name="male/eyepatch" renderPriority="5"/>
<class name="male/hair" renderPriority="6"/>
<class name="male/hat" renderPriority="7"/>
<class name="male/familiars" renderPriority="8"/>
<!-- female character component classes -->
<class name="female/feet" renderPriority="0"/>
<class name="female/legs" renderPriority="1"/>
<class name="female/hand_left" renderPriority="2"/>
<class name="female/hand_right" renderPriority="2"/>
<class name="female/torso" renderPriority="3"/>
<class name="female/head" renderPriority="4"/>
<class name="female/eyepatch" renderPriority="5"/>
<class name="female/hair" renderPriority="6"/>
<class name="female/hat" renderPriority="7"/>
<class name="female/familiars" renderPriority="8"/>
<!-- vessel classes -->
<class name="navsail" renderPriority="0"/>
</classes>
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Some files were not shown because too many files have changed in this diff Show More