chrome-devtools-frontend 1.0.936819 → 1.0.938678

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/config/gni/all_devtools_files.gni +0 -20
  2. package/config/gni/devtools_grd_files.gni +2 -10
  3. package/front_end/Images/whatsnew.avif +0 -0
  4. package/front_end/Tests.js +0 -1
  5. package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
  6. package/front_end/core/host/UserMetrics.ts +25 -0
  7. package/front_end/core/platform/string-utilities.ts +23 -0
  8. package/front_end/core/sdk/DOMModel.ts +1 -1
  9. package/front_end/core/sdk/NetworkManager.ts +1 -0
  10. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -5
  11. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +0 -3
  12. package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +3 -1
  13. package/front_end/entrypoints/main/MainImpl.ts +15 -0
  14. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -3
  15. package/front_end/entrypoints/node_app/node_app.js +3 -0
  16. package/front_end/entrypoints/shell/shell.json +3 -7
  17. package/front_end/entrypoints/worker_app/worker_app.json +0 -2
  18. package/front_end/generated/InspectorBackendCommands.js +14 -5
  19. package/front_end/generated/SupportedCSSProperties.js +8 -4
  20. package/front_end/generated/protocol-mapping.d.ts +10 -0
  21. package/front_end/generated/protocol-proxy-api.d.ts +19 -0
  22. package/front_end/generated/protocol.d.ts +56 -1
  23. package/front_end/legacy_test_runner/test_runner/test_runner.js +2 -4
  24. package/front_end/models/issues_manager/DeprecationIssue.ts +67 -0
  25. package/front_end/models/issues_manager/IssuesManager.ts +5 -0
  26. package/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
  27. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  28. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +8 -1
  29. package/front_end/panels/accessibility/accessibility-meta.ts +0 -3
  30. package/front_end/panels/application/components/ReportsGrid.ts +38 -4
  31. package/front_end/panels/application/components/reportingApiGrid.css +4 -0
  32. package/front_end/panels/application/module.json +1 -3
  33. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -5
  34. package/front_end/panels/console/console-meta.ts +1 -3
  35. package/front_end/panels/coverage/coverage-meta.ts +0 -3
  36. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +18 -17
  37. package/front_end/panels/css_overview/CSSOverviewPanel.ts +31 -10
  38. package/front_end/panels/css_overview/css_overview-meta.ts +0 -3
  39. package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -0
  40. package/front_end/panels/elements/elements-meta.ts +0 -2
  41. package/front_end/panels/elements/stylesSidebarPane.css +8 -0
  42. package/front_end/panels/event_listeners/EventListenersView.ts +2 -0
  43. package/front_end/panels/help/ReleaseNoteText.ts +28 -0
  44. package/front_end/panels/issues/issuesTree.css +11 -0
  45. package/front_end/panels/lighthouse/module.json +0 -1
  46. package/front_end/panels/media/module.json +0 -1
  47. package/front_end/panels/network/module.json +0 -1
  48. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -0
  49. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -2
  50. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +14 -17
  51. package/front_end/panels/sources/javaScriptBreakpointsSidebarPane.css +18 -44
  52. package/front_end/panels/sources/sources-meta.ts +0 -2
  53. package/front_end/panels/timeline/module.json +0 -1
  54. package/front_end/third_party/puppeteer/package/CHANGELOG.md +29 -0
  55. package/front_end/third_party/puppeteer/package/README.md +12 -14
  56. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +2 -0
  57. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  58. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +13 -5
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +2 -2
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +10 -1
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +25 -7
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -6
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +3 -1
  69. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +16 -12
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +2 -2
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +10 -1
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +9 -1
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +8 -8
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +2 -2
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +21 -9
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +155 -72
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +5 -0
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +32 -29
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +14 -4
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -3
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +3 -4
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +3 -3
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +13 -12
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -5
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +33 -4
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +92 -46
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +5 -5
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -1
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +3 -2
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts +21 -0
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -0
  120. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js +30 -0
  121. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -0
  122. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +5 -5
  125. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +14 -14
  127. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +11 -5
  130. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +4 -0
  132. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +30 -15
  135. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  136. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  138. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +2 -2
  139. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
  140. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -1
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js.map +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js.map +1 -1
  146. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +2 -0
  147. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +9 -1
  149. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +10 -1
  151. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +22 -4
  153. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +3 -1
  155. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +6 -2
  157. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +10 -1
  159. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +7 -0
  161. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +21 -9
  163. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +150 -68
  165. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +5 -0
  167. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +22 -19
  169. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +15 -4
  172. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -3
  174. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -3
  176. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +3 -3
  178. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +2 -1
  180. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  182. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +1 -4
  183. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  184. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +33 -4
  185. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +69 -23
  187. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -1
  189. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  190. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +3 -2
  191. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts +21 -0
  193. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -0
  194. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js +26 -0
  195. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js.map +1 -0
  196. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  200. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +7 -1
  202. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +4 -0
  204. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  206. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +27 -12
  207. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  208. package/front_end/third_party/puppeteer/package/lib/types.d.ts +3862 -3771
  209. package/front_end/third_party/puppeteer/package/package.json +33 -40
  210. package/front_end/ui/components/data_grid/DataGrid.ts +3 -1
  211. package/front_end/ui/components/data_grid/DataGridUtils.ts +8 -5
  212. package/front_end/ui/components/data_grid/dataGrid.css +0 -5
  213. package/front_end/ui/components/icon_button/iconButton.css +1 -0
  214. package/front_end/ui/components/settings/settingCheckbox.css +1 -1
  215. package/front_end/ui/legacy/ContextMenu.ts +5 -2
  216. package/front_end/ui/legacy/ListWidget.ts +2 -4
  217. package/front_end/ui/legacy/SoftContextMenu.ts +4 -1
  218. package/front_end/ui/legacy/XLink.ts +6 -6
  219. package/front_end/ui/legacy/checkboxTextLabel.css +1 -1
  220. package/front_end/ui/legacy/components/perf_ui/module.json +1 -3
  221. package/front_end/ui/legacy/components/source_frame/module.json +0 -1
  222. package/front_end/ui/legacy/inspectorCommon.css +1 -1
  223. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +1 -1
  224. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +1 -1
  225. package/front_end/ui/legacy/softContextMenu.css +10 -0
  226. package/front_end/ui/legacy/tabbedPane.css +5 -0
  227. package/front_end/ui/legacy/themeColors.css +1 -0
  228. package/front_end/ui/legacy/treeoutline.css +16 -0
  229. package/front_end/ui/legacy/viewContainers.css +6 -1
  230. package/package.json +1 -1
  231. package/scripts/build/ninja/copy-file.js +10 -1
  232. package/scripts/build/ninja/copy-files.js +10 -1
  233. package/scripts/eslint_rules/lib/check_test_definitions.js +2 -1
  234. package/scripts/eslint_rules/tests/check_test_definitions_test.js +34 -0
  235. package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +1 -1
  236. package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +1 -1
  237. package/front_end/entrypoints/inspector_main/module.json +0 -9
  238. package/front_end/panels/accessibility/module.json +0 -7
  239. package/front_end/panels/browser_debugger/module.json +0 -7
  240. package/front_end/panels/console/module.json +0 -6
  241. package/front_end/panels/coverage/module.json +0 -6
  242. package/front_end/panels/css_overview/module.json +0 -4
  243. package/front_end/panels/elements/module.json +0 -6
  244. package/front_end/panels/protocol_monitor/module.json +0 -6
  245. package/front_end/panels/sources/module.json +0 -7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppeteer",
