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

[appmanifest] add basic tests for start_url #24574

Merged

Conversation

christianliebel
Copy link
Contributor

No description provided.

@marcoscaceres
Copy link
Contributor

Hmm... linter failed but it doesn't seem to provide any info (or I can't figure out the UI to get info). We might need lint locally.

@stephenmcgruer
Copy link
Contributor

Hmm... linter failed but it doesn't seem to provide any info (or I can't figure out the UI to get info). We might need lint locally.

It does, but it's unfortunately still a pain to get to until we land support for github actions 'output'. But if you follow 'View task in Taskcluster' and then 'View Live Log' (a complete pain, we know), you get:

./wpt lint --all
ERROR:lint:appmanifest/start_url-member/start_url-member-fail.webmanifest:2: Internal web-platform.test domain used (WEB-PLATFORM.TEST)
ERROR:lint:appmanifest/start_url-member/start_url-member-fail-manual.html:4: Internal web-platform.test domain used (WEB-PLATFORM.TEST)
ERROR:lint:appmanifest/start_url-member/start_url-member-fail-manual.html:9: Internal web-platform.test domain used (WEB-PLATFORM.TEST)
ERROR:lint:appmanifest/start_url-member/start_url-member-fail-manual.html:10: Internal web-platform.test domain used (WEB-PLATFORM.TEST)
INFO:lint:
INFO:lint:There were 4 errors (WEB-PLATFORM.TEST: 4)
INFO:lint:You must fix all errors; for details on how to fix them, see
INFO:lint:https://web-platform-tests.org/writing-tests/lint-tool.html
INFO:lint:
INFO:lint:However, instead of fixing a particular error, it's sometimes
INFO:lint:OK to add a line to the lint.ignore file in the root of the
INFO:lint:web-platform-tests directory to make the lint tool ignore it.
INFO:lint:
INFO:lint:For example, to make the lint tool ignore all 'WEB-PLATFORM.TEST'
INFO:lint:errors in the appmanifest/start_url-member/start_url-member-fail-manual.html file,
INFO:lint:you could add the following line to the lint.ignore file.
INFO:lint:
INFO:lint:WEB-PLATFORM.TEST: appmanifest/start_url-member/start_url-member-fail-manual.html

Interestingly, that's also not a particularly useful error message from the linter. Clearly doing that is wrong, but it doesn't explain why or importantly what to use instead.

@marcoscaceres
Copy link
Contributor

Clearly doing that is wrong, but it doesn't explain why or importantly what to use instead.

I had a feeling that was the problem :) Yeah, some guidance there would be really helpful specially for these manual tests.

@stephenmcgruer
Copy link
Contributor

I had a feeling that was the problem :) Yeah, some guidance there would be really helpful specially for these manual tests.

I've sent #24720 for this

Hexcles pushed a commit that referenced this pull request Jul 27, 2020
@marcoscaceres
Copy link
Contributor

Thanks @stephenmcgruer! @christianliebel is going to take a look and we should hopefully have a fix next week (@christianliebel we can try to work on these together next Monday if the changes look tricky).

@christianliebel
Copy link
Contributor Author

@marcoscaceres Fixed! Thank you, @stephenmcgruer.

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Aug 1, 2020
….test lint rule, a=testonly

Automatic update from web-platform-tests
Document how to address the web-platform.test lint rule (#24720)

See web-platform-tests/wpt#24574 (comment)

And update link in docs.
--

wpt-commits: 2afcc84e7da41d6763dca88c48a101f8c85d4ee9
wpt-pr: 24720
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Aug 1, 2020
….test lint rule, a=testonly

Automatic update from web-platform-tests
Document how to address the web-platform.test lint rule (#24720)

See web-platform-tests/wpt#24574 (comment)

And update link in docs.
--

wpt-commits: 2afcc84e7da41d6763dca88c48a101f8c85d4ee9
wpt-pr: 24720
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Aug 3, 2020
….test lint rule, a=testonly

Automatic update from web-platform-tests
Document how to address the web-platform.test lint rule (#24720)

See web-platform-tests/wpt#24574 (comment)

And update link in docs.
--

wpt-commits: 2afcc84e7da41d6763dca88c48a101f8c85d4ee9
wpt-pr: 24720

UltraBlame original commit: 8404a8353d59148f49c8edc947c9d384bb1def2f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Aug 3, 2020
….test lint rule, a=testonly

Automatic update from web-platform-tests
Document how to address the web-platform.test lint rule (#24720)

See web-platform-tests/wpt#24574 (comment)

And update link in docs.
--

wpt-commits: 2afcc84e7da41d6763dca88c48a101f8c85d4ee9
wpt-pr: 24720

UltraBlame original commit: 8404a8353d59148f49c8edc947c9d384bb1def2f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Aug 3, 2020
….test lint rule, a=testonly

Automatic update from web-platform-tests
Document how to address the web-platform.test lint rule (#24720)

See web-platform-tests/wpt#24574 (comment)

And update link in docs.
--

wpt-commits: 2afcc84e7da41d6763dca88c48a101f8c85d4ee9
wpt-pr: 24720

UltraBlame original commit: 8404a8353d59148f49c8edc947c9d384bb1def2f
Copy link
Contributor

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! nice one @christianliebel.

@marcoscaceres marcoscaceres merged commit 28e07e1 into web-platform-tests:master Aug 4, 2020
@christianliebel christianliebel deleted the appmanifest/start_url branch August 7, 2020 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants