Skip to content

Commit

Permalink
Split out text-wrap: pretty parsing tests (#44335)
Browse files Browse the repository at this point in the history
`text-wrap: balance` tests are part of Interop 2024 and should not cover the pretty value
  • Loading branch information
nt1m authored Feb 1, 2024
1 parent 7f5cd8c commit 6d6d4b1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 12 deletions.
5 changes: 0 additions & 5 deletions css/css-text/parsing/text-wrap-computed.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@
test_computed_value("text-wrap", "auto", "wrap");
test_computed_value("text-wrap", "balance");
test_computed_value("text-wrap", "stable");
test_computed_value("text-wrap", "pretty");

test_computed_value("text-wrap", "wrap auto", "wrap");
test_computed_value("text-wrap", "wrap balance", "balance");
test_computed_value("text-wrap", "wrap pretty", "pretty");
test_computed_value("text-wrap", "wrap stable", "stable");
test_computed_value("text-wrap", "auto wrap", "wrap");
test_computed_value("text-wrap", "balance wrap", "balance");
test_computed_value("text-wrap", "pretty wrap", "pretty");
test_computed_value("text-wrap", "stable wrap", "stable");

test_computed_value("text-wrap", "nowrap auto", "nowrap");
test_computed_value("text-wrap", "nowrap balance");
test_computed_value("text-wrap", "nowrap pretty");
test_computed_value("text-wrap", "nowrap stable");
test_computed_value("text-wrap", "auto nowrap", "nowrap");
test_computed_value("text-wrap", "balance nowrap", "nowrap balance");
test_computed_value("text-wrap", "pretty nowrap", "nowrap pretty");
test_computed_value("text-wrap", "stable nowrap", "nowrap stable");
</script>
</body>
Expand Down
34 changes: 34 additions & 0 deletions css/css-text/parsing/text-wrap-pretty.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Module Test: text-wrap: pretty parsing</title>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-wrap">
<meta name="assert" content="text-wrap: pretty parsing">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_valid_value("text-wrap", "pretty");
test_valid_value("text-wrap", "wrap pretty", "pretty");
test_valid_value("text-wrap", "pretty wrap", "pretty");
test_valid_value("text-wrap", "stable wrap", "stable");
test_valid_value("text-wrap", "nowrap pretty");
test_valid_value("text-wrap", "pretty nowrap", "nowrap pretty");
test_valid_value("text-wrap-style", "pretty");

test_computed_value("text-wrap", "pretty");
test_computed_value("text-wrap", "wrap pretty", "pretty");
test_computed_value("text-wrap", "pretty wrap", "pretty");
test_computed_value("text-wrap", "stable wrap", "stable");
test_computed_value("text-wrap", "nowrap pretty");
test_computed_value("text-wrap", "pretty nowrap", "nowrap pretty");
test_computed_value("text-wrap-style", "pretty");
</script>
</body>
</html>
1 change: 0 additions & 1 deletion css/css-text/parsing/text-wrap-style-computed.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<script>
test_computed_value("text-wrap-style", "auto");
test_computed_value("text-wrap-style", "balance");
test_computed_value("text-wrap-style", "pretty");
test_computed_value("text-wrap-style", "stable");
</script>
</body>
Expand Down
1 change: 0 additions & 1 deletion css/css-text/parsing/text-wrap-style-valid.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<script>
test_valid_value("text-wrap-style", "auto");
test_valid_value("text-wrap-style", "balance");
test_valid_value("text-wrap-style", "pretty");
test_valid_value("text-wrap-style", "stable");

test_valid_value("text-wrap-style", "initial");
Expand Down
5 changes: 0 additions & 5 deletions css/css-text/parsing/text-wrap-valid.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,19 @@
test_valid_value("text-wrap", "auto", "wrap");
test_valid_value("text-wrap", "balance");
test_valid_value("text-wrap", "stable");
test_valid_value("text-wrap", "pretty");

test_valid_value("text-wrap", "wrap auto", "wrap");
test_valid_value("text-wrap", "wrap balance", "balance");
test_valid_value("text-wrap", "wrap pretty", "pretty");
test_valid_value("text-wrap", "wrap stable", "stable");
test_valid_value("text-wrap", "auto wrap", "wrap");
test_valid_value("text-wrap", "balance wrap", "balance");
test_valid_value("text-wrap", "pretty wrap", "pretty");
test_valid_value("text-wrap", "stable wrap", "stable");

test_valid_value("text-wrap", "nowrap auto", "nowrap");
test_valid_value("text-wrap", "nowrap balance");
test_valid_value("text-wrap", "nowrap pretty");
test_valid_value("text-wrap", "nowrap stable");
test_valid_value("text-wrap", "auto nowrap", "nowrap");
test_valid_value("text-wrap", "balance nowrap", "nowrap balance");
test_valid_value("text-wrap", "pretty nowrap", "nowrap pretty");
test_valid_value("text-wrap", "stable nowrap", "nowrap stable");

test_valid_value("text-wrap", "initial");
Expand Down

0 comments on commit 6d6d4b1

Please sign in to comment.