haikuwebkit/LayoutTests/inspector/unit-tests
Razvan Caliman 7ce89a56d5 Web Inspector: Styles: should autocomplete `var()` and `attr()` values
https://bugs.webkit.org/show_bug.cgi?id=227098
<rdar://problem/79418247>

Reviewed by Devin Rousso.

Source/WebInspectorUI:

Add support for completion suggestions in the Styles details sidebar panel
for CSS Variables for use with var() and DOM node attributes for use with attr().

* UserInterface/Models/CSSCompletions.js:
(WI.CSSCompletions.prototype.addValues):
* UserInterface/Models/CSSKeywordCompletions.js:
* UserInterface/Models/DOMNodeStyles.js:
(WI.DOMNodeStyles):
(WI.DOMNodeStyles.prototype.get allCSSVariables):
(WI.DOMNodeStyles.prototype._updateStyleCascade):
(WI.DOMNodeStyles.prototype._collectCSSVariables):
* UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype.getFunctionValueCompletions):
(WI.SpreadsheetStyleProperty.prototype._valueCompletionDataProvider):

LayoutTests:

Add test cases for contextual CSS function value completion.

* inspector/unit-tests/css-keyword-completions-expected.txt:
* inspector/unit-tests/css-keyword-completions.html:


Canonical link: https://commits.webkit.org/239354@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-02 14:13:18 +00:00
..
objectStore
array-utilities-expected.txt Web Inspector: Collapse blackboxed call frames in Sources 2021-02-04 17:16:03 +00:00
array-utilities.html Web Inspector: Collapse blackboxed call frames in Sources 2021-02-04 17:16:03 +00:00
async-test-suite-expected.txt
async-test-suite.html
breakpoint-log-message-lexer-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
breakpoint-log-message-lexer.html
collection-expected.txt
collection.html
cookie-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
cookie.html
css-completions-expected.txt
css-completions.html
css-keyword-completions-expected.txt Web Inspector: Styles: should autocomplete `var()` and `attr()` values 2021-07-02 14:13:18 +00:00
css-keyword-completions.html Web Inspector: Styles: should autocomplete `var()` and `attr()` values 2021-07-02 14:13:18 +00:00
debouncer-expected.txt
debouncer.html
diagnostic-controller-expected.txt
diagnostic-controller.html
editing-support-expected.txt
editing-support.html
file-utilities-expected.txt
file-utilities.html
geometry-expected.txt Web Inspector: Graphics: add support for `steps()`/`spring()` CSS timing functions 2021-04-19 20:45:57 +00:00
geometry.html Web Inspector: Graphics: add support for `steps()`/`spring()` CSS timing functions 2021-04-19 20:45:57 +00:00
globals-uncaught-exception-from-timer-callback-expected.txt Web Inspector: Test.html should support globals reportInternalError, reportUnhandledRejection, reportUncaughtException 2017-01-05 20:07:44 +00:00
globals-uncaught-exception-from-timer-callback.html
globals-uncaught-exception-in-test-function-expected.txt
globals-uncaught-exception-in-test-function.html Web Inspector: Test.html should support globals reportInternalError, reportUnhandledRejection, reportUncaughtException 2017-01-05 20:07:44 +00:00
globals-uncaught-exception-in-test-suite-expected.txt
globals-uncaught-exception-in-test-suite.html
globals-unhandled-rejection-in-test-function-expected.txt
globals-unhandled-rejection-in-test-function.html
globals-unhandled-rejection-in-test-suite-expected.txt
globals-unhandled-rejection-in-test-suite.html
globals-unhandled-rejection-in-timer-callback-expected.txt [JSC] Add @ in Error.stack if URL exists 2021-02-01 11:04:22 +00:00
globals-unhandled-rejection-in-timer-callback.html
heap-snapshot-collection-event-expected.txt
heap-snapshot-collection-event.html Web Inspector: use weak collections for holding event listeners 2020-11-06 20:29:19 +00:00
heap-snapshot-expected.txt
heap-snapshot.html
inspector-test-dispatch-event-to-frontend-expected.txt
inspector-test-dispatch-event-to-frontend.html
map-utilities-expected.txt
map-utilities.html
mimetype-utilities-expected.txt Web Inspector: Uncaught Exception: TypeError: null is not an object (evaluating 'mimeType.endsWith') 2020-05-07 23:22:14 +00:00
mimetype-utilities.html Web Inspector: Uncaught Exception: TypeError: null is not an object (evaluating 'mimeType.endsWith') 2020-05-07 23:22:14 +00:00
multimap-expected.txt Web Inspector: implement Multimap.prototype.take() 2020-11-21 19:08:51 +00:00
multimap.html Web Inspector: implement Multimap.prototype.take() 2020-11-21 19:08:51 +00:00
number-utilities-expected.txt Web Inspector: support editing cookie key/values from inspector 2020-03-29 03:07:52 +00:00
number-utilities.html Use 1000-based units for file sizes, per HIG 2021-03-18 22:59:04 +00:00
object-expected.txt
object-utilities-expected.txt
object-utilities.html
object.html
promise-utilities-expected.txt
promise-utilities.html
protocol-test-dispatch-event-to-frontend-expected.txt
protocol-test-dispatch-event-to-frontend.html
resource-collection-expected.txt
resource-collection.html
resource-query-controller-expected.txt Web Inspector: some files not listed in OpenResourceDialog 2018-10-04 20:08:54 +00:00
resource-query-controller.html
server-timing-entry-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
server-timing-entry.html
set-utilities-expected.txt Web Inspector: allow multiple resources for a given URL 2020-06-09 20:44:14 +00:00
set-utilities.html Web Inspector: implement Multimap.prototype.take() 2020-11-21 19:08:51 +00:00
string-utilities-expected.txt
string-utilities.html
sync-test-suite-expected.txt
sync-test-suite.html
target-manager-expected.txt
target-manager.html
test-harness-evaluate-in-page-expected.txt
test-harness-evaluate-in-page.html
test-harness-expect-functions-async-expected.txt Web Inspector: implement the basics for showing/hiding grid overlays 2021-02-02 09:02:31 +00:00
test-harness-expect-functions-async.html
test-harness-expect-functions-expected.txt
test-harness-expect-functions.html
test-harness-trivially-works-expected.txt
test-harness-trivially-works.html Web Inspector: move LayoutTests/inspector-protocol/ tests to LayoutTests/inspector/ 2015-08-07 18:33:16 +00:00
text-range-expected.txt
text-range.html
throttler-expected.txt
throttler.html
url-utilities-expected.txt new URL("#") should throw an error 2020-09-08 21:08:46 +00:00
url-utilities.html new URL("#") should throw an error 2020-09-08 21:08:46 +00:00
utilities-expected.txt Web Inspector: REGRESSION(r266669): DOMBreakpoint.js:106:23: CONSOLE ASSERT ERROR domNode should not change once set 2020-10-17 04:34:26 +00:00
utilities.html Web Inspector: REGRESSION(r266669): DOMBreakpoint.js:106:23: CONSOLE ASSERT ERROR domNode should not change once set 2020-10-17 04:34:26 +00:00
wrapped-promise-expected.txt
wrapped-promise.html
yieldable-task-expected.txt
yieldable-task.html