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

Unified Diff: test/mjsunit/object-is.js

Issue 626323002: Object.is should use SameValue (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/v8natives.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/object-is.js
diff --git a/test/mjsunit/object-is.js b/test/mjsunit/object-is.js
index b9fdc8442068b4d7c50c06cb0eb8a134b8e9a7f3..74b5306637ee0e6961e95d9a4134e53ca1248dbc 100644
--- a/test/mjsunit/object-is.js
+++ b/test/mjsunit/object-is.js
@@ -32,7 +32,9 @@ function TestEgal(expected, x, y) {
assertSame(expected, Object.is(x, y));
}
-var test_set = [ {}, [], 1/0, -1/0, "s", 0, 0/-1, null, undefined ];
+var test_set = [ {}, [], Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
arv (Not doing code reviews) 2014/10/04 16:12:06 Use Infinity and -Infinity instead? These tests ar
+ "s", "ア", 0, 0/-1, null, undefined, true, false, Symbol("foo"),
+ Number.NaN ];
arv (Not doing code reviews) 2014/10/04 16:12:06 NaN
print(test_set);
arv (Not doing code reviews) 2014/10/04 16:12:06 remove print?
for (var i = 0; i < test_set.length; i++) {
for (var j = 0; j < test_set.length; j++) {
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698