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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/script-extract-outline.html

Issue 2770123002: DevTools: produce javascript outline for javascript classess (Closed)
Patch Set: address comments Created 3 years, 9 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/sources/debugger/script-extract-outline.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/script-extract-outline.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/script-extract-outline.html
deleted file mode 100644
index ff65e11ce4280fbb51d8908dc0c613eba32c4b4b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/script-extract-outline.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="resources/obfuscated.js"></script>
-
-<script id="outline">function first(x,y) { }
- var second = function(y
- ,
-z) { }
- Object = function(arg) {
-}
- Object.prototype.functionOnPrototype = function ( a, b ,
-c, d ,
- e , f ) { function innerFunction1() {
- var innerFunction2 = function(arg1,arg2) {} } }
-/**
- * @constructor
- * @param {string} name
- */
-window.Cat = function(name)
-{
- this._name = name;
-}
-
-window.Cat.prototype = {
- mew: function()
- {
- console.log("Mew!");
- },
-
- get name()
- {
- return this._name;
- },
-
- feed: function()
- {
- // noop
- },
-
- set name(newName)
- {
- this._name = newName;
- }
-};
-</script>
-
-<script>
-
-function getScriptText()
-{
- return document.querySelector("#outline").textContent;
-}
-
-function test()
-{
-
- var worker = new Common.Worker("formatter_worker");
-
- worker.onmessage = InspectorTest.safeWrap(function(event)
- {
- InspectorTest.addObject(event.data);
- InspectorTest.completeTest();
- });
-
- worker.onerror = function(event)
- {
- InspectorTest.addResult("Error in worker: " + event.data);
- InspectorTest.completeTest();
- };
-
- InspectorTest.evaluateInPage("getScriptText()", onScriptText);
- function onScriptText(result)
- {
- worker.postMessage({ method: "javaScriptOutline", params: { content: result.value } });
- }
-}
-
-</script>
-
-</head>
-
-<body onload="runTest()">
-<p>Tests the script outline extraction functionality.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698