Skip to content

Remove "interact" flags for tests that can be run automatically#5370

Merged
mrego merged 3 commits into
web-platform-tests:masterfrom
mrego:remove-interact-flag
Apr 7, 2017
Merged

Remove "interact" flags for tests that can be run automatically#5370
mrego merged 3 commits into
web-platform-tests:masterfrom
mrego:remove-interact-flag

Conversation

@mrego

@mrego mrego commented Apr 4, 2017

Copy link
Copy Markdown
Member

There were a bunch of tests that have both a reference file and
the "interact" flag.
They use some small JavaScript to execute some steps
before checking the output against reference file.
This caused them to be wrongly considered manual tests
when they can be run automatically.

For more info check w3c/wpt-tools#196 and w3c/wpt-tools#197.


This change is Reviewable

@mrego mrego requested review from gsnedders and jgraham April 4, 2017 21:31
@wpt-pr-bot

Copy link
Copy Markdown
Collaborator

@ghost

ghost commented Apr 4, 2017

Copy link
Copy Markdown

View the complete job log.

Firefox (nightly channel)

Testing web-platform-tests at revision 4e42c4c
Using browser at version BuildID 20170406100208; SourceStamp 3c68d659c2b715f811708f043a1e7169d77be2ba
Starting 10 test iterations
All results were stable

All results

29 tests ran
/css/CSS2/backgrounds/background-root-012b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-013b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-014b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-017.xht
Subtest Results Messages
PASS
/css/css-regions-1/contentEditable/contentEditable-001.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-002.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-003.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-004.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-005.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-006.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-007.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-008.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-009.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-010.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-011.html
Subtest Results Messages
FAIL
/css/css-writing-modes-3/background-position-vrl-018.xht
Subtest Results Messages
PASS
/css/css-writing-modes-3/background-position-vrl-020.xht
Subtest Results Messages
PASS
/css/css-writing-modes-3/background-position-vrl-022.xht
Subtest Results Messages
PASS
/css/selectors4/focus-within-001.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-002.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-003.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-004.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-005.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-006.html
Subtest Results Messages
PASS
/css/selectors4/focus-within-shadow-001.html
Subtest Results Messages
TIMEOUT
/css/selectors4/focus-within-shadow-002.html
Subtest Results Messages
TIMEOUT
/css/selectors4/focus-within-shadow-003.html
Subtest Results Messages
TIMEOUT
/css/selectors4/focus-within-shadow-004.html
Subtest Results Messages
TIMEOUT
/css/selectors4/focus-within-shadow-005.html
Subtest Results Messages
TIMEOUT

@ghost

ghost commented Apr 4, 2017

Copy link
Copy Markdown

View the complete job log.

Chrome (unstable channel)

Testing web-platform-tests at revision 4e42c4c
Using browser at version 59.0.3063.4 dev
Starting 10 test iterations
All results were stable

All results

29 tests ran
/css/CSS2/backgrounds/background-root-012b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-013b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-014b.xht
Subtest Results Messages
PASS
/css/CSS2/backgrounds/background-root-017.xht
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-001.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-002.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-003.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-004.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-005.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-006.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-007.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-008.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-009.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-010.html
Subtest Results Messages
FAIL
/css/css-regions-1/contentEditable/contentEditable-011.html
Subtest Results Messages
FAIL
/css/css-writing-modes-3/background-position-vrl-018.xht
Subtest Results Messages
PASS
/css/css-writing-modes-3/background-position-vrl-020.xht
Subtest Results Messages
PASS
/css/css-writing-modes-3/background-position-vrl-022.xht
Subtest Results Messages
PASS
/css/selectors4/focus-within-001.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-002.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-003.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-004.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-005.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-006.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-shadow-001.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-shadow-002.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-shadow-003.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-shadow-004.html
Subtest Results Messages
FAIL
/css/selectors4/focus-within-shadow-005.html
Subtest Results Messages
FAIL

