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

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

Issue 1348363004: Add consumeInteger/consumeLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 3 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 | third_party/WebKit/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: third_party/WebKit/LayoutTests/css3/calc/calc-numbers.html
diff --git a/third_party/WebKit/LayoutTests/css3/calc/calc-numbers.html b/third_party/WebKit/LayoutTests/css3/calc/calc-numbers.html
index 1bb61ed0e42635fdb3b3e2885a3a17c60e98585f..22b945b3bbe8a307fd2a5f0d777765cbc037433b 100644
--- a/third_party/WebKit/LayoutTests/css3/calc/calc-numbers.html
+++ b/third_party/WebKit/LayoutTests/css3/calc/calc-numbers.html
@@ -21,6 +21,13 @@
.num-length-invalid {
tab-size: 12345;
tab-size: calc(1 + 1px);
+ tab-size: calc(1 + 100%);
+ tab-size: calc(100%);
+ tab-size: calc(10px) bla;
+ tab-size: calc(bla) 10px;
+}
+.px-valid {
+ tab-size: calc(10px);
}
</style>
<div class="default int"></div>
@@ -29,6 +36,7 @@
<div class="default float-invalid"></div>
<div class="default px-invalid"></div>
<div class="default num-length-invalid"></div>
+<div class="default px-valid"></div>
<script src="../../resources/js-test.js"></script>
<script>
if (window.testRunner)
@@ -44,4 +52,5 @@ 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"');
+shouldBe('getComputedValue(".px-valid", "tabSize")', '"10px"');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/calc/calc-numbers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698