OLD | NEW |
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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 std::string("window.location = \"") + url.spec() + "\"")); | 1244 std::string("window.location = \"") + url.spec() + "\"")); |
1245 observer.Wait(); | 1245 observer.Wait(); |
1246 | 1246 |
1247 ASSERT_TRUE(main_web_contents()->GetURL(). | 1247 ASSERT_TRUE(main_web_contents()->GetURL(). |
1248 SchemeIs(content::kChromeDevToolsScheme)); | 1248 SchemeIs(content::kChromeDevToolsScheme)); |
1249 ASSERT_EQ(url, GetInspectedTab()->GetURL()); | 1249 ASSERT_EQ(url, GetInspectedTab()->GetURL()); |
1250 CloseDevToolsWindow(); | 1250 CloseDevToolsWindow(); |
1251 } | 1251 } |
1252 | 1252 |
1253 // Tests that toolbox window is loaded when DevTools window is undocked. | 1253 // Tests that toolbox window is loaded when DevTools window is undocked. |
1254 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestToolboxLoadedUndocked) { | 1254 // Crashes on Linux only. https://crbug.com/702641 |
| 1255 #if defined(OS_LINUX) |
| 1256 #define MAYBE_TestToolboxLoadedUndocked DISABLED_TestToolboxLoadedUndocked |
| 1257 #else |
| 1258 #define MAYBE_TestToolboxLoadedUndocked TestToolboxLoadedUndocked |
| 1259 #endif |
| 1260 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestToolboxLoadedUndocked) { |
1255 OpenDevToolsWindow(kDebuggerTestPage, false); | 1261 OpenDevToolsWindow(kDebuggerTestPage, false); |
1256 ASSERT_TRUE(toolbox_web_contents()); | 1262 ASSERT_TRUE(toolbox_web_contents()); |
1257 DevToolsWindow* on_self = | 1263 DevToolsWindow* on_self = |
1258 DevToolsWindowTesting::OpenDevToolsWindowSync(main_web_contents(), false); | 1264 DevToolsWindowTesting::OpenDevToolsWindowSync(main_web_contents(), false); |
1259 ASSERT_FALSE(DevToolsWindowTesting::Get(on_self)->toolbox_web_contents()); | 1265 ASSERT_FALSE(DevToolsWindowTesting::Get(on_self)->toolbox_web_contents()); |
1260 DevToolsWindowTesting::CloseDevToolsWindowSync(on_self); | 1266 DevToolsWindowTesting::CloseDevToolsWindowSync(on_self); |
1261 CloseDevToolsWindow(); | 1267 CloseDevToolsWindow(); |
1262 } | 1268 } |
1263 | 1269 |
1264 // Tests that toolbox window is not loaded when DevTools window is docked. | 1270 // Tests that toolbox window is not loaded when DevTools window is docked. |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); | 1594 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); |
1589 | 1595 |
1590 DevToolsWindowTesting::CloseDevToolsWindowSync(window); | 1596 DevToolsWindowTesting::CloseDevToolsWindowSync(window); |
1591 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); | 1597 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); |
1592 } | 1598 } |
1593 | 1599 |
1594 // Tests scripts panel showing. | 1600 // Tests scripts panel showing. |
1595 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { | 1601 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { |
1596 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); | 1602 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); |
1597 } | 1603 } |
OLD | NEW |