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

Unified Diff: LayoutTests/inspector/console/console-object-preview.html

Issue 82553008: DevTools: Show -0 for negative zero in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added preview test Created 7 years, 1 month 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/inspector/console/console-object-preview.html
diff --git a/LayoutTests/inspector/console/console-object-preview.html b/LayoutTests/inspector/console/console-object-preview.html
index ee42453bb2c8404e5bcca805d14629656b5e230d..9705e130ea589088cd306d698465fa369ed27556 100644
--- a/LayoutTests/inspector/console/console-object-preview.html
+++ b/LayoutTests/inspector/console/console-object-preview.html
@@ -60,6 +60,10 @@ function logToConsole()
obj[" "] = " ";
obj["a\n\nb\nc"] = "a\n\nb\nc";
console.log(obj);
+
+ console.log("Object with special numbers");
+ var obj = { nan: NaN, posInf: Infinity, negInf: -Infinity, negZero: -0 };
+ console.log(obj);
}
function test()

Powered by Google App Engine
This is Rietveld 408576698