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

Unified Diff: LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js
diff --git a/LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js b/LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js
deleted file mode 100644
index 93913f13c90069f1a31fdc5a94ba8e293aa1c006..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js
+++ /dev/null
@@ -1,101 +0,0 @@
-function endTest() {
- console.profileEnd();
- printProfilesDataWithoutTime();
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function insertGivenText(text) {
- var paragraph = document.createElement("p");
- paragraph.appendChild(document.createTextNode(text));
- paragraph.style.display = "none"; // Hidden since this isn't important in the test results.
-
- document.getElementById("output").appendChild(paragraph);
-}
-
-function insertNewText() {
- var paragraph = document.createElement("p");
- paragraph.appendChild(document.createTextNode("This is inserted Text"));
- paragraph.style.display = "none"; // Hidden since this isn't important in the test results.
-
- document.getElementById("output").appendChild(paragraph);
-}
-
-function arrayOperatorFunction(arrayElement) {
- return arrayElement + 5;
-}
-
-var anonymousFunction = function () { insertNewText(); };
-var anotherAnonymousFunction = function () { insertGivenText("Another anonymous function was called.") };
-
-function intermediaryFunction()
-{
- anonymousFunction();
-}
-
-function isEqualToFive(input)
-{
- return input === 5;
-}
-
-function startProfile(title)
-{
- console.profile(title);
-}
-
-function printHeavyProfilesDataWithoutTime()
-{
- var preElement = document.createElement("pre");
- preElement.appendChild(document.createTextNode("\n"));
-
- var profiles = console.profiles;
- for (var i = 0; i < profiles.length; ++i) {
- preElement.appendChild(document.createTextNode("Profile title: " + profiles[i].title + "\n"));
- printProfileNodeWithoutTime(preElement, profiles[i].heavyProfile.head, 0);
- preElement.appendChild(document.createTextNode("\n"));
- }
-
- document.getElementById("output").appendChild(preElement);
-}
-
-function printProfilesDataWithoutTime()
-{
- var preElement = document.createElement("pre");
- preElement.appendChild(document.createTextNode("\n"));
-
- var profiles = console.profiles;
- for (var i = 0; i < profiles.length; ++i) {
- preElement.appendChild(document.createTextNode("Profile title: " + profiles[i].title + "\n"));
- printProfileNodeWithoutTime(preElement, profiles[i].head, 0);
- preElement.appendChild(document.createTextNode("\n"));
- }
-
- document.getElementById("output").appendChild(preElement);
-}
-
-function printProfileNodeWithoutTime(preElement, node, indentLevel)
-{
- if (node.functionName == "(idle)")
- return;
-
- if (!node.visible)
- return;
-
- var space = "";
- for (var i = 0; i < indentLevel; ++i)
- space += " "
-
- ++indentLevel;
-
- var strippedURL = node.url.replace(/.*\//, "");
- if (!strippedURL)
- strippedURL = "(no file)";
-
- var line = space + node.functionName + " " + strippedURL + " (line " + node.lineNumber + ")\n";
- preElement.appendChild(document.createTextNode(line));
-
- var children = node.children();
- for (var i = 0; i < children.length; ++i)
- printProfileNodeWithoutTime(preElement, children[i], indentLevel);
-}

Powered by Google App Engine
This is Rietveld 408576698