Index: chessboard.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chessboard/chessboard.test,v
retrieving revision 1.4
diff -u -p -r1.4 chessboard.test
--- chessboard.test	26 Dec 2010 11:09:27 -0000	1.4
+++ chessboard.test	27 Dec 2010 20:41:43 -0000
@@ -27,11 +27,11 @@ class ChessboardFilterTestCase extends D
 
     $image_base = file_create_url(drupal_get_path('module', 'chessboard') . '/default');
 
-    $this->expected['starting position'] = '<div class="chessboard"><div class="row"><img src="' . $image_base . '/rdl.png" alt="r" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/ndd.png" alt="n" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/bdl.png" alt="b" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/qdd.png" alt="q" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/kdl.png" alt="k" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/bdd.png" alt="b" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/ndl.png" alt="n" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/rdd.png" alt="r" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/pdd.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdl.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdd.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdl.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdd.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdl.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdd.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdl.png" alt="p" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/pll.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pld.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pll.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pld.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pll.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pld.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pll.png" alt="P" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pld.png" alt="P" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/rld.png" alt="R" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/nll.png" alt="N" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/bld.png" alt="B" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/qll.png" alt="Q" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/kld.png" alt="K" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/bll.png" alt="B" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/nld.png" alt="N" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/rll.png" alt="R" title="" width="40" height="40" class="chessboard-square" /></div></div>';
+    $this->expected['starting position'] = '<div class="chessboard"><div class="row"><img class="chessboard-square" src="' . $image_base . '/rdl.png" width="40" height="40" alt="r" title="" /><img class="chessboard-square" src="' . $image_base . '/ndd.png" width="40" height="40" alt="n" title="" /><img class="chessboard-square" src="' . $image_base . '/bdl.png" width="40" height="40" alt="b" title="" /><img class="chessboard-square" src="' . $image_base . '/qdd.png" width="40" height="40" alt="q" title="" /><img class="chessboard-square" src="' . $image_base . '/kdl.png" width="40" height="40" alt="k" title="" /><img class="chessboard-square" src="' . $image_base . '/bdd.png" width="40" height="40" alt="b" title="" /><img class="chessboard-square" src="' . $image_base . '/ndl.png" width="40" height="40" alt="n" title="" /><img class="chessboard-square" src="' . $image_base . '/rdd.png" width="40" height="40" alt="r" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/pdd.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdl.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdd.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdl.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdd.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdl.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdd.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdl.png" width="40" height="40" alt="p" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/pll.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pld.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pll.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pld.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pll.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pld.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pll.png" width="40" height="40" alt="P" title="" /><img class="chessboard-square" src="' . $image_base . '/pld.png" width="40" height="40" alt="P" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/rld.png" width="40" height="40" alt="R" title="" /><img class="chessboard-square" src="' . $image_base . '/nll.png" width="40" height="40" alt="N" title="" /><img class="chessboard-square" src="' . $image_base . '/bld.png" width="40" height="40" alt="B" title="" /><img class="chessboard-square" src="' . $image_base . '/qll.png" width="40" height="40" alt="Q" title="" /><img class="chessboard-square" src="' . $image_base . '/kld.png" width="40" height="40" alt="K" title="" /><img class="chessboard-square" src="' . $image_base . '/bll.png" width="40" height="40" alt="B" title="" /><img class="chessboard-square" src="' . $image_base . '/nld.png" width="40" height="40" alt="N" title="" /><img class="chessboard-square" src="' . $image_base . '/rll.png" width="40" height="40" alt="R" title="" /></div></div>';
 
-    $this->expected['marked squares'] = '<div class="chessboard"><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/nld.png" alt="N" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/xxl.png" alt="x" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /></div></div>';
+    $this->expected['marked squares'] = '<div class="chessboard"><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/nld.png" width="40" height="40" alt="N" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/xxl.png" width="40" height="40" alt="x" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /></div></div>';
 
