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

Unified Diff: LayoutTests/inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html

Issue 15816002: Remove console.profiles from window.console API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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
Index: LayoutTests/inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html
diff --git a/LayoutTests/inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html b/LayoutTests/inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html
deleted file mode 100644
index 5de6a1b2fe10fdae87bcb92409752ad7c9d7f8cd..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<head>
-<script>
-
-if (window.testRunner)
- testRunner.dumpAsText();
-if (window.internals)
- internals.setJavaScriptProfilingEnabled(true);
-
-function pageFunction()
-{
- console.profile(); // Untitled
- console.profile("titled");
- console.profileEnd();
- console.profileEnd();
-}
-
-function startTest()
-{
- pageFunction();
- printResult();
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function printResult()
-{
- var preElement = document.createElement("pre");
- preElement.appendChild(document.createTextNode("\n"));
-
- var profiles = console.profiles;
- preElement.appendChild(document.createTextNode("Profiles count: " + profiles.length + "\n"));
- for (var i = 0; i < profiles.length; ++i) {
- if (profiles[i].title === "titled")
- preElement.appendChild(document.createTextNode("Titled profile found.\n"));
- }
- document.getElementById("output").appendChild(preElement);
-}
-
-</script>
-</head>
-<body onload="startTest()">
-<p>
-Tests that "console.profileEnd()" do not cause crash.<br>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=105759">Bug 105759.</a><br>
-<div id="output"></div>
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698