Lines Matching refs:item1
192 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1");
197 Assert.assertTrue("Item was not set to checkable", item1.isCheckable());
198 item1.setChecked(true);
199 Assert.assertTrue("Item did not get checked", item1.isChecked());
203 Assert.assertFalse("Item was not unchecked due to exclusive checkable", item1.isChecked());
207 Assert.assertTrue("Item was not set to checkable", item1.isCheckable());
208 item1.setChecked(false);
209 Assert.assertFalse("Item did not get unchecked", item1.isChecked());
210 item1.setChecked(true);
211 Assert.assertTrue("Item did not get checked", item1.isChecked());
214 Assert.assertTrue("Item was unchecked when it shouldnt have been", item1.isChecked());
219 final MenuItem item1 = mMenu.add(0, 1, 0, "item1");
223 Assert.assertTrue("Item did not start as visible", item1.isVisible());
227 item1.setVisible(false);
228 Assert.assertFalse("Item did not become invisible", item1.isVisible());
237 final MenuItem item1 = subMenu.add(0, 1, 0, "item1");
241 Assert.assertEquals(item1, mMenu.findItem(1));
248 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1");
255 Assert.assertEquals(item1, mMenu.findItem(1));