@frivoal frivoal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've reviewed this because some tests for focus within where in there, and I've worked on that feature and some of these tests. I've reviewed the rest of the PR while I was at it, but feedback from someone familiar with the tests / specs being tests would probably be good.

Please see the individual comments from adjustments that should be made before merging.

<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo">
<link rel="match" href="focus-within-001-ref.html">
<meta name="flags" content="interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • It is better to switch to <meta name="flags" content=""> than to remove the line. Makes it clear that you have considered the question and decided that there was no need for flags, instead of maybe forgetting to think about it.

  • If you remove the interact flag, the comment above the javascript about it being an optional convenience becomes wrong and needs to be removed: either the test is interactive and the js is a optional helper, or it is automated and js is required.

  • As we switch to js required, it would be good to add class="reftest-wait" on the root, and remove it once js has run, so that we make sure that the ref comparison is done at the right time, and that if js fails to run for some reason, we detect it as a test that failed to run rather than a failure to implement focus-within correctly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok, I've done this in all the tests.

I'm still removing the empty flags, but I can add it if it's a blocker to land this. I have seen many tests that don't have it.

<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo">
<link rel="match" href="focus-within-001-ref.html">
<meta name="flags" content="interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as for focus-within-001

<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo">
<link rel="match" href="focus-within-001-ref.html">
<meta name="flags" content="interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as for focus-within-001

<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo">
<link rel="match" href="focus-within-001-ref.html">
<meta name="flags" content="interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as for focus-within-001

<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo">
<link rel="match" href="focus-within-001-ref.html">
<meta name="flags" content="interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as for focus-within-001

<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/html5/editing.html#contenteditable">
<meta name="flags" content="dom interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as css-regions-1/contentEditable/contentEditable-001.html

<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/html5/editing.html#contenteditable">
<meta name="flags" content="dom interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as css-regions-1/contentEditable/contentEditable-001.html

<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/html5/editing.html#contenteditable">
<meta name="flags" content="dom interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as css-regions-1/contentEditable/contentEditable-001.html

<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/html5/editing.html#contenteditable">
<meta name="flags" content="dom interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as css-regions-1/contentEditable/contentEditable-001.html

<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<link rel="help" href="http://www.w3.org/TR/html5/editing.html#contenteditable">
<meta name="flags" content="dom interact">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment as css-regions-1/contentEditable/contentEditable-001.html

@mrego

mrego commented Apr 5, 2017

Copy link
Copy Markdown
Member Author

Thanks @frivoal for the thorough review. I'll do the changes, but I'm not 100% sure about the empty flags stuff:

  <meta name="flags" content="">

I cannot find any documentation saying that this is mandatory, and the initial examples in the doc don't use it.
@gsnedders is there any agreement regarding this topic?

@ghost

ghost commented Apr 5, 2017

Copy link
Copy Markdown

These tests are now available on w3c-test.org

@mrego

mrego commented Apr 5, 2017

Copy link
Copy Markdown
Member Author

@frivoal I've applied the suggested changes, expect keeping the empty flags, and uploaded a new version.

@gsnedders

Copy link
Copy Markdown
Member

Per the readme, we shouldn't be editing things in css/vendor-import. That said, I've got no idea if @dbaron is going to be importing any upstream changes any time soon, and how much of a pain exporting changes here in the meantime will be?

@gsnedders

Copy link
Copy Markdown
Member

@mrego I don't think there's any real preference either way. I'd rather not have them bloating the file, on the whole.

@frivoal

frivoal commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

@mrego: based on @gsnedders's comment, can you back out the changes to the tests under vendor-imports/ These are meant to be fixed upstream, not here. Let's not cause any merge conflict for next time Mozilla wants to sync things. Maybe you want to send this fix directly to them? I don't know if you have access to Mozilla's repos.

Once that's done, I'll merge.

@mrego

mrego commented Apr 5, 2017

Copy link
Copy Markdown
Member Author

