Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: LayoutTests/css3/calc/calc-numbers.html

Issue 920553002: Combine two validUnit calls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test for calc Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/css3/calc/calc-numbers-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/calc/calc-numbers.html
diff --git a/LayoutTests/css3/calc/calc-numbers.html b/LayoutTests/css3/calc/calc-numbers.html
index 587becd5e86ab90dce8258a80def175422861b7f..1bb61ed0e42635fdb3b3e2885a3a17c60e98585f 100644
--- a/LayoutTests/css3/calc/calc-numbers.html
+++ b/LayoutTests/css3/calc/calc-numbers.html
@@ -18,12 +18,17 @@
opacity: 0.9;
opacity: calc((2 / 4) * 1px);
}
+.num-length-invalid {
+ tab-size: 12345;
+ tab-size: calc(1 + 1px);
+}
</style>
<div class="default int"></div>
<div class="default int-non-neg-invalid"></div>
<div class="default float"></div>
<div class="default float-invalid"></div>
<div class="default px-invalid"></div>
+<div class="default num-length-invalid"></div>
<script src="../../resources/js-test.js"></script>
<script>
if (window.testRunner)
@@ -38,4 +43,5 @@ shouldBe('getComputedValue(".int-non-neg-invalid", "tabSize")', '"12345"');
shouldBeCloseTo('Number(getComputedValue(".float", "opacity"))', 0.5, .0001);
shouldBe('getComputedValue(".float-invalid", "tabSize")', '"12345"');
shouldBeCloseTo('Number(getComputedValue(".px-invalid", "opacity"))', 0.9, .0001);
+shouldBe('getComputedValue(".num-length-invalid", "tabSize")', '"12345"');
</script>
« no previous file with comments | « no previous file | LayoutTests/css3/calc/calc-numbers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698