     # we click the top left black group; the stones change appearance to show
     # they are considered dead, and the scores change
     casper.thenClick (pointSelector 1, 0), =>
-      imageSrc11 = @imageSrc 1, 1
-      test.assertNotEquals imageSrc11, originalImageSrc11,
-        "black stone image source is not still #{originalImageSrc11}"
-      imageSrc22 = @imageSrc 2, 2
-      test.assertNotEquals imageSrc22, originalImageSrc22,
-        "empty point image source is not still #{originalImageSrc22}"
+      @assertPointIsDeadBlack test, 1, 1
+      @assertPointIsWhiteTerritory test, 2, 2
       @assertGeneralPointCounts test,
         label: "black stones marked dead"
         noscore: 7 + 9  # just white and black stones at the border

class PassAndScoringTest extends BrowserTest
  names: ['PassAndScoringTest', 'pass', 'score', 'scoring']
  description: "pass moves and scoring system"
  numTests: 29
  testBody: (test) =>
    BLACK_EMAIL = 'black@schwarz.de'
    WHITE_EMAIL = 'white@wit.nl'


serverUrl = "#{host}#{portString}"
casper.echo "Testing against server at #{serverUrl}"

debug_dump_html = () ->
  "Occasionally can be useful during debugging just to dump the current HTML."
  casper.echo (casper.getHTML())


# test inventory management

