Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2756843002: Disable flaky DevToolsBeforeUnloadTest.TestUndockedDevToolsClose on Linux (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 // we try to close the inspected browser. 722 // we try to close the inspected browser.
723 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, 723 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
724 TestDockedDevToolsInspectedBrowserClose) { 724 TestDockedDevToolsInspectedBrowserClose) {
725 RunBeforeUnloadSanityTest(true, base::Bind( 725 RunBeforeUnloadSanityTest(true, base::Bind(
726 &DevToolsBeforeUnloadTest::CloseInspectedBrowser, 726 &DevToolsBeforeUnloadTest::CloseInspectedBrowser,
727 base::Unretained(this))); 727 base::Unretained(this)));
728 } 728 }
729 729
730 // Tests that BeforeUnload event gets called on undocked devtools if 730 // Tests that BeforeUnload event gets called on undocked devtools if
731 // we try to close them. 731 // we try to close them.
732 // Flaky on Windows. http://crbug.com/702171 732 // Flaky on Windows and Linux. http://crbug.com/702171
733 #if defined(OS_WIN) 733 #if defined(OS_WIN) || defined(OS_LINUX)
734 #define MAYBE_TestUndockedDevToolsClose DISABLED_TestUndockedDevToolsClose 734 #define MAYBE_TestUndockedDevToolsClose DISABLED_TestUndockedDevToolsClose
735 #else 735 #else
736 #define MAYBE_TestUndockedDevToolsClose TestUndockedDevToolsClose 736 #define MAYBE_TestUndockedDevToolsClose TestUndockedDevToolsClose
737 #endif 737 #endif
738 738
739 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, 739 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
740 MAYBE_TestUndockedDevToolsClose) { 740 MAYBE_TestUndockedDevToolsClose) {
741 RunBeforeUnloadSanityTest(false, base::Bind( 741 RunBeforeUnloadSanityTest(false, base::Bind(
742 &DevToolsBeforeUnloadTest::CloseDevToolsWindowAsync, 742 &DevToolsBeforeUnloadTest::CloseDevToolsWindowAsync,
743 base::Unretained(this)), false); 743 base::Unretained(this)), false);
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); 1549 RunTestFunction(window, "testWindowInitializedOnNavigateBack");
1550 1550
1551 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 1551 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1552 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); 1552 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory);
1553 } 1553 }
1554 1554
1555 // Tests scripts panel showing. 1555 // Tests scripts panel showing.
1556 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { 1556 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) {
1557 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); 1557 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL);
1558 } 1558 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698