3
- "version": "10.4.0",
3
+ "version": "11.0.0",
4
4
  "description": "A high-level API to control headless Chrome over the DevTools Protocol",
5
5
  "main": "./cjs-entry.js",
6
6
  "types": "lib/types.d.ts",
@@ -17,7 +17,7 @@
17
17
  "assert-unit-coverage": "cross-env COVERAGE=1 mocha --config mocha-config/coverage-tests.js",
18
18
  "funit": "cross-env PUPPETEER_PRODUCT=firefox npm run unit",
19
19
  "test": "npm run tsc && npm run lint --silent && npm run unit-with-coverage && npm run test-browser",
20
- "prepare": "node typescript-if-required.js",
20
+ "prepare": "node typescript-if-required.js && husky install",
21
21
  "prepublishOnly": "npm run build",
22
22
  "dev-install": "npm run tsc && node install.js",
23
23
  "install": "node install.js",
@@ -58,67 +58,60 @@
58
58
  "author": "The Chromium Authors",
59
59
  "license": "Apache-2.0",
60
60
  "dependencies": {
61
- "debug": "4.3.1",
61
+ "debug": "4.3.2",
62
62
  "devtools-protocol": "0.0.901419",
63
63
  "extract-zip": "2.0.1",
64
64
  "https-proxy-agent": "5.0.0",
65
- "node-fetch": "2.6.1",
65
+ "node-fetch": "2.6.5",
66
66
  "pkg-dir": "4.2.0",
67
- "progress": "2.0.1",
67
+ "progress": "2.0.3",
68
68
  "proxy-from-env": "1.1.0",
69
69
  "rimraf": "3.0.2",
70
- "tar-fs": "2.0.0",
71
- "unbzip2-stream": "1.3.3",
72
- "ws": "7.4.6"
70
+ "tar-fs": "2.1.1",
71
+ "unbzip2-stream": "1.4.3",
72
+ "ws": "8.2.3"
73
73
  },
