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

Unified Diff: LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html

Issue 306693003: DevTools: Unflake inspector/profiler/cpu-profiler-profile-removal.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
diff --git a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
index bbecd64adf4f55f719bbf22a4221a6c07efec41e..cb081b040aea85e8b6c9e5081c4af8d13c6cd27c 100644
--- a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
+++ b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
@@ -16,7 +16,7 @@ function pageFunction() {
function test()
{
InspectorTest.startProfilerTest(function() {
- function viewLoaded(view) {
+ function viewLoaded() {
var profiles = WebInspector.panels.profiles;
var type = WebInspector.ProfileTypeRegistry.instance.cpuProfileType;
while (type.getProfiles().length !== 0)
@@ -31,7 +31,7 @@ function test()
WebInspector.inspectorView.showPanel("profiles");
InspectorTest.evaluateInConsole("pageFunction()", function() {});
InspectorTest.showProfileWhenAdded("p2");
- InspectorTest.waitUntilProfileViewIsShown("p2", viewLoaded);
+ InspectorTest.waitUntilProfileViewIsShown("p2", setTimeout.bind(null, viewLoaded, 0));
});
}
« no previous file with comments | « no previous file | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698