Index: LayoutTests/animations/interpolation/resources/interpolation-test.js |
diff --git a/LayoutTests/animations/interpolation/resources/interpolation-test.js b/LayoutTests/animations/interpolation/resources/interpolation-test.js |
index c0e2d4b229603f40be63a5a7917e1e5b5750484d..1d36570f9d99700f0d06686a088d575d5e5e805f 100644 |
--- a/LayoutTests/animations/interpolation/resources/interpolation-test.js |
+++ b/LayoutTests/animations/interpolation/resources/interpolation-test.js |
@@ -234,7 +234,7 @@ |
function roundNumbers(value) { |
return value. |
// Round numbers to two decimal places. |
- replace(/-?\d*\.\d+/g, function(n) { |
+ replace(/-?\d*\.\d+(e-?\d+)?/g, function(n) { |
return (parseFloat(n).toFixed(2)). |
replace(/\.\d+/, function(m) { |
return m.replace(/0+$/, ''); |