Web Inspector: Remove unused testing properties
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Mar 2015 00:54:31 +0000 (00:54 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Mar 2015 00:54:31 +0000 (00:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=143156

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-03-27
Reviewed by Timothy Hatcher.

* UserInterface/Views/LegacyConsoleMessageImpl.js:
(WebInspector.LegacyConsoleMessageImpl.prototype._formatMessage):
* UserInterface/Views/Section.js:
(WebInspector.Section.prototype.get subtitleAsTextForTest): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182093 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/LegacyConsoleMessageImpl.js
Source/WebInspectorUI/UserInterface/Views/Section.js

index 4e8a48f..f468073 100644 (file)
@@ -1,5 +1,17 @@
 2015-03-27  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Web Inspector: Remove unused testing properties
+        https://bugs.webkit.org/show_bug.cgi?id=143156
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/LegacyConsoleMessageImpl.js:
+        (WebInspector.LegacyConsoleMessageImpl.prototype._formatMessage):
+        * UserInterface/Views/Section.js:
+        (WebInspector.Section.prototype.get subtitleAsTextForTest): Deleted.
+
+2015-03-27  Joseph Pecoraro  <pecoraro@apple.com>
+
         Web Inspector: Uncaught Exception: TypeError: Attempted to assign to readonly - DOMNodeDetailsSidebarPanel.js
         https://bugs.webkit.org/show_bug.cgi?id=143139
 
index 1246dc9..b65aaa1 100644 (file)
@@ -144,7 +144,6 @@ WebInspector.LegacyConsoleMessageImpl.prototype = {
 
             var content = this._formattedMessage;
             var root = new WebInspector.TreeElement(content, null, true);
-            content.treeElementForTest = root;
             treeOutline.appendChild(root);
             if (this.type === WebInspector.LegacyConsoleMessage.MessageType.Trace)
                 root.expand();
index 1e64cf2..eb04eea 100644 (file)
@@ -95,18 +95,6 @@ WebInspector.Section.prototype = {
         this.subtitleElement.textContent = x;
     },
 
-    get subtitleAsTextForTest()
-    {
-        var result = this.subtitleElement.textContent;
-        var child = this.subtitleElement.querySelector("[data-uncopyable]");
-        if (child) {
-            var linkData = child.getAttribute("data-uncopyable");
-            if (linkData)
-                result += linkData;
-        }
-        return result;
-    },
-
     get expanded()
     {
         return this._expanded;