74
74
  "devDependencies": {
75
- "@commitlint/cli": "11.0.0",
76
- "@commitlint/config-conventional": "11.0.0",
77
- "@microsoft/api-documenter": "7.13.8",
78
- "@microsoft/api-extractor": "7.15.1",
79
- "@types/debug": "0.0.31",
75
+ "@commitlint/cli": "13.2.0",
76
+ "@commitlint/config-conventional": "13.2.0",
77
+ "@microsoft/api-documenter": "7.13.65",
78
+ "@microsoft/api-extractor": "7.18.15",
79
+ "@types/debug": "4.1.7",
80
80
  "@types/mime": "2.0.3",
81
- "@types/mocha": "7.0.2",
82
- "@types/node": "14.14.45",
81
+ "@types/mocha": "9.0.0",
82
+ "@types/node": "16.10.9",
83
83
  "@types/proxy-from-env": "1.0.1",
84
- "@types/rimraf": "2.0.2",
85
- "@types/sinon": "9.0.11",
86
- "@types/tar-fs": "1.16.2",
87
- "@types/ws": "7.4.4",
84
+ "@types/rimraf": "3.0.2",
85
+ "@types/sinon": "10.0.4",
86
+ "@types/tar-fs": "2.0.1",
87
+ "@types/ws": "8.2.0",
88
88
  "@typescript-eslint/eslint-plugin": "4.23.0",
89
- "@typescript-eslint/parser": "4.23.0",
90
- "@web/test-runner": "0.12.20",
89
+ "@typescript-eslint/parser": "4.33.0",
90
+ "@web/test-runner": "0.13.18",
91
91
  "commonmark": "0.29.3",
92
92
  "cross-env": "7.0.3",
93
- "eslint": "7.26.0",
93
+ "eslint": "7.32.0",
94
94
  "eslint-config-prettier": "8.3.0",
95
95
  "eslint-plugin-import": "2.22.1",
96
- "eslint-plugin-mocha": "8.1.0",
97
- "eslint-plugin-prettier": "3.4.0",
98
- "eslint-plugin-unicorn": "22.0.0",
99
- "esprima": "4.0.0",
96
+ "eslint-plugin-mocha": "9.0.0",
97
+ "eslint-plugin-prettier": "4.0.0",
98
+ "eslint-plugin-unicorn": "37.0.1",
99
+ "esprima": "4.0.1",
100
100
  "expect": "25.2.7",
101
- "husky": "4.3.8",
101
+ "husky": "7.0.2",
102
102
  "jpeg-js": "0.3.7",
103
103
  "mime": "2.5.2",
104
104
  "minimist": "1.2.0",
105
- "mocha": "8.4.0",
105
+ "mocha": "9.1.3",
106
106
  "ncp": "2.0.0",
107
- "pixelmatch": "4.0.2",
108
- "pngjs": "5.0.0",
107
+ "pixelmatch": "5.2.1",
108
+ "pngjs": "6.0.0",
109
109
  "prettier": "2.3.0",
110
110
  "sinon": "9.2.4",
111
111
  "source-map-support": "0.5.19",
112
- "standard-version": "9.3.0",
112
+ "standard-version": "9.3.2",
113
113
  "text-diff": "1.0.1",
114
- "ts-node": "9.1.1",
115
- "typescript": "4.2.4"
116
- },
117
- "husky": {
118
- "hooks": {
119
- "pre-commit": "npm run eslint",
120
- "commit-msg": "commitlint --env HUSKY_GIT_PARAMS",
121
- "pre-push": "npm run tsc && npm run eslint && npm run doc && npm run ensure-pinned-deps"
122
- }
114
+ "ts-node": "10.4.0",
115
+ "typescript": "4.4.4"
123
116
  }
