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

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: addressed 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 a0885b062719fbe8015fd479304dca2f2208afbd..93f8d849b615d8f615fe88366ca3b34a8d1c760d 100644
--- a/LayoutTests/inspector/console/console-object-preview.html
+++ b/LayoutTests/inspector/console/console-object-preview.html
@@ -63,6 +63,10 @@ function logToConsole()
console.log("Object with a document.all property");
console.log({all: document.all});
+
+ 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