test fixes

This commit is contained in:
Shish 2012-03-09 18:56:06 +00:00
parent bbbc92418d
commit 5d3d4e8d76
2 changed files with 3 additions and 3 deletions

View File

@ -99,8 +99,8 @@ class IndexTest extends ShimmieWebTestCase {
$this->get_page("post/list/filename=screenshot/1"); $this->get_page("post/list/filename=screenshot/1");
$this->assert_title(new PatternExpectation("/^Image $image_id_1: /")); $this->assert_title(new PatternExpectation("/^Image $image_id_1: /"));
$this->assert_no_text("No Images Found"); $this->assert_no_text("No Images Found");
$this->get_page("post/list/tags=4/1"); $this->get_page("post/list/tags=3/1");
$this->assert_title("tags=4"); $this->assert_title("tags=3");
$this->assert_no_text("No Images Found"); $this->assert_no_text("No Images Found");
$this->get_page("post/list/ext=jpg/1"); $this->get_page("post/list/ext=jpg/1");
$this->assert_title("ext=jpg"); $this->assert_title("ext=jpg");

View File

@ -27,7 +27,7 @@ class ViewTest extends ShimmieWebTestCase {
$this->assert_title('Image not found'); $this->assert_title('Image not found');
# note: skips image #2 # note: skips image #2
$this->get_page("post/view/$image_id_1?search=test"); $this->get_page("post/view/$image_id_1?search=test"); // FIXME: assumes niceurls
$this->click("Prev"); $this->click("Prev");
$this->assert_title("Image $image_id_3: test"); $this->assert_title("Image $image_id_3: test");