Changeset 238843 in webkit
- Timestamp:
- Dec 3, 2018 10:01:16 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r238842 r238843 1 2018-12-03 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Audit: save the expanded state of test groups 4 https://bugs.webkit.org/show_bug.cgi?id=192346 5 <rdar://problem/46440704> 6 7 Reviewed by Matt Baker. 8 9 * UserInterface/Views/AuditTreeElement.js: 10 (WI.AuditTreeElement): 11 (WI.AuditTreeElement.prototype.onattach): 12 (WI.AuditTreeElement.prototype.onexpand): Added. 13 (WI.AuditTreeElement.prototype.oncollapse): Added. 14 1 15 2018-12-03 Devin Rousso <drousso@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/AuditTreeElement.js
r238822 r238843 50 50 const subtitle = null; 51 51 super(classNames, representedObject.name, subtitle, representedObject, options); 52 53 if (isTestGroup) 54 this._expandedSetting = new WI.Setting(`audit-tree-element-${this.representedObject.name}-expanded`, false); 52 55 } 53 56 … … 66 69 this.representedObject.addEventListener(WI.AuditTestBase.Event.Scheduled, this._handleTestGroupScheduled, this); 67 70 } 71 72 if (this._expandedSetting && this._expandedSetting.value) 73 this.expand(); 68 74 69 75 this._updateLevel(); … … 95 101 this.appendChild(new WI.AuditTreeElement(result)); 96 102 } 103 } 104 105 onexpand() 106 { 107 console.assert(this.expanded); 108 109 if (this._expandedSetting) 110 this._expandedSetting.value = this.expanded; 111 } 112 113 oncollapse() 114 { 115 console.assert(!this.expanded); 116 117 if (this._expandedSetting) 118 this._expandedSetting.value = this.expanded; 97 119 } 98 120
Note: See TracChangeset
for help on using the changeset viewer.