import unittest
import time
from volvox_biodb_test import AbstractVolvoxBiodbTest

class EmbeddedModeTest( AbstractVolvoxBiodbTest, unittest.TestCase ):
    def baseURL( self ):
        if not self.base_url:
            self.base_url = super( AbstractVolvoxBiodbTest, self ).baseURL() + '?nav=0&tracklist=0&overview=0&tracks=volvox_microarray.bw_density%2Cvolvox_microarray.bw_xyplot&loc=ctgA'
        return self.base_url

    def test_volvox( self ):
        time.sleep(0.5)
        self.assert_no_js_errors()
        self.browser.close()

@@ -458,22 +458,87 @@
     
-time.sleep(0.5
+self.waits_for_track(%22BigWig Density%22)%0A        self.waits_for_track(%22BigWig XY%22
 )%0A  

remove time.sleep from embedded test