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

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

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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/record-cpu-profile.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/record-cpu-profile.html b/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/record-cpu-profile.html
deleted file mode 100644
index c58139863d0c601828e0a567edbb43e4221e5364..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/cpu-profiler/record-cpu-profile.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function test()
-{
- InspectorTest.sendCommand("Profiler.enable", {});
- InspectorTest.sendCommand("Profiler.start", {}, didStartFrontendProfile);
- function didStartFrontendProfile(messageObject)
- {
- if (!InspectorTest.expectedSuccess("startFrontendProfile", messageObject))
- return;
- InspectorTest.sendCommand("Runtime.evaluate", {expression: "console.profile('Profile 1');"}, didStartConsoleProfile);
- }
-
- function didStartConsoleProfile(messageObject)
- {
- if (!InspectorTest.expectedSuccess("startConsoleProfile", messageObject))
- return;
- InspectorTest.sendCommand("Runtime.evaluate", {expression: "console.profileEnd('Profile 1');"}, didStopConsoleProfile);
- }
-
- function didStopConsoleProfile(messageObject)
- {
- if (!InspectorTest.expectedSuccess("stopConsoleProfile", messageObject))
- return;
- InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile);
- }
-
- function didStopFrontendProfile(messageObject)
- {
- if (!InspectorTest.expectedSuccess("stoppedFrontendProfile", messageObject))
- return;
- InspectorTest.sendCommand("Profiler.start", {}, didStartFrontendProfile2);
- }
-
- function didStartFrontendProfile2(messageObject)
- {
- if (!InspectorTest.expectedSuccess("startFrontendProfileSecondTime", messageObject))
- return;
- InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile2);
- }
-
- function didStopFrontendProfile2(messageObject)
- {
- InspectorTest.expectedSuccess("stopFrontendProfileSecondTime", messageObject)
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>
-Test that profiler is able to record a profile.
-Also it tests that profiler returns an error when it unable to find the profile.
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698