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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html

Issue 1859293002: [DevTools] Move Console to v8_inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
Index: third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html b/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html
index af156936f8bc2b23f03d56011ed74d72b08669b8..ad273198d70c3815bd393e2f2aa9e6bd813e2c58 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/console-profile.html
@@ -5,9 +5,9 @@
function collectProfiles()
{
console.profile("outer");
- console.profile("inner");
+ console.profile(42);
console.profileEnd("outer");
- console.profileEnd("inner");
+ console.profileEnd(42);
}
function test()
@@ -35,17 +35,17 @@ function test()
if (headers.length !== 2)
return InspectorTest.fail("Cannot retrive headers: " + JSON.stringify(messageObject, null, 4));
for (var i = 0; i < headers.length; i++) {
- if (headers[i].title === "inner") {
+ if (headers[i].title === "42") {
checkInnerProfile(headers[i].profile);
return;
}
}
- InspectorTest.fail("Cannot find 'inner' profile header");
+ InspectorTest.fail("Cannot find '42' profile header");
}
function checkInnerProfile(profile)
{
- InspectorTest.log("SUCCESS: retrieved 'inner' profile");
+ InspectorTest.log("SUCCESS: retrieved '42' profile");
var root = profile.head;
if (!findFunctionInProfile(root, "collectProfiles"))
return InspectorTest.fail("collectProfiles function not found in the profile: " + JSON.stringify(profile, null, 4));

Powered by Google App Engine
This is Rietveld 408576698