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

Unified Diff: test/mjsunit/function-names.js

Issue 6447: Update v8natives to use InstallFunctions to get the correct function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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/function-names.js
===================================================================
--- test/mjsunit/function-names.js (revision 427)
+++ test/mjsunit/function-names.js (working copy)
@@ -42,6 +42,12 @@
TestFunctionNames(Array.prototype, arrayPrototypeFunctions);
+// Boolean prototype functions.
+var booleanPrototypeFunctions = [ "toString", "valueOf" ];
+
+TestFunctionNames(Boolean.prototype, booleanPrototypeFunctions);
+
+
// Date functions.
var dateFunctions = ["UTC", "parse", "now"];
@@ -65,6 +71,11 @@
TestFunctionNames(Date.prototype, datePrototypeFunctions);
+// Function.prototype functions.
+var functionPrototypeFunctions = [ "toString", "apply", "call" ];
+
+TestFunctionNames(Function.prototype, functionPrototypeFunctions);
+
// Math functions.
var mathFunctions = [
"random", "abs", "acos", "asin", "atan", "ceil", "cos", "exp", "floor",
@@ -73,6 +84,21 @@
TestFunctionNames(Math, mathFunctions);
+// Number.prototype functions.
+var numberPrototypeFunctions = [
+ "toString", "toLocaleString", "valueOf", "toFixed", "toExponential",
+ "toPrecision"];
+
+TestFunctionNames(Number.prototype, numberPrototypeFunctions);
+
+// Object.prototype functions.
+var objectPrototypeFunctions = [
+ "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf",
+ "propertyIsEnumerable", "__defineGetter__", "__lookupGetter__",
+ "__defineSetter__", "__lookupSetter__"];
+
+TestFunctionNames(Object.prototype, objectPrototypeFunctions);
+
// RegExp.prototype functions.
var regExpPrototypeFunctions = ["exec", "test", "toString", "compile"];
@@ -101,6 +127,7 @@
"escape", "unescape", "decodeURI", "decodeURIComponent",
"encodeURI", "encodeURIComponent", "Error", "TypeError",
"RangeError", "SyntaxError", "ReferenceError", "EvalError",
- "URIError"];
+ "URIError", "isNaN", "isFinite", "parseInt", "parseFloat",
+ "eval", "execScript"];
TestFunctionNames(this, globalFunctions);
« 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