Skip to content

Commit

Permalink
Import wpt@5e8c40ff417f1f27aa4469f720892da26b2672df
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium 54851d0.
With Chromium commits locally applied on WPT:
c2fe225 "[initial-letter] Make initail-letter text to take ::first-line style"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
kojii@chromium.org:
  external/wpt/css/css-writing-modes

NOAUTOREVERT=true
R=rubber-stamper@appspot.gserviceaccount.com

No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-input-fyi-rel,linux-blink-rel
Change-Id: I577cb274ba0576a8cf6c225500799978e097d8e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4056077
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1075655}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Nov 25, 2022
1 parent d24c82a commit 4995d83
Show file tree
Hide file tree
Showing 11 changed files with 3,122 additions and 10 deletions.
1,235 changes: 1,235 additions & 0 deletions third_party/blink/web_tests/FlagExpectations/disable-layout-ng

Large diffs are not rendered by default.

1,254 changes: 1,250 additions & 4 deletions third_party/blink/web_tests/TestExpectations

Large diffs are not rendered by default.

554 changes: 548 additions & 6 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This is a testharness.js-based test.
FAIL Test input[type=text] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=text] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=email] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=email] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=password] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=password] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=search] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=search] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=tel] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=tel] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=url] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=url] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=number] block-size in writing-mode: vertical-lr assert_true: input has correct aspect ratio for default input size expected true got false
FAIL Test input[type=number] block-size in writing-mode: vertical-rl assert_true: input has correct aspect ratio for default input size expected true got false
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!doctype html>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://html.spec.whatwg.org/#the-input-element">
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow">
<title>Test block-size of text-based inputs is consistent across writing-modes</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<style>
input { appearance: none }
</style>

<input id="horizontalInput">
<input id="verticalInput">

<script>
for (const inputType of ["text", "email", "password", "search", "tel", "url", "number"]) {
horizontalInput.type = inputType;
verticalInput.type = inputType;
for (const writingMode of ["vertical-lr", "vertical-rl", "sideways-lr", "sideways-rl"]) {
if (!CSS.supports(`writing-mode: ${writingMode}`))
continue;
test(t => {
verticalInput.style.writingMode = writingMode;
t.add_cleanup(() => {
verticalInput.removeAttribute("style");
});

const verticalRect = verticalInput.getBoundingClientRect();
assert_true(
verticalRect.width < verticalRect.height,
"input has correct aspect ratio for default input size"
);

const horizontalRect = horizontalInput.getBoundingClientRect();
assert_equals(
Math.round(verticalRect.width),
Math.round(horizontalRect.height),
"width of vertical input matches height of horizontal input"
);
}, `Test input[type=${inputType}] block-size in writing-mode: ${writingMode}`);
}
}
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: Received unknown message
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This is a testharness.js-based test.
FAIL geolocation callbacks are not invoked after page unload promise_test: Unhandled rejection with value: "Geolocation callback invoked after page unload"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: Received unknown message
PASS Tests that when a watch times out and is cleared from the error callback, there is no crash. This a regression test for https://bugs.webkit.org/show_bug.cgi?id=32111.
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: Received unknown message
PASS Tests that when timeout is negative (and maximumAge is too), the error callback is called immediately with code TIMEOUT.
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: Received unknown message
PASS Tests that when timeout is zero (and maximumAge is too), the error callback is called immediately with code TIMEOUT.
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: Received unknown message
FAIL Tests that when timeout is non-zero, the success callback is called as expected. promise_test: Unhandled rejection with value: "Error callback invoked unexpectedly"
Harness: the test ran to completion.

0 comments on commit 4995d83

Please sign in to comment.