RESOLVED FIXED 226800
[LayoutTests] Delete unused LayoutTests/inspector resources
https://bugs.webkit.org/show_bug.cgi?id=226800
Summary [LayoutTests] Delete unused LayoutTests/inspector resources
Amir Mark Jr
Reported 2021-06-08 17:37:48 PDT
There a number of unused LayoutTest/inspector resources that are not used that should be deleted.
Attachments
Patch (383.33 KB, patch)
2021-06-08 17:45 PDT, Amir Mark Jr
no flags
Patch (248.71 KB, patch)
2021-06-09 17:41 PDT, Amir Mark Jr
no flags
Patch (248.63 KB, patch)
2021-06-10 14:35 PDT, Amir Mark Jr
no flags
Patch (2.09 KB, patch)
2021-06-11 14:07 PDT, Amir Mark Jr
no flags
Patch (2.09 KB, patch)
2021-07-27 17:37 PDT, Robert Jenner
no flags
Radar WebKit Bug Importer
Comment 1 2021-06-08 17:39:07 PDT
Amir Mark Jr
Comment 2 2021-06-08 17:45:03 PDT
Devin Rousso
Comment 3 2021-06-08 18:08:27 PDT
Comment on attachment 430925 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430925&action=review > LayoutTests/ChangeLog:12 > + * inspector/formatting/resources/css-tests/basic-expected.css: Removed. These are used by tests inside `inspector/formatting-*.html`. They're just not included directly and instead are loaded by Web Inspector (see `loadFormattingTestAndExpectedResults` inside `inspector/formatting/resources/formatting-utilities.js`).
Robert Jenner
Comment 4 2021-06-09 15:17:30 PDT
These were the three tests that started to fail with the proposed patch above: inspector/formatting/formatting-xml.html inspector/formatting/formatting-css.html inspector/formatting/formatting-html.html They required the following resources that were deleted in that patch: inspector/formatting/resources/xml-tests/atom-expected.xml inspector/formatting/resources/xml-tests/basic-expected.xml inspector/formatting/resources/xml-tests/rss-expected.xml inspector/formatting/resources/xml-tests/self-closing-expected.xml inspector/formatting/resources/xml-tests/tag-case-expected.xml inspector/formatting/resources/xml-tests/valid-html-invalid-xml-expected.xml inspector/formatting/resources/xml-tests/xslt-expected.xml inspector/formatting/resources/css-tests/basic-expected.css inspector/formatting/resources/css-tests/comment-expected.css inspector/formatting/resources/css-tests/gradient-expected.css inspector/formatting/resources/css-tests/keyframes-expected.css inspector/formatting/resources/css-tests/media-query-expected.css inspector/formatting/resources/css-tests/selectors-expected.css inspector/formatting/resources/css-tests/url-expected.css inspector/formatting/resources/css-tests/wrapping-expected.css inspector/formatting/resources/html-tests/attributes-expected.html inspector/formatting/resources/html-tests/auto-close-normal-expected.html inspector/formatting/resources/html-tests/auto-close-special-expected.html inspector/formatting/resources/html-tests/basic-1-expected.html inspector/formatting/resources/html-tests/basic-2-expected.html inspector/formatting/resources/html-tests/comments-expected.html inspector/formatting/resources/html-tests/eof-1-expected.html inspector/formatting/resources/html-tests/eof-2-expected.html inspector/formatting/resources/html-tests/eof-3-expected.html inspector/formatting/resources/html-tests/eof-4-expected.html inspector/formatting/resources/html-tests/eof-5-expected.html inspector/formatting/resources/html-tests/eof-6-expected.html inspector/formatting/resources/html-tests/eof-7-expected.html inspector/formatting/resources/html-tests/eof-8-expected.html inspector/formatting/resources/html-tests/eof-9-expected.html inspector/formatting/resources/html-tests/inline-script-expected.html inspector/formatting/resources/html-tests/inline-style-expected.html inspector/formatting/resources/html-tests/list-expected.html inspector/formatting/resources/html-tests/not-well-formed-1-expected.html inspector/formatting/resources/html-tests/not-well-formed-2-expected.html inspector/formatting/resources/html-tests/not-well-formed-3-expected.html inspector/formatting/resources/html-tests/p-expected.html inspector/formatting/resources/html-tests/self-closing-expected.html inspector/formatting/resources/html-tests/table-expected.html inspector/formatting/resources/html-tests/tag-case-expected.html @Amir will need to resubmit the patch excluding those resources, and just deleting the following: inspector/console/resources/errors.css inspector/dom/resources/highlight-iframe.html inspector/formatting/resources/javascript-tests/arrow-functions-expected.js inspector/formatting/resources/javascript-tests/classes-expected.js inspector/formatting/resources/javascript-tests/comma-expressions-expected.js inspector/formatting/resources/javascript-tests/comments-and-preserve-newlines-expected.js inspector/formatting/resources/javascript-tests/comments-only-expected.js inspector/formatting/resources/javascript-tests/do-while-statement-expected.js inspector/formatting/resources/javascript-tests/for-statements-expected.js inspector/formatting/resources/javascript-tests/functions-expected.js inspector/formatting/resources/javascript-tests/generators-expected.js inspector/formatting/resources/javascript-tests/if-statement-expected.js inspector/formatting/resources/javascript-tests/import-expected.js inspector/formatting/resources/javascript-tests/label-break-continue-block-expected.js inspector/formatting/resources/javascript-tests/logic-expressions-expected.js inspector/formatting/resources/javascript-tests/modules-expected.js inspector/formatting/resources/javascript-tests/new-expression-expected.js inspector/formatting/resources/javascript-tests/numbers-expected.js inspector/formatting/resources/javascript-tests/object-array-literal-expected.js inspector/formatting/resources/javascript-tests/other-statements-expected.js inspector/formatting/resources/javascript-tests/return-statement-expected.js inspector/formatting/resources/javascript-tests/sample-jquery-expected.js inspector/formatting/resources/javascript-tests/sample-normal-utilities-expected.js inspector/formatting/resources/javascript-tests/sample-webinspector-object-expected.js inspector/formatting/resources/javascript-tests/switch-case-default-expected.js inspector/formatting/resources/javascript-tests/template-strings-expected.js inspector/formatting/resources/javascript-tests/ternary-expressions-expected.js inspector/formatting/resources/javascript-tests/try-catch-finally-statements-expected.js inspector/formatting/resources/javascript-tests/unary-binary-expressions-expected.js inspector/formatting/resources/javascript-tests/variable-declaration-expected.js inspector/formatting/resources/javascript-tests/while-statement-expected.js inspector/formatting/resources/javascript-tests/with-statement-expected.js inspector/network/resources/data-intercepted.json After running the re-submitted patch, we should have a more clearer picture on what resources are un-used, and can be deleted.
Devin Rousso
Comment 5 2021-06-09 15:19:59 PDT
I'm not sure why EWS didn't pick this up, but the files inside `inspector/formatting/resources/javascript-tests` are used by `inspector/formatting/formatting-javascript.html`
Ryan Haddad
Comment 6 2021-06-09 15:27:06 PDT
(In reply to Devin Rousso from comment #5) > I'm not sure why EWS didn't pick this up, but the files inside > `inspector/formatting/resources/javascript-tests` are used by > `inspector/formatting/formatting-javascript.html` That test is marked as flaky (webkit.org/b/156634), so EWS skips it.
Amir Mark Jr
Comment 7 2021-06-09 17:41:23 PDT
Amir Mark Jr
Comment 8 2021-06-10 13:50:04 PDT
The failing test imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_values.html appears to be a flaky failure and not caused by this patch in particular. A bug was already filed for it. https://bugs.webkit.org/show_bug.cgi?id=226881
Amir Mark Jr
Comment 9 2021-06-10 14:35:09 PDT
Amir Mark Jr
Comment 10 2021-06-10 14:36:09 PDT
Resubmitting patch
Devin Rousso
Comment 11 2021-06-10 14:41:54 PDT
Comment on attachment 431132 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431132&action=review > LayoutTests/ChangeLog:10 > + * inspector/formatting/resources/javascript-tests/arrow-functions-expected.js: Removed. Once again, the files in `inspector/formatting/resources/javascript-tests` are used by `inspector/formatting/formatting-javascript.html`. Please do not delete them.
Amir Mark Jr
Comment 12 2021-06-11 10:46:53 PDT
(In reply to Devin Rousso from comment #11) > Comment on attachment 431132 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=431132&action=review > > > LayoutTests/ChangeLog:10 > > + * inspector/formatting/resources/javascript-tests/arrow-functions-expected.js: Removed. > > Once again, the files in `inspector/formatting/resources/javascript-tests` > are used by `inspector/formatting/formatting-javascript.html`. Please do > not delete them. Okay will only remove these: inspector/console/resources/errors.css inspector/dom/resources/highlight-iframe.html inspector/network/resources/data-intercepted.json
Amir Mark Jr
Comment 13 2021-06-11 14:07:01 PDT
Amir Mark Jr
Comment 14 2021-06-11 14:13:18 PDT
Resubmitted patch with only three test removed: inspector/console/resources/errors.css inspector/dom/resources/highlight-iframe.html inspector/network/resources/data-intercepted.json
EWS
Comment 15 2021-07-27 17:13:16 PDT
ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.
Robert Jenner
Comment 16 2021-07-27 17:37:15 PDT
EWS
Comment 17 2021-07-27 18:38:13 PDT
Committed r280368 (240015@main): <https://commits.webkit.org/240015@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434389 [details].
Note You need to log in before you can comment on or make changes to this bug.