Skip to content

Commit

Permalink
Import wpt@26c82a64e8db717dbe256b61bded37c50a1eea5e
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium d002482.
With Chromium commits locally applied on WPT:
329c91e "Attempt to make test more stable"


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/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
jfernandez@igalia.com:
  external/wpt/css/css-align

NOAUTOREVERT=true
TBR=robertma

No-Export: true
Change-Id: Ibf905be59d6e7a8877f33bb07fe7290a2f84fb44
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747269
Reviewed-by: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#685877}
  • Loading branch information
Chromium WPT Sync authored and Commit Bot committed Aug 10, 2019
1 parent 4f575e6 commit 69d373b
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
30 changes: 30 additions & 0 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_6.json
Original file line number Diff line number Diff line change
Expand Up @@ -200542,6 +200542,24 @@
{}
]
],
"css/css-align/parsing/row-gap-computed.html": [
[
"css/css-align/parsing/row-gap-computed.html",
{}
]
],
"css/css-align/parsing/row-gap-invalid.html": [
[
"css/css-align/parsing/row-gap-invalid.html",
{}
]
],
"css/css-align/parsing/row-gap-valid.html": [
[
"css/css-align/parsing/row-gap-valid.html",
{}
]
],
"css/css-align/self-alignment/parse-align-self-001.html": [
[
"css/css-align/self-alignment/parse-align-self-001.html",
Expand Down Expand Up @@ -344345,6 +344363,18 @@
"36a8bd5026eab2870307c223028b499c02c92099",
"testharness"
],
"css/css-align/parsing/row-gap-computed.html": [
"8108dcc63a1334bde0a8016fb88824a77949221d",
"testharness"
],
"css/css-align/parsing/row-gap-invalid.html": [
"a51ab7425c488d2452e869f58d5165094934fd10",
"testharness"
],
"css/css-align/parsing/row-gap-valid.html": [
"dacdd38254ddf1fac48d0530a0a2e5e650040a44",
"testharness"
],
"css/css-align/reference/baseline-of-scrollable-1-ref.html": [
"422660aff6b6b486ce3288469b4769e1497b071e",
"support"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: getComputedStyle().rowGap</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap">
<meta name="assert" content="row-gap computed value is a specified keyword or a computed <length-percentage>.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#target {
font-size: 40px;
}
</style>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("row-gap", "normal");

test_computed_value("row-gap", "10px");
test_computed_value("row-gap", "20%");
test_computed_value("row-gap", "calc(20% + 10px)");

test_computed_value("row-gap", "calc(-0.5em + 10px)", "0px");
test_computed_value("row-gap", "calc(0.5em + 10px)", "30px");
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing row-gap with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap">
<meta name="assert" content="row-gap supports only the grammar 'normal | <length-percentage>'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("row-gap", "auto");
test_invalid_value("row-gap", "-10px");

test_invalid_value("row-gap", "10px 20%");
test_invalid_value("row-gap", "normal 10px");
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing row-gap with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap">
<meta name="assert" content="row-gap supports the full grammar 'normal | <length-percentage>'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("row-gap", "normal");

test_valid_value("row-gap", "10px");
test_valid_value("row-gap", "20%");
test_valid_value("row-gap", "calc(20% + 10px)");
test_valid_value("row-gap", "0", "0px");
</script>
</body>
</html>

0 comments on commit 69d373b

Please sign in to comment.