[openintents] r4257 committed - OI Shopping List Test: patch by Alex Yaremenko: test to rename a list ...

1 view
Skip to first unread message

openi...@googlecode.com

unread,
Apr 15, 2012, 5:02:22 AM4/15/12
to openintents...@googlegroups.com
Revision: 4257
Author: peli0101
Date: Sun Apr 15 02:02:12 2012
Log: OI Shopping List Test: patch by Alex Yaremenko: test to rename a
list item.
https://groups.google.com/forum/#!msg/openintents/9mT2IMWZYS8
(+ update readme files)
http://code.google.com/p/openintents/source/detail?r=4257

Modified:
/trunk/shoppinglist/ShoppingList/readme.txt
/trunk/shoppinglist/ShoppingListTest/readme.txt

/trunk/shoppinglist/ShoppingListTest/src/org/openintents/shopping/test/TestShoppingActivity.java

=======================================
--- /trunk/shoppinglist/ShoppingList/readme.txt Sat Mar 17 15:47:24 2012
+++ /trunk/shoppinglist/ShoppingList/readme.txt Sun Apr 15 02:02:12 2012
@@ -26,6 +26,7 @@
date: ?

- Sort list of lists (patch by Stanley F. for Google Summer of Code 2012)
+- Set cursor to end in "rename list" dialog (patch by Alex Yaremenko)

----------------
release 1.6
=======================================
--- /trunk/shoppinglist/ShoppingListTest/readme.txt Sat Mar 31 04:18:48 2012
+++ /trunk/shoppinglist/ShoppingListTest/readme.txt Sun Apr 15 02:02:12 2012
@@ -25,3 +25,4 @@

- move item to another list (patch by Nick Nikolaou).
- fix testIntentBarcodeScanner test (patch by Stanley F).
+- test to rename a list item (patch by Alex Yaremenko)
=======================================
---
/trunk/shoppinglist/ShoppingListTest/src/org/openintents/shopping/test/TestShoppingActivity.java
Sat Mar 31 04:28:54 2012
+++
/trunk/shoppinglist/ShoppingListTest/src/org/openintents/shopping/test/TestShoppingActivity.java
Sun Apr 15 02:02:12 2012
@@ -307,4 +307,26 @@

}

-}
+ public void testRenameItem()
+ {
+ int rndInt = random.nextInt(10000);
+ String itemname = "not_rename" + rndInt;
+ String newitemname = "rename" + rndInt;
+ String add = getAppString(org.openintents.shopping.R.string.add);
+
+ solo.enterText(0, itemname);
+ solo.clickOnButton(add);
+
+ assertTrue(solo.searchText(itemname));
+
+ solo.clickOnText(itemname);
+
+ assertTrue(solo.searchEditText(itemname));
+
+ solo.clearEditText(0);
+ solo.enterText(0, newitemname);
+ solo.clickOnButton(0);
+
+ assertTrue(solo.searchText(newitemname));
+ }
+}

Reply all
Reply to author
Forward
0 new messages