diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-28 06:07:27 +0800 |
---|---|---|
committer | Gallery Role Account <gallery@menalto.com> | 2009-05-28 11:07:06 +0800 |
commit | b245e3475f66c94afb94f8b2287bf0185a343732 (patch) | |
tree | a34b000f90311a42cc689af1785bb0586a334de8 /modules/gallery/tests/selenium | |
parent | b7a193cc19c7ac3ec67fa297b574fcd6caefe617 (diff) |
Restructure things so that the application is now just another module.
Kohana makes this type of transition fairly straightforward in that
all controllers/helpers/etc are still located in the cascading
filesystem without any extra effort, except that I've temporarily
added a hack to force modules/gallery into the module path.
Rename what's left of "core" to be "application" so that it conforms
more closely to the Kohana standard (basically, just
application/config/config.php which is the minimal thing that you need
in the application directory)
There's still considerable work left to be done here.
Signed-off-by: Gallery Role Account <gallery@menalto.com>
Diffstat (limited to 'modules/gallery/tests/selenium')
-rw-r--r-- | modules/gallery/tests/selenium/Add_Album.html | 52 | ||||
-rw-r--r-- | modules/gallery/tests/selenium/Add_Comment.html | 52 | ||||
-rw-r--r-- | modules/gallery/tests/selenium/Add_Item.html | 62 | ||||
-rw-r--r-- | modules/gallery/tests/selenium/Login.html | 47 |
4 files changed, 213 insertions, 0 deletions
diff --git a/modules/gallery/tests/selenium/Add_Album.html b/modules/gallery/tests/selenium/Add_Album.html new file mode 100644 index 00000000..ccd4d0b7 --- /dev/null +++ b/modules/gallery/tests/selenium/Add_Album.html @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>AddAlbum</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">AddAlbum</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/index.php/albums/1</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Add album</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name</td> + <td>seleniumtest</td> +</tr> +<tr> + <td>type</td> + <td>title</td> + <td>Selenium Test Album</td> +</tr> +<tr> + <td>type</td> + <td>description</td> + <td>Test</td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Selenium Test Album</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/modules/gallery/tests/selenium/Add_Comment.html b/modules/gallery/tests/selenium/Add_Comment.html new file mode 100644 index 00000000..b4b96ed2 --- /dev/null +++ b/modules/gallery/tests/selenium/Add_Comment.html @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>Add comment</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Add comment</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/index.php/albums/1</td> + <td></td> +</tr> +<tr> + <td>clickAndWait</td> + <td>gPhotoId-2</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>gAuthor</td> + <td>Test</td> +</tr> +<tr> + <td>type</td> + <td>gEmail</td> + <td>test@gmail.com</td> +</tr> +<tr> + <td>type</td> + <td>gText</td> + <td>This is a selenium test comment.</td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='submit']</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>This is a selenium test comment.</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/modules/gallery/tests/selenium/Add_Item.html b/modules/gallery/tests/selenium/Add_Item.html new file mode 100644 index 00000000..741dff65 --- /dev/null +++ b/modules/gallery/tests/selenium/Add_Item.html @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>AddItem</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">AddItem</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/index.php/albums/1</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Add an item</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name</td> + <td>seleniumitem.jpg</td> +</tr> +<tr> + <td>type</td> + <td>title</td> + <td>Selenium Item</td> +</tr> +<tr> + <td>type</td> + <td>description</td> + <td>Test item</td> +</tr> +<tr> + <td>type</td> + <td>file</td> + <td>/Users/ckieffer/Sites/gallery3.0/core/tests/images/DSC_0003.jpg</td> +</tr> +<tr> + <td>click</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=X</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Selenium Item</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/modules/gallery/tests/selenium/Login.html b/modules/gallery/tests/selenium/Login.html new file mode 100644 index 00000000..5e17a3c7 --- /dev/null +++ b/modules/gallery/tests/selenium/Login.html @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>Login</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Login</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/index.php/albums/1</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>gLoginLink</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>gName</td> + <td>admin</td> +</tr> +<tr> + <td>type</td> + <td>gPassword</td> + <td>admin</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>//button[@type='button']</td> + <td></td> +</tr> +<tr> + <td>clickAndWait</td> + <td>gUserProfileLink</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> |