-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add virtual suite with recent dir and lang changes disabled.
I filtered out all but one of the relevant reftests that pass only with the changes, but I was a bit more generous with the script tests since we check the error messages, and in some cases parts of the failing tests, or which error message we get, is testing something useful. A content_shell built from 0e979ba produces results that match these expectations (which shows that recent changes didn't break the disabled state). Bug: 576815, 1490711 Change-Id: I144842c669e8184cb560fae9e094bcdc612e333e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4982141 Commit-Queue: Mason Freed <masonf@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Auto-Submit: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216389}
- Loading branch information
Showing
12 changed files
with
314 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
third_party/blink/web_tests/virtual/dir-pseudo-disabled/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This suite runs tests with --disable-blink-features=CSSPseudoDir and | ||
--disable-blink-features=HTMLLangNewInheritance | ||
|
||
This is intended to make sure we don't change the relevant tests in case | ||
we need to revert these feature flags. |
13 changes: 13 additions & 0 deletions
13
...ual/dir-pseudo-disabled/external/wpt/css/selectors/dir-pseudo-on-bdi-element-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] bdi element without dir content attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] bdi element with invalid dir content attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] bdi element with dir=auto content attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] bdi element with dir=ltr content attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] bdi element with dir=rtl content attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
41 changes: 41 additions & 0 deletions
41
...l/dir-pseudo-disabled/external/wpt/css/selectors/dir-pseudo-on-input-element-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] input element whose type attribute is in the telephone state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the telephone state in a RTL block | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the password state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the text state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the search state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the url state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the email state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the submit state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the reset state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the button state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] dynamic changes to type of input elements affect whether value is used for dir=auto | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the date state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the time state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the number state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the range state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the color state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the checkbox state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the radio state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] input element whose type attribute is in the image state | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
47 changes: 47 additions & 0 deletions
47
...sts/virtual/dir-pseudo-disabled/external/wpt/css/selectors/dir-selector-auto-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] Initial directionality of element div1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div1_1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div2 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div2:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div2_1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div2_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div3 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div3:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div3_1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div3_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div3_2 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div3_2:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div4 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div4:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div4_1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div4_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Initial directionality of element div4_1_1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div4_1_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div1_1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div1_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div1_1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Reupdated directionality of element div1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1:dir(ltr)' is not a valid selector. | ||
[FAIL] Reupdated directionality of element div1_1 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div1_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div2 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div2:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div3 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div3:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div3 is ltr | ||
Failed to execute 'querySelector' on 'Document': '#div3:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div4 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div4:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div4_1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div4_1:dir(ltr)' is not a valid selector. | ||
[FAIL] Updated directionality of element div4_1_1 is rtl | ||
Failed to execute 'querySelector' on 'Document': '#div4_1_1:dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
10 changes: 10 additions & 0 deletions
10
...al/dir-pseudo-disabled/external/wpt/css/selectors/dir-selector-querySelector-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] :dir() allows any ident value but strings other than ltr/rtl don't match | ||
Failed to execute 'querySelector' on 'Document': ':dir(lol)' is not a valid selector. | ||
[PASS] :dir() requires exactly an ident argument | ||
[FAIL] :dir() works in compound selectors | ||
Failed to execute 'querySelector' on 'Document': ':dir(rtl)' is not a valid selector. | ||
[FAIL] :dir() works in complex selectors | ||
Failed to execute 'querySelector' on 'Document': '#div2 :dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
19 changes: 19 additions & 0 deletions
19
...isabled/external/wpt/html/dom/elements/global-attributes/dir-assorted.window-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] Root element has a direction | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] Element outside the document tree has a direction | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] Non-HTML element outside the document tree has a direction | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] Element without direction has parent element direction | ||
Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector. | ||
[FAIL] Non-HTML element without direction has parent element direction | ||
Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector. | ||
[FAIL] dir inheritance is correct after insertion and removal from document | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] Non-HTML element text contents influence dir=auto | ||
Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector. | ||
[FAIL] text changes apply to dir=auto on further ancestor after removing dir=auto from closer ancestor | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
19 changes: 19 additions & 0 deletions
19
...rnal/wpt/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This is a testharness.js-based test. | ||
[FAIL] dynamic insertion of RTL text in a child element | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] dir=auto changes for content insertion and removal, in and out of document | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] dir=auto changes for slot reassignment | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] text changes affecting both slot and ancestor with dir=auto | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] dynamic changes to subtrees excluded as a result of the dir attribute | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] dynamic changes inside of non-HTML elements | ||
Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector. | ||
[FAIL] slotted non-HTML elements | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
[FAIL] slotted non-HTML elements after dynamically assigning dir=auto, and dir attribute ignored on non-HTML elements | ||
Failed to execute 'matches' on 'Element': ':dir(ltr)' is not a valid selector. | ||
Harness: the test ran to completion. | ||
|
Oops, something went wrong.