-    $this->expected['portion'] = '<div class="chessboard"><div class="border-top"><img src="' . $image_base . '/h.png" alt="" title="" width="40" height="4" class="chessboard-border-h" /><img src="' . $image_base . '/h.png" alt="" title="" width="40" height="4" class="chessboard-border-h" /><img src="' . $image_base . '/h.png" alt="" title="" width="40" height="4" class="chessboard-border-h" /><img src="' . $image_base . '/c.png" alt="" title="" width="4" height="4" class="chessboard-border-c" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/rdl.png" alt="r" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/kdd.png" alt="k" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/v.png" alt="" title="" width="4" height="40" class="chessboard-border-v" /></div><div class="row"><img src="' . $image_base . '/nll.png" alt="N" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdd.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/pdl.png" alt="p" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/v.png" alt="" title="" width="4" height="40" class="chessboard-border-v" /></div><div class="row"><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/l.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/d.png" alt="-" title="" width="40" height="40" class="chessboard-square" /><img src="' . $image_base . '/v.png" alt="" title="" width="4" height="40" class="chessboard-border-v" /></div></div>';
+    $this->expected['portion'] = '<div class="chessboard"><div class="border-top"><img class="chessboard-border-h" src="' . $image_base . '/h.png" width="40" height="4" alt="" title="" /><img class="chessboard-border-h" src="' . $image_base . '/h.png" width="40" height="4" alt="" title="" /><img class="chessboard-border-h" src="' . $image_base . '/h.png" width="40" height="4" alt="" title="" /><img class="chessboard-border-c" src="' . $image_base . '/c.png" width="4" height="4" alt="" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/rdl.png" width="40" height="40" alt="r" title="" /><img class="chessboard-square" src="' . $image_base . '/kdd.png" width="40" height="40" alt="k" title="" /><img class="chessboard-border-v" src="' . $image_base . '/v.png" width="4" height="40" alt="" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/nll.png" width="40" height="40" alt="N" title="" /><img class="chessboard-square" src="' . $image_base . '/pdd.png" width="40" height="40" alt="p" title="" /><img class="chessboard-square" src="' . $image_base . '/pdl.png" width="40" height="40" alt="p" title="" /><img class="chessboard-border-v" src="' . $image_base . '/v.png" width="4" height="40" alt="" title="" /></div><div class="row"><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/l.png" width="40" height="40" alt="-" title="" /><img class="chessboard-square" src="' . $image_base . '/d.png" width="40" height="40" alt="-" title="" /><img class="chessboard-border-v" src="' . $image_base . '/v.png" width="4" height="40" alt="" title="" /></div></div>';
 
     $privileged_user = $this->drupalCreateUser(array('administer filters'));
     $this->drupalLogin($privileged_user);
Index: chessboard_render.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chessboard/chessboard_render.php,v
retrieving revision 1.31
diff -u -p -r1.31 chessboard_render.php
--- chessboard_render.php	26 Dec 2010 11:09:27 -0000	1.31
+++ chessboard_render.php	27 Dec 2010 20:41:43 -0000
@@ -166,7 +166,6 @@ function template_preprocess_chessboard(
       }
     }
 
