Open ltilve opened 9 years ago
There are still some problems by turning the browsertest to BrowserWithTestWindowTest browser_action_testutil Using the approach of existing unittest at e7f7bed
[ RUN ] SidebarTest.CreateSidebar
Received signal 11
Now the browsertests are also checking the proper behaviour with several extensions df0dcfe284bff82562972a2503408827b9347016 Apart from other issues with the unittests and BrowserWithTestWindowTest, it seems that the cause for is_showing_popup failing(), even for the case of creating the extension and setting open_in_popup:true, is because the created extension was failing to have a proper default_popup.
Having now again all the checks done using unittests seems to have some problems, as we were creating manually the sidebar using the CreateSidebar(browser()->tab_strip_model()->GetActiveWebContents()) of the former sidebarManager. As we don't have it any more, ExtensionActionViewController::ExecuteAction returns ExtensionAction::ACTION_NONE due to !(web_contents) so no latter TriggerSidebar|PopupWithUrl is called.
The unittest that are not using sidebar_manager are at https://github.com/ltilve/chromium/commit/3fe7d25f4657ae53c86fc80785e345dfc0878977
By the comments from Devlin https://codereview.chromium.org/1168383002/#msg20
Also review if we can manage to have the tests running inside of unittests instead of the browser ones