Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add element-timing #1616

Open
browser-specs-bot opened this issue Dec 18, 2024 · 2 comments
Open

Add element-timing #1616

browser-specs-bot opened this issue Dec 18, 2024 · 2 comments
Labels
monitor new spec Suggestion to add a new spec

Comments

@browser-specs-bot
Copy link
Collaborator

URL

https://w3c.github.io/element-timing/

Rationale

Additional properties

{}
@browser-specs-bot browser-specs-bot added the new spec Suggestion to add a new spec label Dec 18, 2024
@browser-specs-bot
Copy link
Collaborator Author

Changes to index.json

This update would trigger the following changes in index.json:

Add spec (1)
{
  "url": "https://w3c.github.io/element-timing/",
  "seriesComposition": "full",
  "shortname": "element-timing",
  "series": {
    "shortname": "element-timing",
    "currentSpecification": "element-timing",
    "title": "Element Timing API",
    "shortTitle": "Element Timing API",
    "nightlyUrl": "https://wicg.github.io/element-timing/"
  },
  "organization": "W3C",
  "groups": [
    {
      "name": "Web Platform Incubator Community Group",
      "url": "https://www.w3.org/community/wicg/"
    }
  ],
  "nightly": {
    "url": "https://wicg.github.io/element-timing/",
    "status": "Draft Community Group Report",
    "alternateUrls": [],
    "repository": "https://github.com/WICG/element-timing",
    "sourcePath": "index.bs",
    "filename": null
  },
  "title": "Element Timing API",
  "source": "specref",
  "shortTitle": "Element Timing API",
  "categories": [
    "browser"
  ],
  "standing": "good",
  "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
      "element-timing"
    ]
  }
}

Tests

With these changes, the following tests would fail:

The `index.json` list respects the JSON schema

Expected:

null

Actual:

[
  {
    "instancePath": "/164/nightly/filename",
    "schemaPath": "#/$defs/filename/type",
    "keyword": "type",
    "params": {
      "type": "string"
    },
    "message": "must be string"
  }
]
The `index.json` list has unique shortnames

Expected:

[]

Actual:

[
  {
    "url": "https://wicg.github.io/element-timing/",
    "seriesComposition": "full",
    "shortname": "element-timing",
    "series": {
      "shortname": "element-timing",
      "currentSpecification": "element-timing",
      "title": "Element Timing API",
      "shortTitle": "Element Timing API",
      "nightlyUrl": "https://wicg.github.io/element-timing/"
    },
    "organization": "W3C",
    "groups": [
      {
        "name": "Web Platform Incubator Community Group",
        "url": "https://www.w3.org/community/wicg/"
      }
    ],
    "nightly": {
      "url": "https://wicg.github.io/element-timing/",
      "status": "Draft Community Group Report",
      "alternateUrls": [],
      "repository": "https://github.com/WICG/element-timing",
      "sourcePath": "index.bs",
      "filename": "index.html"
    },
    "title": "Element Timing API",
    "source": "specref",
    "shortTitle": "Element Timing API",
    "categories": [
      "browser"
    ],
    "standing": "good",
    "tests": {
      "repository": "https://github.com/web-platform-tests/wpt",
      "testPaths": [
        "element-timing"
      ]
    }
  }
]
The `index.json` list contains filenames for all nightly URLs

Expected:

[]

Actual:

[
  {
    "url": "https://w3c.github.io/element-timing/",
    "seriesComposition": "full",
    "shortname": "element-timing",
    "series": {
      "shortname": "element-timing",
      "currentSpecification": "element-timing",
      "title": "Element Timing API",
      "shortTitle": "Element Timing API",
      "nightlyUrl": "https://wicg.github.io/element-timing/"
    },
    "organization": "W3C",
    "groups": [
      {
        "name": "Web Platform Incubator Community Group",
        "url": "https://www.w3.org/community/wicg/"
      }
    ],
    "nightly": {
      "url": "https://wicg.github.io/element-timing/",
      "status": "Draft Community Group Report",
      "alternateUrls": [],
      "repository": "https://github.com/WICG/element-timing",
      "sourcePath": "index.bs",
      "filename": null
    },
    "title": "Element Timing API",
    "source": "specref",
    "shortTitle": "Element Timing API",
    "categories": [
      "browser"
    ],
    "standing": "good",
    "tests": {
      "repository": "https://github.com/web-platform-tests/wpt",
      "testPaths": [
        "element-timing"
      ]
    }
  }
]

@tidoust
Copy link
Member

tidoust commented Dec 18, 2024

The spec still targets the (now broken) WICG URL as Editor's Draft and the w3c.json has not been updated yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monitor new spec Suggestion to add a new spec
Projects
None yet
Development

No branches or pull requests

2 participants