-    $group_attributes = array();
     foreach ($groups as $group) {
       if (!isset($size_attributes[$group])) {
         $size_attributes[$group] = array();
@@ -174,17 +173,16 @@ function template_preprocess_chessboard(
       if (!isset($class_attributes[$group])) {
         $class_attributes[$group] = array();
       }
-      $group_attributes[$group] = $size_attributes[$group] + $class_attributes[$group];
     }
 
     // Construct the translation table
 
     // Empty and marked squares
     $table_xhtml = array(
-      '-0' => theme('image', array('path' => chessboard_piece_filename('-', 0, $image_directory_path . '/'), 'alt' => '-', 'attributes' => array('src' => '', 'alt' => '-', 'title' => '') + $group_attributes['square'])),
-      '-1' => theme('image', array('path' => chessboard_piece_filename('-', 1, $image_directory_path . '/'), 'alt' => '-', 'attributes' => array('src' => '', 'alt' => '-', 'title' => '') + $group_attributes['square'])),
-      'x0' => theme('image', array('path' => chessboard_piece_filename('x', 0, $image_directory_path . '/'), 'alt' => 'x', 'attributes' => array('src' => '', 'alt' => 'x', 'title' => '') + $group_attributes['square'])),
-      'x1' => theme('image', array('path' => chessboard_piece_filename('x', 1, $image_directory_path . '/'), 'alt' => 'x', 'attributes' => array('src' => '', 'alt' => 'x', 'title' => '') + $group_attributes['square'])),
+      '-0' => theme('image', array('path' => chessboard_piece_filename('-', 0, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => '-', 'title' => '', 'attributes' => $class_attributes['square'])),
+      '-1' => theme('image', array('path' => chessboard_piece_filename('-', 1, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => '-',  'title' => '', 'attributes' => $class_attributes['square'])),
+      'x0' => theme('image', array('path' => chessboard_piece_filename('x', 0, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => 'x', 'title' => '', 'attributes' => $class_attributes['square'])),
+      'x1' => theme('image', array('path' => chessboard_piece_filename('x', 1, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => 'x', 'title' => '', 'attributes' => $class_attributes['square'])),
     );
 
     // Pieces
@@ -192,23 +190,23 @@ function template_preprocess_chessboard(
     for ($i=0; $i<6; $i++) {
       $piece = $pieces[$i];
       $table_xhtml += array(
-        strtoupper($piece) . '0' => theme('image', array('path' => chessboard_piece_filename(strtoupper($piece), 0, $image_directory_path . '/'), 'alt' => strtoupper($piece), 'attributes' => array('src' => '', 'alt' => strtoupper($piece), 'title' => '') + $group_attributes['square'])),
-        strtoupper($piece) . '1' => theme('image', array('path' => chessboard_piece_filename(strtoupper($piece), 1, $image_directory_path . '/'), 'alt' => strtoupper($piece), 'attributes' => array('src' => '', 'alt' => strtoupper($piece), 'title' => '') + $group_attributes['square'])),
-        $piece . '0' => theme('image', array('path' => chessboard_piece_filename($piece, 0, $image_directory_path . '/'), 'alt' => $piece, 'attributes' => array('src' => '', 'alt' => $piece, 'title' => '') + $group_attributes['square'])),
-        $piece . '1' => theme('image', array('path' => chessboard_piece_filename($piece, 1, $image_directory_path . '/'), 'alt' => $piece, 'attributes' => array('src' => '', 'alt' => $piece, 'title' => '') + $group_attributes['square'])),
+        strtoupper($piece) . '0' => theme('image', array('path' => chessboard_piece_filename(strtoupper($piece), 0, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => strtoupper($piece), 'title' => '', 'attributes' => $class_attributes['square'])),
+        strtoupper($piece) . '1' => theme('image', array('path' => chessboard_piece_filename(strtoupper($piece), 1, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => strtoupper($piece), 'title' => '', 'attributes' => $class_attributes['square'])),
+        $piece . '0' => theme('image', array('path' => chessboard_piece_filename($piece, 0, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => $piece, 'title' => '', 'attributes' => $class_attributes['square'])),
+        $piece . '1' => theme('image', array('path' => chessboard_piece_filename($piece, 1, $image_directory_path . '/'), 'width' => $size_attributes['square']['width'], 'height' => $size_attributes['square']['height'], 'alt' => $piece, 'title' => '', 'attributes' => $class_attributes['square'])),
       );
     }
 
     // Borders
     $table_xhtml += array(
-      'T' => theme('image', array('path' => chessboard_border_filename('T', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-h'])),
-      'B' => theme('image', array('path' => chessboard_border_filename('B', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-h'])),
-      'L' => theme('image', array('path' => chessboard_border_filename('L', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-v'])),
-      'R' => theme('image', array('path' => chessboard_border_filename('R', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-v'])),
-      'TL' => theme('image', array('path' => chessboard_border_filename('TL', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-c'])),
-      'TR' => theme('image', array('path' => chessboard_border_filename('TR', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-c'])),
-      'BL' => theme('image', array('path' => chessboard_border_filename('BL', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-c'])),
-      'BR' => theme('image', array('path' => chessboard_border_filename('BR', $image_directory_path . '/'), 'attributes' => array('src' => '', 'alt' => '', 'title' => '') + $group_attributes['border-c'])),
+      'T' => theme('image', array('path' => chessboard_border_filename('T', $image_directory_path . '/'), 'width' => $size_attributes['border-h']['width'], 'height' => $size_attributes['border-h']['height'], 'title' => '', 'attributes' => $class_attributes['border-h'])),
+      'B' => theme('image', array('path' => chessboard_border_filename('B', $image_directory_path . '/'), 'width' => $size_attributes['border-h']['width'], 'height' => $size_attributes['border-h']['height'], 'title' => '', 'attributes' => $class_attributes['border-h'])),
+      'L' => theme('image', array('path' => chessboard_border_filename('L', $image_directory_path . '/'), 'width' => $size_attributes['border-v']['width'], 'height' => $size_attributes['border-v']['height'], 'title' => '', 'attributes' => $class_attributes['border-v'])),
+      'R' => theme('image', array('path' => chessboard_border_filename('R', $image_directory_path . '/'), 'width' => $size_attributes['border-v']['width'], 'height' => $size_attributes['border-v']['height'], 'title' => '', 'attributes' => $class_attributes['border-v'])),
+      'TL' => theme('image', array('path' => chessboard_border_filename('TL', $image_directory_path . '/'), 'width' => $size_attributes['border-c']['width'], 'height' => $size_attributes['border-c']['height'], 'title' => '', 'attributes' => $class_attributes['border-c'])),
+      'TR' => theme('image', array('path' => chessboard_border_filename('TR', $image_directory_path . '/'), 'width' => $size_attributes['border-c']['width'], 'height' => $size_attributes['border-c']['height'], 'title' => '', 'attributes' => $class_attributes['border-c'])),
+      'BL' => theme('image', array('path' => chessboard_border_filename('BL', $image_directory_path . '/'), 'width' => $size_attributes['border-c']['width'], 'height' => $size_attributes['border-c']['height'], 'title' => '', $class_attributes['border-c'])),
+      'BR' => theme('image', array('path' => chessboard_border_filename('BR', $image_directory_path . '/'), 'width' => $size_attributes['border-c']['width'], 'height' => $size_attributes['border-c']['height'], 'title' => '', $class_attributes['border-c'])),
     );
     $tables_xhtml[$image_directory_path] = $table_xhtml;
   }
