RESOLVED FIXED 201718
WPT importer should check META global tag in .any.js files to generate the valid .html stub files
https://bugs.webkit.org/show_bug.cgi?id=201718
Summary WPT importer should check META global tag in .any.js files to generate the va...
youenn fablet
Reported 2019-09-12 01:42:13 PDT
WPT importer should check META global tag in .any.js files to generate the valid .html stub files
Attachments
Patch (8.77 KB, patch)
2019-09-12 02:52 PDT, youenn fablet
no flags
Patch (10.37 KB, patch)
2019-09-12 04:44 PDT, youenn fablet
no flags
Patch (18.14 KB, patch)
2019-09-13 21:45 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2019-09-12 01:42:53 PDT
Currently we are generating worker and window tests. We are missing serviceworker tests.
youenn fablet
Comment 2 2019-09-12 02:52:01 PDT
youenn fablet
Comment 3 2019-09-12 04:44:46 PDT
Jonathan Bedard
Comment 4 2019-09-13 07:51:13 PDT
Comment on attachment 378642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=378642&action=review > Tools/Scripts/webkitpy/w3c/test_importer.py:193 > + self.globalToSuffix = dict([ Why not: dict( window='html', worker='worker.html', dedicatedworker='worker.html', serviceworker='service worker.html', ) > Tools/Scripts/webkitpy/w3c/test_importer_unittest.py:428 > + '/mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.html': '', I don't see us checking test1 in this test
Jonathan Bedard
Comment 5 2019-09-13 07:51:48 PDT
Just a few small changes, generally looks good.
youenn fablet
Comment 6 2019-09-13 08:08:28 PDT
(In reply to Jonathan Bedard from comment #4) > Comment on attachment 378642 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=378642&action=review > > > Tools/Scripts/webkitpy/w3c/test_importer.py:193 > > + self.globalToSuffix = dict([ > > Why not: > dict( > window='html', > worker='worker.html', > dedicatedworker='worker.html', > serviceworker='service worker.html', > ) Ok > > Tools/Scripts/webkitpy/w3c/test_importer_unittest.py:428 > > + '/mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.html': '', > > I don't see us checking test1 in this test This is currently required to call the importer with mock for historical reasons. I’ll remove this restriction in a separate patch
Jonathan Bedard
Comment 7 2019-09-13 16:22:35 PDT
Comment on attachment 378642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=378642&action=review >>> Tools/Scripts/webkitpy/w3c/test_importer_unittest.py:428 >>> + '/mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.html': '', >> >> I don't see us checking test1 in this test > > This is currently required to call the importer with mock for historical reasons. > I’ll remove this restriction in a separate patch Looking at the code you've added, shouldn't this file generate /mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.any.html and /mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.any.worker.html?
youenn fablet
Comment 8 2019-09-13 21:45:17 PDT
youenn fablet
Comment 9 2019-09-13 21:46:49 PDT
(In reply to Jonathan Bedard from comment #7) > Comment on attachment 378642 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=378642&action=review > > >>> Tools/Scripts/webkitpy/w3c/test_importer_unittest.py:428 > >>> + '/mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.html': '', > >> > >> I don't see us checking test1 in this test > > > > This is currently required to call the importer with mock for historical reasons. > > I’ll remove this restriction in a separate patch > > Looking at the code you've added, shouldn't this file generate > /mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.any.html and > /mock-checkout/WebKitBuild/w3c-tests/csswg-tests/t/test1.any.worker.html? We could do that if we add csswg-tests/t/test1.any.js but this is already covered by the other files. I updated the patch to remove the need for csswg-tests/t/test1.html
WebKit Commit Bot
Comment 10 2019-09-13 23:23:49 PDT
Comment on attachment 378786 [details] Patch Clearing flags on attachment: 378786 Committed r249870: <https://trac.webkit.org/changeset/249870>
WebKit Commit Bot
Comment 11 2019-09-13 23:23:51 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2019-09-13 23:24:19 PDT
Note You need to log in before you can comment on or make changes to this bug.