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

Unified Diff: android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt

Issue 1394303007: [WebViewLayoutTest] Fix potential rounding error in testBatteryApi() layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the precision test Created 5 years, 2 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 | « android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt
diff --git a/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt b/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt
index 64e31f53dd2df22db21d98fb7a34ab785b57cfe3..2d7be9a5a3f312a01ab18fcb448dba7e8db5fa26 100644
--- a/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt
+++ b/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback-expected.txt
@@ -2,7 +2,7 @@ Test Battery Status API callback in WebView
batteryStatusSuccess invoked
PASS: battery.level is >= 0
PASS: battery.level is <= 1
-PASS: isInteger(battery.level * 100) is true
+PASS: battery.level.toPrecision(2) == battery.level is true
PASS: !battery.charging || battery.dischargingTime === Infinity is true
PASS: battery.charging || battery.chargingTime === Infinity is true
-TEST FINISHED
+TEST FINISHED
« no previous file with comments | « android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698