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

Unified Diff: LayoutTests/fast/css/round-trip-values-expected.txt

Issue 1120133004: Serialize <number> to round to at most 6 decimals (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix win Created 5 years, 7 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
Index: LayoutTests/fast/css/round-trip-values-expected.txt
diff --git a/LayoutTests/fast/css/round-trip-values-expected.txt b/LayoutTests/fast/css/round-trip-values-expected.txt
index b428ee5b6e787edffbec120a34b876fe9c003eda..e95dd13f6adb4b3b7a946c0b67afe3670cb8ea42 100644
--- a/LayoutTests/fast/css/round-trip-values-expected.txt
+++ b/LayoutTests/fast/css/round-trip-values-expected.txt
@@ -3,42 +3,42 @@ For each input on the left, this table lists what happens when you pass it into
Basic floats
'0.0001' 0.0001 pass
0.0001 0.0001 pass
-'123456.123456' 123456.123456 pass
-'1234567.1234567' 1234567.1234567 pass
-'12345678.12345678' 12345678.1234568 pass
+'123456.123456' 123456 pass
+'1234567.1234567' 1.23457e+06 pass
+'12345678.12345678' 1.23457e+07 pass
Trailing zeros
'0.00100000' 0.001 pass
-'0.001000001' 0.001000001 pass
-'0.12345000001' 0.12345000001 pass
-'0.12304567' 0.12304567 pass
-'0.12340567' 0.12340567 pass
-'0.12345067' 0.12345067 pass
-'0.12345607' 0.12345607 pass
-'0.12345670' 0.1234567 pass
+'0.001000001' 0.001 pass
+'0.12345000001' 0.12345 pass
+'0.12304567' 0.123046 pass
+'0.12340567' 0.123406 pass
+'0.12345067' 0.123451 pass
+'0.12345607' 0.123456 pass
+'0.12345670' 0.123457 pass
Repeating decimals
-1/3 0.333333333333333 pass
-123 + 1/3 123.333333333333 pass
-13/99 0.131313131313131 pass
-123 + 13/99 123.131313131313 pass
-100/999 0.1001001001001 pass
-123 + 100/999 123.1001001001 pass
+1/3 0.333333 pass
+123 + 1/3 123.333 pass
+13/99 0.131313 pass
+123 + 13/99 123.131 pass
+100/999 0.1001 pass
+123 + 100/999 123.1 pass
Large numbers
-12345678 12345678 pass
-123456789 123456789 pass
-1234567890 1234567890 pass
-12345678901 12345678901 pass
-123456789012 123456789012 pass
-1234567890123 1234567890123 pass
-12345678901234 12345678901234 pass
-123456789012345 123456789012345 pass
-1234567890123456 1234567890123456 pass
-12345678901234567 12345678901234568 pass
+12345678 1.23457e+07 pass
+123456789 1.23457e+08 pass
+1234567890 1.23457e+09 pass
+12345678901 1.23457e+10 pass
+123456789012 1.23457e+11 pass
+1234567890123 1.23457e+12 pass
+12345678901234 1.23457e+13 pass
+123456789012345 1.23457e+14 pass
+1234567890123456 1.23457e+15 pass
+12345678901234567 1.23457e+16 pass
Weird numbers
-Number.NaN 12345678901234568 pass
-1/0 12345678901234568 pass
-Math.sqrt(-1) 12345678901234568 pass
-1/0.9999 1.000100010001 pass
-1/0.99999 1.0000100001 pass
-1/0.999999 1.000001000001 pass
-1/0.9999999 1.00000010000001 pass
-1/0.99999999 1.00000001 pass
+Number.NaN 1.23457e+16 pass
+1/0 1.23457e+16 pass
+Math.sqrt(-1) 1.23457e+16 pass
+1/0.9999 1.0001 pass
+1/0.99999 1.00001 pass
+1/0.999999 1 pass
+1/0.9999999 1 pass
+1/0.99999999 1 pass

Powered by Google App Engine
This is Rietveld 408576698