124
117
  }
@@ -729,6 +729,7 @@ export class DataGrid extends HTMLElement {
729
729
  const cellIsFocusableCell = anyColumnsSortable && columnIndex === tabbableCell[0] && tabbableCell[1] === 0;
730
730
 
731
731
  return LitHtml.html`<th class=${thClasses}
732
+ style=${LitHtml.Directives.ifDefined(col.styles ? LitHtml.Directives.styleMap(col.styles) : undefined)}
732
733
  data-grid-header-cell=${col.id}
733
734
  @focus=${(): void => {
734
735
  this.focusCellIfRequired([columnIndex, 0]);
@@ -749,7 +750,7 @@ export class DataGrid extends HTMLElement {
749
750
  data-row-index='0'
750
751
  data-col-index=${columnIndex}
751
752
  tabindex=${LitHtml.Directives.ifDefined(anyColumnsSortable ? (cellIsFocusableCell ? '0' : '-1') : undefined)}
752
- >${col.title}</th>`;
753
+ >${col.titleElement || col.title}</th>`;
753
754
  })}
754
755
  </tr>
755
756
  </thead>
@@ -790,6 +791,7 @@ export class DataGrid extends HTMLElement {
790
791
  const cellOutput = col.visible ? renderCellValue(cell) : null;
791
792
  return LitHtml.html`<td
792
793
  class=${cellClasses}
794
+ style=${LitHtml.Directives.ifDefined(col.styles ? LitHtml.Directives.styleMap(col.styles) : undefined)}
793
795
  tabindex=${cellIsFocusableCell ? '0' : '-1'}
794
796
  aria-colindex=${columnIndex + 1}
795
797
  title=${cell.title || String(cell.value).substr(0, 20)}
@@ -6,6 +6,10 @@ import type * as LitHtml from '../../../ui/lit-html/lit-html.js';
6
6
  import * as DataGridRenderers from './DataGridRenderers.js';
7
7
  import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
8
8
 
9
+ export interface CSSStylesObject {
10
+ readonly [name: string]: string;
11
+ }
12
+
9
13
  /**
10
14
  * A column is an object with the following properties:
11
15
  *
@@ -19,14 +23,17 @@ import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
19
23
  * Note, if you're rendering a data-grid yourself you likely shouldn't set
20
24
  * this. It's set by the `data-grid-controller`, which is the component you
21
25
  * want if your table needs to be sortable.
26
+ * - `styles`: an optional property of key-value sets of CSS properties and values.
22
27
  */
23
28
  export interface Column {
24
29
  id: string;
25
30
  title: string;
31
+ titleElement?: LitHtml.TemplateResult;
26
32
  sortable?: boolean;
27
33
  widthWeighting: number;
28
34
  hideable: boolean;
29
35
  visible: boolean;
36
+ styles?: CSSStylesObject;
30
37
  }
31
38
 
32
39
  export type CellValue = string|number|boolean|IconButton.Icon.Icon|null;
@@ -56,14 +63,10 @@ export function getStringifiedCellValues(cells: Cell[]): string {
56
63
  .toLowerCase();
57
64
  }
58
65
 
59
- export interface RowCSSStylesObject {
60
- readonly [name: string]: string;
61
- }
62
-
63
66
  export type Row = {
64
67
  cells: Cell[],
65
68
  hidden?: boolean,
66
- styles?: RowCSSStylesObject,
69
+ styles?: CSSStylesObject,
67
70
  };
68
71
 
69
72
  export const enum SortDirection {
@@ -106,11 +106,6 @@ th.firstVisibleColumn {
106
106
  padding: 0;
107
107
  }
108
108
 
109
- tr td:nth-child(1),
110
- tr th:nth-child(1) {
111
- text-align: center;
112
- }
113
-
114
109
  .filler-row.empty-table td {
115
110
  /* If the table is empty and we have no renderable rows, the filler row cell
116
111
  * needs to have some form of padding to make it have some height, else it
@@ -61,6 +61,7 @@
61
61
  background-color: ButtonFace;
62
62
  }
63
63
 
64
+ .icon-button:focus-visible,
64
65
  .icon-button.with-click-handler:hover {
65
66
  background-color: Highlight;
66
67
  color: HighlightText;
@@ -27,5 +27,5 @@ p {
27
27
 
28
28
  /* Preserve look of legacy checkboxes in dark mode */
29
29
  :host-context(.-theme-with-dark-background) input[type="checkbox"]:not(.-theme-preserve) {
30
- filter: invert(80%);
30
+ accent-color: var(--color-checkbox-accent-color);
31
31
  }
@@ -137,8 +137,11 @@ export class Section {
137
137
  this.items = [];
138
138
  }
139
139
 
140
- appendItem(label: string, handler: () => void, disabled?: boolean): Item {
140
+ appendItem(label: string, handler: () => void, disabled?: boolean, additionalElement?: Element): Item {
141
141
  const item = new Item(this.contextMenu, 'item', label, disabled);
142
+ if (additionalElement) {
143
+ item.customElement = additionalElement;
144
+ }
142
145
  this.items.push(item);
143
146
  if (this.contextMenu) {
144
147
  this.contextMenu.setHandler(item.id(), handler);
@@ -147,7 +150,7 @@ export class Section {
147
150
  }
148
151
 
149
152
  appendCustomItem(element: Element): Item {
150
- const item = new Item(this.contextMenu, 'item', '<custom>');
153
+ const item = new Item(this.contextMenu, 'item');
151
154
  item.customElement = element;
152
155
  this.items.push(item);
153
156
  return item;
@@ -283,10 +283,8 @@ export class Editor<T> {
283
283
  const buttonsRow = this.element.createChild('div', 'editor-buttons');
284
284
  this.commitButton = createTextButton('', this.commitClicked.bind(this), '', true /* primary */);
285
285
  buttonsRow.appendChild(this.commitButton);
286
- this.cancelButton = createTextButton(
287
- i18nString(UIStrings.cancelString), this.cancelClicked.bind(this), '', true /* primary */, 'mousedown');
288
- this.cancelButton.addEventListener(
289
- 'keydown', onKeyDown.bind(null, event => event.key === 'Enter', this.cancelClicked.bind(this)), false);
286
+ this.cancelButton =
287
+ createTextButton(i18nString(UIStrings.cancelString), this.cancelClicked.bind(this), '', true /* primary */);
290
288
  buttonsRow.appendChild(this.cancelButton);
291
289
 
292
290
  this.errorMessageContainer = this.element.createChild('div', 'list-widget-input-validation-error');
@@ -193,7 +193,7 @@ export class SoftContextMenu {
193
193
  subMenuTimer: undefined,
194
194
  };
195
195
 
196
- if (item.element) {
196
+ if (item.element && !item.label) {
197
197
  const wrapper = menuItemElement.createChild('div', 'soft-context-menu-custom-item');
198
198
  wrapper.appendChild(item.element);
199
199
  detailsForElement.customElement = (item.element as HTMLElement);
@@ -205,6 +205,9 @@ export class SoftContextMenu {
205
205
  menuItemElement.classList.add('soft-context-menu-disabled');
206
206
  }
207
207
  createTextChild(menuItemElement, item.label || '');
208
+ if (item.element) {
209
+ menuItemElement.appendChild(item.element);
210
+ }
208
211
  menuItemElement.createChild('span', 'soft-context-menu-shortcut').textContent = item.shortcut || '';
209
212
 
210
213
  menuItemElement.addEventListener('mousedown', this.menuItemMouseDown.bind(this), false);
@@ -5,6 +5,7 @@
5
5
  import * as Host from '../../core/host/host.js';
6
6
  import * as Platform from '../../core/platform/platform.js';
7
7
  import * as ComponentHelpers from '../components/helpers/helpers.js';
8
+ import * as LitHtml from '../lit-html/lit-html.js';
8
9
 
9
10
  import * as ARIAUtils from './ARIAUtils.js';
10
11
  import type {ContextMenu, Provider} from './ContextMenu.js';
@@ -14,9 +15,6 @@ import {addReferrerToURLIfNecessary, copyLinkAddressLabel, MaxLengthForDisplayed
14
15
  import {XElement} from './XElement.js';
15
16
 
16
17
  export class XLink extends XElement {
17
- tabIndex: number;
18
- target: string;
19
- rel: string;
20
18
  hrefInternal: string|null;
21
19
  private clickable: boolean;
22
20
  private readonly onClick: (arg0: Event) => void;
@@ -40,9 +38,9 @@ export class XLink extends XElement {
40
38
 
41
39
  this.style.setProperty('display', 'inline');
42
40
  ARIAUtils.markAsLink(this);
43
- this.tabIndex = 0;
44
- this.target = '_blank';
45
- this.rel = 'noopener';
41
+ this.setAttribute('tabindex', '0');
42
+ this.setAttribute('target', '_blank');
43
+ this.setAttribute('rel', 'noopener');
46
44
 
47
45
  this.hrefInternal = null;
48
46
  this.clickable = true;
@@ -152,3 +150,5 @@ export class ContextMenuProvider implements Provider {
152
150
  }
153
151
 
154
152
  ComponentHelpers.CustomElements.defineComponent('x-link', XLink);
153
+
154
+ export const sample = LitHtml.html`<p>Hello, <x-link>world!</x-link></p>`;
@@ -61,7 +61,7 @@ input.dt-checkbox-themed:checked::after {
61
61
  }
62
62
 
63
63
  :host-context(.-theme-with-dark-background) input:not(.dt-checkbox-themed) {
64
- filter: invert(80%);
64
+ accent-color: var(--color-checkbox-accent-color);
65
65
  }
66
66
 
67
67
  .dt-checkbox-text {
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "dependencies": [
3
- "ui/legacy",
4
- "ui/legacy/components/source_frame",
5
- "ui/legacy/components/text_editor"
3
+ "ui/legacy"
6
4
  ],
7
5
  "resources": [
8
6
  "chartViewport.css",
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "dependencies": [
3
- "ui/legacy/components/text_editor",
4
3
  "ui/legacy"
5
4
  ],
6
5
  "resources": [
@@ -288,7 +288,7 @@ input::placeholder {
288
288
  }
289
289
 
290
290
  :host-context(.-theme-with-dark-background) input[type="checkbox"]:not(.-theme-preserve) {
291
- filter: invert(80%);
291
+ accent-color: var(--color-checkbox-accent-color);
292
292
  }
293
293
 
294
294
  .harmony-input:not([type]),
@@ -113,7 +113,7 @@
113
113
 
114
114
  .cm-css-property,
115
115
  .webkit-css-property {
116
- color: rgb(200 0 0); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
116
+ color: var(--webkit-css-property-color, rgb(200 0 0)); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
117
117
  }
118
118
 
119
119
  .cm-xml-meta {
@@ -213,7 +213,7 @@
213
213
  }
214
214
 
215
215
  .webkit-css-property {
216
- color: rgb(53 212 199); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
216
+ color: var(--webkit-css-property-color, rgb(53 212 199)); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
217
217
  }
218
218
 
219
219
  .cm-def {
@@ -44,6 +44,12 @@
44
44
  white-space: nowrap;
45
45
  }
46
46
 
47
+ .soft-context-menu-item devtools-icon {
48
+ --icon-color: var(--color-text-secondary);
49
+
50
+ pointer-events: none;
51
+ }
52
+
47
53
  .soft-context-menu-disabled {
48
54
  color: var(--color-text-disabled);
49
55
  pointer-events: none;
@@ -66,6 +72,10 @@
66
72
  color: var(--override-context-menu-hover-text-color);
67
73
  }
68
74
 
75
+ .soft-context-menu-item-mouse-over devtools-icon {
76
+ --icon-color: var(--override-context-menu-hover-text-color);
77
+ }
78
+
69
79
  .-theme-with-dark-background .soft-context-menu-item-mouse-over,
70
80
  :host-context(.-theme-with-dark-background) .soft-context-menu-item-mouse-over {
71
81
  --override-dark-mode-focus-color: #1a73e8;
@@ -390,6 +390,11 @@
390
390
  color: HighlightText;
391
391
  }
392
392
 
393
+ .tabbed-pane-header-tab:hover .tabbed-pane-close-button,
394
+ .tabbed-pane-shadow .tabbed-pane-header-tab:focus-visible .tabbed-pane-close-button {
395
+ --icon-color: HighlightText;
396
+ }
397
+
393
398
  .tabbed-pane-header-tabs-drop-down-container {
394
399
  opacity: 100%;
395
400
  }
@@ -233,6 +233,7 @@
233
233
  --color-error-text: hsl(0deg 100% 75%);
234
234
  --color-error-border: rgb(92 0 0);
235
235
  --color-error-background: hsl(0deg 100% 8%);
236
+ --color-checkbox-accent-color: rgb(255 165 0);
236
237
  /* Colors for styling inputs */
237
238
  --color-input-outline: rgb(189 193 198);
238
239
  --color-input-outline-active: rgb(138 180 248);
@@ -215,4 +215,20 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus * {
215
215
  forced-color-adjust: none;
216
216
  color: HighlightText;
217
217
  }
218
+
219
+ .tree-outline:not(.hide-selection-when-blurred) li.selected:focus-visible devtools-adorner,
220
+ .tree-outline.hide-selection-when-blurred li.selected:focus-visible devtools-adorner {
221
+ --override-adorner-background-color: Highlight;
222
+ --override-adorner-border-color: HighlightText;
223
+ }
224
+
225
+ .tree-outline:not(.hide-selection-when-blurred) devtools-icon,
226
+ .tree-outline.hide-selection-when-blurred devtools-icon {
227
+ --icon-color: ButtonText;
228
+ }
229
+
230
+ .tree-outline:not(.hide-selection-when-blurred) .selected devtools-icon,
231
+ .tree-outline.hide-selection-when-blurred .selected:focus-visible devtools-icon {
232
+ --icon-color: HighlightText;
233
+ }
218
234
  }
@@ -71,7 +71,12 @@
71
71
  @media (forced-colors: active) {
72
72
  .expandable-view-title:focus-visible {
73
73
  forced-color-adjust: none;
74
- background: canvas !important; /* stylelint-disable-line declaration-no-important */
74
+ color: HighlightText;
75
+ background-color: Highlight;
75
76
  box-shadow: 0 0 0 2px Highlight inset;
76
77
  }
78
+
79
+ .expandable-view-title:focus-visible .title-expand-icon {
80
+ background-color: HighlightText;
81
+ }
77
82
  }
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.936819"
58
+ "version": "1.0.938678"
59
59
  }
@@ -12,7 +12,7 @@ const destPath = path.join(process.cwd(), dest);
12
12
  // is because the file in that location might be a hardlinked file, and
13
13
  // overwriting it doesn't change the fact that it's hardlinked.
14
14
  const srcContents = fs.readFileSync(srcPath);
15
- if (fs.existsSync(destPath)) {
15
+ if (fileExists(destPath)) {
16
16
  // Check contents, return early if match
17
17
  const destContents = fs.readFileSync(destPath);
18
18
  if (srcContents.equals(destContents)) {
@@ -24,3 +24,12 @@ if (fs.existsSync(destPath)) {
24
24
  // toolchain will create a hardlink, which in turn reflects changes in
25
25
  // gen and resources/inspector back to //front_end.
26
26
  fs.writeFileSync(destPath, srcContents);
27
+
28
+ /**
29
+ * Case sensitive implementation of a file look up.
30
+ */
31
+ function fileExists(filePath) {
32
+ const dir = path.dirname(filePath);
33
+ const files = fs.readdirSync(dir);
34
+ return files.includes(path.basename(filePath));
35
+ }
@@ -13,7 +13,7 @@ for (const file of files.split(',')) {
13
13
  // is because the file in that location might be a hardlinked file, and
14
14
  // overwriting it doesn't change the fact that it's hardlinked.
15
15
  const srcContents = fs.readFileSync(srcPath);
16
- if (fs.existsSync(destPath)) {
16
+ if (fileExists(destPath)) {
17
17
  // Check contents, return early if match
18
18
  const destContents = fs.readFileSync(destPath);
19
19
  if (srcContents.equals(destContents)) {
@@ -26,3 +26,12 @@ for (const file of files.split(',')) {
26
26
  // gen and resources/inspector back to //front_end.
27
27
  fs.writeFileSync(destPath, srcContents);
28
28
  }
29
+
30
+ /**
31
+ * Case sensitive implementation of a file look up.
32
+ */
33
+ function fileExists(filePath) {
34
+ const dir = path.dirname(filePath);
35
+ const files = fs.readdirSync(dir);
36
+ return files.includes(path.basename(filePath));
37
+ }
@@ -47,7 +47,8 @@ module.exports = {
47
47
  create: function(context) {
48
48
  return {
49
49
  MemberExpression(node) {
50
- if (node.object.name === 'it' && (node.property.name === 'skip' || node.property.name === 'skipOnPlatforms') &&
50
+ if ((node.object.name === 'it' || node.object.name === 'describe') &&
51
+ (node.property.name === 'skip' || node.property.name === 'skipOnPlatforms') &&
51
52
  node.parent.type === 'CallExpression') {
52
53
  const testNameNode = node.property.name === 'skip' ? node.parent.arguments[0] : node.parent.arguments[1];
53
54
 
@@ -62,6 +62,24 @@ ruleTester.run('check_e2e_tests', rule, {
62
62
  `,
63
63
  filename: 'test/e2e/folder/file.ts',
64
64
  },
65
+ {
66
+ code: `import {describe, it} from '../../shared/mocha-extensions.js';
67
+ // Explaining comment
68
+ describe.skip('[crbug.com/123456]: e2e-test', async () => {
69
+ });
70
+ `,
71
+ filename: 'test/e2e/folder/file.ts',
72
+ errors: [{message: rule.meta.messages.missingBugId}],
73
+ },
74
+ {
75
+ code: `import {describe, it} from '../../shared/mocha-extensions.js';
76
+ // Explaining comment
77
+ describe.skipOnPlatforms(['mac'], '[crbug.com/123456]: e2e-test', async () => {
78
+ });
79
+ `,
80
+ filename: 'test/e2e/folder/file.ts',
81
+ errors: [{message: rule.meta.messages.missingBugId}],
82
+ },
65
83
  ],
66
84
 
67
85
  invalid: [
@@ -111,5 +129,21 @@ ruleTester.run('check_e2e_tests', rule, {
111
129
  filename: 'test/e2e/folder/file.ts',
112
130
  errors: [{message: rule.meta.messages.extraBugId}],
113
131
  },
132
+ {
133
+ code: `import {describe, it} from '../../shared/mocha-extensions.js';
134
+ describe.skip('e2e-test', async () => {
135
+ });
136
+ `,
137
+ filename: 'test/e2e/folder/file.ts',
138
+ errors: [{message: rule.meta.messages.missingBugId}, {message: rule.meta.messages.comment}],
139
+ },
140
+ {
141
+ code: `import {describe, it} from '../../shared/mocha-extensions.js';
142
+ describe.skipOnPlatforms(['mac'], 'e2e-test', async () => {
143
+ });
144
+ `,
145
+ filename: 'test/e2e/folder/file.ts',
146
+ errors: [{message: rule.meta.messages.missingBugId}, {message: rule.meta.messages.comment}],
147
+ },
114
148
  ]
115
149
  });
@@ -12,7 +12,7 @@ const ruleTester = new (require('eslint').RuleTester)({
12
12
 
13
13
  const MIGRATION_ERROR_MESSAGE = 'Import CSS file instead of passing a string into createShadowRootWithStyles';
14
14
  const MANUALLY_MIGRATE_ERROR_ESSAGE =
15
- 'Please manually migrate this file. Got error: Cannot read property \'properties\' of undefined';
15
+ 'Please manually migrate this file. Got error: Cannot read properties of undefined (reading \'properties\')';
16
16
 
17
17
  ruleTester.run('check_migrate_RegisterRequiredCSS', rule, {
18
18
  valid: [
@@ -15,7 +15,7 @@ const ADD_WAS_SHOW_EXPECTED_ERROR_MESSAGE =
15
15
  const EDIT_WAS_SHOW_EXPECTED_ERROR_MESSAGE =
16
16
  'Import CSS file instead of using registerRequiredCSS and edit wasShown method';
17
17
  const MANUALLY_MIGRATE_ERROR_ESSAGE =
18
- 'Please manually migrate components/test.css as it has edge cases not covered by this script. Got error: Cannot read property \'range\' of undefined.';
18
+ 'Please manually migrate components/test.css as it has edge cases not covered by this script. Got error: Cannot read properties of undefined (reading \'range\').';
19
19
 
20
20
  ruleTester.run('check_migrate_RegisterRequiredCSS', rule, {
21
21
  valid: [
@@ -1,9 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ],
5
- "resources": [
6
- "nodeIcon.css",
7
- "renderingOptions.css"
8
- ]
9
- }
@@ -1,7 +0,0 @@
1
- {
2
- "resources": [
3
- "accessibilityNode.css",
4
- "accessibilityProperties.css",
5
- "axBreadcrumbs.css"
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/elements",
4
- "panels/sources",
5
- "panels/console"
6
- ]
7
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy",
4
- "ui/legacy/components/text_editor"
5
- ]
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy/components/source_frame",
4
- "ui/legacy"
5
- ]
6
- }
@@ -1,4 +0,0 @@
1
- {
2
- "dependencies": [
3
- ]
4
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy",
4
- "ui/legacy/components/text_editor"
5
- ]
6
- }