New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 658124 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Consider creating a ViewsTestBase subclass for interactive uitest

Project Member Reported by warx@chromium.org, Oct 21 2016

Issue description

For example, WidgetTestInteractive subclasses from WidgetTest (which subclasses from ViewTestBase)

There are some common works for the setup.
      gl::GLSurfaceTestSupport::InitializeOneOff();
      ui::RegisterPathProvider();
      base::FilePath ui_test_pak_path;
      ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
      ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);

If we can extract the common setup work to a new subclass, which can save the duplicate code lines and make writing interactive_ui_tests better.

See also,
src/ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc
src/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
src/ui/views/corewm/desktop_capture_controller_unittest.cc
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 25 2016

Comment 2 by warx@chromium.org, Oct 25 2016

Status: Fixed (was: Assigned)

Sign in to add a comment