| 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 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1939 #else | 1939 #else |
| 1940 #define MAYBE_TestScreenshotRecording TestScreenshotRecording | 1940 #define MAYBE_TestScreenshotRecording TestScreenshotRecording |
| 1941 #endif | 1941 #endif |
| 1942 IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests, | 1942 IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests, |
| 1943 MAYBE_TestScreenshotRecording) { | 1943 MAYBE_TestScreenshotRecording) { |
| 1944 RunTest("testScreenshotRecording", std::string()); | 1944 RunTest("testScreenshotRecording", std::string()); |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 // This test enables switches::kUseGpuInTests which causes false positives | 1947 // This test enables switches::kUseGpuInTests which causes false positives |
| 1948 // with MemorySanitizer. | 1948 // with MemorySanitizer. |
| 1949 // Flaky on Linux and Windows https://crbug.com/624215 | 1949 // Flaky on multiple platforms https://crbug.com/624215 |
| 1950 #if defined(MEMORY_SANITIZER) || defined(ADDRESS_SANITIZER) || \ | |
| 1951 defined(OS_WIN) || defined(OS_LINUX) | |
| 1952 #define MAYBE_TestLatencyInfoInstrumentation \ | |
| 1953 DISABLED_TestLatencyInfoInstrumentation | |
| 1954 #else | |
| 1955 #define MAYBE_TestLatencyInfoInstrumentation TestLatencyInfoInstrumentation | |
| 1956 #endif | |
| 1957 IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests, | 1950 IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests, |
| 1958 MAYBE_TestLatencyInfoInstrumentation) { | 1951 DISABLED_TestLatencyInfoInstrumentation) { |
| 1959 WebContents* web_contents = GetInspectedTab(); | 1952 WebContents* web_contents = GetInspectedTab(); |
| 1960 OpenDevToolsWindow(kLatencyInfoTestPage, false); | 1953 OpenDevToolsWindow(kLatencyInfoTestPage, false); |
| 1961 DispatchAndWait("startTimeline"); | 1954 DispatchAndWait("startTimeline"); |
| 1962 | 1955 |
| 1963 for (int i = 0; i < 3; ++i) { | 1956 for (int i = 0; i < 3; ++i) { |
| 1964 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove, | 1957 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove, |
| 1965 gfx::Point(30, 60)); | 1958 gfx::Point(30, 60)); |
| 1966 DispatchInPageAndWait("waitForEvent", "mousemove"); | 1959 DispatchInPageAndWait("waitForEvent", "mousemove"); |
| 1967 } | 1960 } |
| 1968 | 1961 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); | 2060 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); |
| 2068 | 2061 |
| 2069 DevToolsWindowTesting::CloseDevToolsWindowSync(window); | 2062 DevToolsWindowTesting::CloseDevToolsWindowSync(window); |
| 2070 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); | 2063 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); |
| 2071 } | 2064 } |
| 2072 | 2065 |
| 2073 // Tests scripts panel showing. | 2066 // Tests scripts panel showing. |
| 2074 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { | 2067 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { |
| 2075 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); | 2068 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); |
| 2076 } | 2069 } |
| OLD | NEW |