chromium/third_party/blink/web_tests/http/tests/inspector-protocol/issues/deprecation-issue.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  const { session, dp } = await testRunner.startBlank(`Tests that deprecation issues are reported`);
  await dp.Audits.enable();
  const promise = dp.Audits.onceIssueAdded();
  // Update this to test different deprecated code if WebFeature::kRangeExpand is removed.
  session.evaluate("document.createRange().expand('document')");
  const result = await promise;
  testRunner.log(result.params, "Inspector issue: ");
  testRunner.completeTest();
})