chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc
// Tests that right-clicking a correct word does not add any items.
Tests that right-clicking a correct word does not add any items.
Tests that right - clicking a correct word does not add any items .
IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest, InitMenuWithCorrectWord) {
  scoped_ptr<MockRenderViewContextMenu> menu(new MockRenderViewContextMenu);
  scoped_ptr<SpellingMenuObserver> observer(
      new SpellingMenuObserver(menu.get()));
  menu->SetObserver(observer.get());
  content::ContextMenuParams params;
  params.is_editable = true;
  observer->InitMenu(params);
  EXPECT_EQ(static_cast<size_t>(0), menu->GetMenuSize());
}
IN_PROC_BROWSER_TEST_F ( SpellingMenuObserverTest , InitMenuWithCorrectWord ) { scoped_ptr < MockRenderViewContextMenu > menu ( new MockRenderViewContextMenu ) ; scoped_ptr < SpellingMenuObserver > observer ( new SpellingMenuObserver ( menu . get ( ) ) ) ; menu -> SetObserver ( observer . get ( ) ) ; content :: ContextMenuParams params ; params . is_editable = true ; observer -> InitMenu ( params ) ; EXPECT_EQ ( static_cast < size_t > ( 0 ) , menu -> GetMenuSize ( ) ) ; }
Tests that right-clicking a correct word does not add any items.
Tests that right - clicking a correct word does not add any items .