| OLD | NEW |
| 1 var initialize_AccessibilityTest = function() { | 1 var initialize_AccessibilityTest = function() { |
| 2 | 2 |
| 3 /** | 3 /** |
| 4 * @return {Promise} | 4 * @return {Promise} |
| 5 */ | 5 */ |
| 6 InspectorTest.showAccessibilityView = function() | 6 InspectorTest.showAccessibilityView = function() |
| 7 { | 7 { |
| 8 var sidebarPane = _getAccessibilitySidebarPane(); | 8 var sidebarPane = _getAccessibilitySidebarPane(); |
| 9 if (sidebarPane) { | 9 if (sidebarPane) { |
| 10 sidebarPane.revealWidget(); | 10 sidebarPane.revealView(); |
| 11 return InspectorTest.waitForAccessibilityNodeUpdate(); | 11 return InspectorTest.waitForAccessibilityNodeUpdate(); |
| 12 } else { | 12 } else { |
| 13 return _waitForViewsLoaded() | 13 return _waitForViewsLoaded() |
| 14 .then(() => { | 14 .then(() => { |
| 15 return InspectorTest.showAccessibilityView(); | 15 return InspectorTest.showAccessibilityView(); |
| 16 }); | 16 }); |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 | 20 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 * @return {Promise} | 127 * @return {Promise} |
| 128 */ | 128 */ |
| 129 InspectorTest.waitForAccessibilityNodeUpdateInARIAPane = function() | 129 InspectorTest.waitForAccessibilityNodeUpdateInARIAPane = function() |
| 130 { | 130 { |
| 131 return new Promise(function(resolve, reject) | 131 return new Promise(function(resolve, reject) |
| 132 { | 132 { |
| 133 InspectorTest.addSniffer(WebInspector.ARIAAttributesPane.prototype, "_go
tNodeForTest", resolve); | 133 InspectorTest.addSniffer(WebInspector.ARIAAttributesPane.prototype, "_go
tNodeForTest", resolve); |
| 134 }); | 134 }); |
| 135 } | 135 } |
| 136 }; | 136 }; |
| OLD | NEW |