Changeset 114195 in webkit for trunk/Source/JavaScriptCore/tests
- Timestamp:
- Apr 13, 2012, 6:29:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.2.js
r114185 r114195 56 56 array[item++] = new TestCase( SECTION, "(new Array(void 0,null)).toString()", ",", (new Array(void 0,null)).toString() ); 57 57 58 array[item++] = new TestCase( SECTION,59 "{__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3}.toString()",60 "a,b,c",61 {__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3}.toString() );62 array[item++] = new TestCase( SECTION,63 "{__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', join: function() { return 'join' }}.toString()",64 "join",65 {__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', join: function() { return 'join' }}.toString() );66 array[item++] = new TestCase( SECTION,67 "Array.prototype.toString.call({join: function() { return 'join' }})",68 "join",69 Array.prototype.toString.call({join: function() { return 'join' }}) );70 array[item++] = new TestCase( SECTION,71 "Array.prototype.toString.call({sort: function() { return 'sort' }})",72 "[object Object]",73 Array.prototype.toString.call({sort: function() { return 'sort' }}) );74 array[item++] = new TestCase( SECTION,75 "Array.prototype.toString.call(new Date)",76 "[object Date]",77 Array.prototype.toString.call(new Date) );78 array[item++] = new TestCase( SECTION,79 "Number.prototype.join = function() { return 'number join' }; Array.prototype.toString.call(42)",80 "number join",81 eval("Number.prototype.join = function() { return 'number join' }; Array.prototype.toString.call(42)") );82 83 58 var EXPECT_STRING = ""; 84 59 var MYARR = new Array(); … … 93 68 array[item++] = new TestCase( SECTION, "MYARR.toString()", EXPECT_STRING, MYARR.toString() ); 94 69 95 array[item++] = new TestCase( SECTION,96 "Array.prototype.join = function() { return 'join' }; [0, 1, 2].toString()",97 "join",98 eval("Array.prototype.join = function() { return 'join' }; [0, 1, 2].toString()") );99 70 100 71 return ( array );
Note:
See TracChangeset
for help on using the changeset viewer.