Ok, I've just reverted the changes on the Mozilla tests, I'll send them upstream to Firefox bugzilla.

@frivoal

frivoal commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

@mrego Having some problems with travis failing tests. Can you rebase on top of the latest master to catch the fix for #5330 ?

@frivoal

frivoal commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

@mrego actually, I see that you've already merged master in. @gsnedders, any idea what travis is still complaining about?

@gsnedders

Copy link
Copy Markdown
Member

Probably jugglinmike/chrome-screenshot-race#1.

@gsnedders

Copy link
Copy Markdown
Member

@frivoal the failure mode of #5330 is getting the "Unstable results" with nothing below it, for reference.

@mrego

mrego commented Apr 5, 2017

Copy link
Copy Markdown
Member Author

I'm not sure if I'm checking the right thing, but the results I see don't make a lot of sense to me.
Specially the focus-within ones:

ERROR:check_stability:| `/css/selectors4/focus-within-001.html`                       |         | **FAIL: 6/10, PASS: 4/10** |          |

The feature is not implemented yet, so it's impossible that the test is passing.

@mrego mrego force-pushed the remove-interact-flag branch from bf87a39 to e305c97 Compare April 5, 2017 19:28
@frivoal

frivoal commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

@gsnedders @jugglinmike @mrego

The feature is not implemented yet, so it's impossible that the test is passing.

Right, the test results don't make sense to me either. Here and in other ref-tests PR I've been working on (#5285, #5283). If the Chrome stability test isn't working right due to jugglinmike/chrome-screenshot-race#1 or whatever, shouldn't we disable it until it is fixed? For now it's doing more harm than good.

@frivoal frivoal self-assigned this Apr 6, 2017
@gsnedders

Copy link
Copy Markdown
Member

The latest Travis build seems to have run into #5407

@mrego

mrego commented Apr 7, 2017

Copy link
Copy Markdown
Member Author

JFTR, Mozilla tests have been modified upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1354006

mrego added 3 commits April 7, 2017 09:05
There were a bunch of tests that have both a reference file and
the "interact" flag.
They use some small JavaScript to execute some steps
before checking the output against reference file.
This caused them to be wrongly considered manual tests
when they can be run automatically.

For more info check w3c/wpt-tools#196 and w3c/wpt-tools#197.
…flag

Basically this patch does the following:
* Duplicate some tests so now they have an automatic part and a manual one
  (as it's required to resize the window).
* Use "reftest-wait" class to be sure that the JavaScript steps
  have been completed before checking the reference.
* Remove some wrong "reftest-wait" used outside the root element.
* Remove some wrong comments now that the tests are automatic.
@mrego mrego force-pushed the remove-interact-flag branch from e305c97 to 8f7d277 Compare April 7, 2017 07:06
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 7, 2017
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.
@mrego

mrego commented Apr 7, 2017

Copy link
Copy Markdown
Member Author

Ok, it seems we can merge this now. Nice!

@mrego mrego merged commit a460e79 into web-platform-tests:master Apr 7, 2017
@mrego mrego deleted the remove-interact-flag branch April 10, 2017 04:25
Manishearth pushed a commit to Manishearth/gecko-dev that referenced this pull request Apr 11, 2017
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this pull request Apr 12, 2017
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.

UltraBlame original commit: 83eeccc86babcfc64c268fb7fad04af05470578c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.

UltraBlame original commit: 83eeccc86babcfc64c268fb7fad04af05470578c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.

UltraBlame original commit: 83eeccc86babcfc64c268fb7fad04af05470578c
sergiotarxz pushed a commit to sergiotarxz/JapacharBrowser that referenced this pull request Mar 23, 2026
…tests. r=xidorn

This patch has been extracted from:
web-platform-tests/wpt#5370

The problem is that the "interact" flag on these tests
causes that they are considered manual,
when they can be run automatically.

This patch removes the "interact" flag and uses "reftest-wait" class
to be sure that the test has been completed.
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.

4 participants