diff options
Diffstat (limited to 'deps/v8/test/webkit')
18 files changed, 121 insertions, 101 deletions
diff --git a/deps/v8/test/webkit/fast/js/Object-defineProperty-expected.txt b/deps/v8/test/webkit/fast/js/Object-defineProperty-expected.txt index 7a303f2c5..118f9dddf 100644 --- a/deps/v8/test/webkit/fast/js/Object-defineProperty-expected.txt +++ b/deps/v8/test/webkit/fast/js/Object-defineProperty-expected.txt @@ -142,8 +142,8 @@ PASS 'use strict'; var o = {}; o.readOnly = false; o.readOnly threw exception Ty PASS Object.getOwnPropertyDescriptor(Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return false; }, configurable: true}), 'foo', {value:false}), 'foo').writable is false PASS Object.getOwnPropertyDescriptor(Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return false; }, configurable: true}), 'foo', {value:false, writable: false}), 'foo').writable is false PASS Object.getOwnPropertyDescriptor(Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return false; }, configurable: true}), 'foo', {value:false, writable: true}), 'foo').writable is true -FAIL var a = Object.defineProperty([], 'length', {writable: false}); a[0] = 42; 0 in a; should be false. Was true. -FAIL 'use strict'; var a = Object.defineProperty([], 'length', {writable: false}); a[0] = 42; 0 in a; should throw an exception. Was true. +PASS var a = Object.defineProperty([], 'length', {writable: false}); a[0] = 42; 0 in a; is false +PASS 'use strict'; var a = Object.defineProperty([], 'length', {writable: false}); a[0] = 42; 0 in a; threw exception TypeError: Cannot assign to read only property 'length' of [object Array]. PASS var a = Object.defineProperty([42], '0', {writable: false}); a[0] = false; a[0]; is 42 PASS 'use strict'; var a = Object.defineProperty([42], '0', {writable: false}); a[0] = false; a[0]; threw exception TypeError: Cannot assign to read only property '0' of [object Array]. PASS var a = Object.defineProperty([], '0', {set: undefined}); a[0] = 42; a[0]; is undefined. diff --git a/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt b/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt index 52babed02..4b8eb1477 100644 --- a/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt +++ b/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt @@ -53,35 +53,35 @@ PASS getSortedOwnPropertyNames(argumentsObject()) is ['callee', 'length'] PASS getSortedOwnPropertyNames(argumentsObject(1)) is ['0', 'callee', 'length'] PASS getSortedOwnPropertyNames(argumentsObject(1,2,3)) is ['0', '1', '2', 'callee', 'length'] PASS getSortedOwnPropertyNames((function(){arguments.__proto__=[1,2,3];return arguments;})()) is ['callee', 'length'] -FAIL getSortedOwnPropertyNames(parseInt) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(parseFloat) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(isNaN) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(isFinite) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(escape) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(unescape) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(decodeURI) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(decodeURIComponent) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(encodeURI) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(encodeURIComponent) should be length,name. Was arguments,caller,length,name. -FAIL getSortedOwnPropertyNames(Object) should be create,defineProperties,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyNames,getPrototypeOf,isExtensible,isFrozen,isSealed,keys,length,name,preventExtensions,prototype,seal,setPrototypeOf. Was arguments,caller,create,defineProperties,defineProperty,deliverChangeRecords,freeze,getNotifier,getOwnPropertyDescriptor,getOwnPropertyNames,getPrototypeOf,is,isExtensible,isFrozen,isSealed,keys,length,name,observe,preventExtensions,prototype,seal,setPrototypeOf,unobserve. +PASS getSortedOwnPropertyNames(parseInt) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(parseFloat) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(isNaN) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(isFinite) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(escape) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(unescape) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(decodeURI) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(decodeURIComponent) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(encodeURI) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(encodeURIComponent) is ['arguments', 'caller', 'length', 'name'] +PASS getSortedOwnPropertyNames(Object) is ['arguments', 'caller', 'create', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve'] PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'] -FAIL getSortedOwnPropertyNames(Function) should be length,name,prototype. Was arguments,caller,length,name,prototype. -FAIL getSortedOwnPropertyNames(Function.prototype) should be apply,bind,call,constructor,length,name,toString. Was apply,arguments,bind,call,caller,constructor,length,name,toString. -FAIL getSortedOwnPropertyNames(Array) should be isArray,length,name,prototype. Was arguments,caller,isArray,length,name,observe,prototype,unobserve. -PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'every', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift'] -FAIL getSortedOwnPropertyNames(String) should be fromCharCode,length,name,prototype. Was arguments,caller,fromCharCode,length,name,prototype. +PASS getSortedOwnPropertyNames(Function) is ['arguments', 'caller', 'length', 'name', 'prototype'] +PASS getSortedOwnPropertyNames(Function.prototype) is ['apply', 'arguments', 'bind', 'call', 'caller', 'constructor', 'length', 'name', 'toString'] +PASS getSortedOwnPropertyNames(Array) is ['arguments', 'caller', 'isArray', 'length', 'name', 'observe', 'prototype', 'unobserve'] +PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift', 'values'] +PASS getSortedOwnPropertyNames(String) is ['arguments', 'caller', 'fromCharCode', 'length', 'name', 'prototype'] PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'normalize', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] -FAIL getSortedOwnPropertyNames(Boolean) should be length,name,prototype. Was arguments,caller,length,name,prototype. +PASS getSortedOwnPropertyNames(Boolean) is ['arguments', 'caller', 'length', 'name', 'prototype'] PASS getSortedOwnPropertyNames(Boolean.prototype) is ['constructor', 'toString', 'valueOf'] -FAIL getSortedOwnPropertyNames(Number) should be MAX_VALUE,MIN_VALUE,NEGATIVE_INFINITY,NaN,POSITIVE_INFINITY,length,name,prototype. Was EPSILON,MAX_SAFE_INTEGER,MAX_VALUE,MIN_SAFE_INTEGER,MIN_VALUE,NEGATIVE_INFINITY,NaN,POSITIVE_INFINITY,arguments,caller,isFinite,isInteger,isNaN,isSafeInteger,length,name,parseFloat,parseInt,prototype. +PASS getSortedOwnPropertyNames(Number) is ['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_VALUE', 'MIN_SAFE_INTEGER', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_INFINITY', 'arguments', 'caller', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger', 'length', 'name', 'parseFloat', 'parseInt', 'prototype'] PASS getSortedOwnPropertyNames(Number.prototype) is ['constructor', 'toExponential', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf'] -FAIL getSortedOwnPropertyNames(Date) should be UTC,length,name,now,parse,prototype. Was UTC,arguments,caller,length,name,now,parse,prototype. +PASS getSortedOwnPropertyNames(Date) is ['UTC', 'arguments', 'caller', 'length', 'name', 'now', 'parse', 'prototype'] PASS getSortedOwnPropertyNames(Date.prototype) is ['constructor', 'getDate', 'getDay', 'getFullYear', 'getHours', 'getMilliseconds', 'getMinutes', 'getMonth', 'getSeconds', 'getTime', 'getTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds', 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateString', 'toLocaleString', 'toLocaleTimeString', 'toString', 'toTimeString', 'toUTCString', 'valueOf'] -FAIL getSortedOwnPropertyNames(RegExp) should be $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$7,$8,$9,$_,$`,input,lastMatch,lastParen,leftContext,length,multiline,name,prototype,rightContext. Was $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$7,$8,$9,$_,$`,$input,arguments,caller,input,lastMatch,lastParen,leftContext,length,multiline,name,prototype,rightContext. +FAIL getSortedOwnPropertyNames(RegExp) should be $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$7,$8,$9,$_,$`,arguments,caller,input,lastMatch,lastParen,leftContext,length,multiline,name,prototype,rightContext. Was $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$7,$8,$9,$_,$`,$input,arguments,caller,input,lastMatch,lastParen,leftContext,length,multiline,name,prototype,rightContext. PASS getSortedOwnPropertyNames(RegExp.prototype) is ['compile', 'constructor', 'exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toString'] -FAIL getSortedOwnPropertyNames(Error) should be length,name,prototype. Was arguments,caller,captureStackTrace,length,name,prototype,stackTraceLimit. +PASS getSortedOwnPropertyNames(Error) is ['arguments', 'caller', 'captureStackTrace', 'length', 'name', 'prototype', 'stackTraceLimit'] PASS getSortedOwnPropertyNames(Error.prototype) is ['constructor', 'message', 'name', 'toString'] -FAIL getSortedOwnPropertyNames(Math) should be E,LN10,LN2,LOG10E,LOG2E,PI,SQRT1_2,SQRT2,abs,acos,asin,atan,atan2,ceil,cos,exp,floor,log,max,min,pow,random,round,sin,sqrt,tan. Was E,LN10,LN2,LOG10E,LOG2E,PI,SQRT1_2,SQRT2,abs,acos,asin,atan,atan2,ceil,cos,exp,floor,imul,log,max,min,pow,random,round,sin,sqrt,tan. +PASS getSortedOwnPropertyNames(Math) is ['E', 'LN10', 'LN2', 'LOG10E', 'LOG2E', 'PI', 'SQRT1_2', 'SQRT2', 'abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'cbrt', 'ceil', 'clz32', 'cos', 'cosh', 'exp', 'expm1', 'floor', 'fround', 'hypot', 'imul', 'log', 'log10', 'log1p', 'log2', 'max', 'min', 'pow', 'random', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc'] PASS getSortedOwnPropertyNames(JSON) is ['parse', 'stringify'] PASS globalPropertyNames.indexOf('NaN') != -1 is true PASS globalPropertyNames.indexOf('Infinity') != -1 is true diff --git a/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames.js b/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames.js index 6373cf1ae..c168c37b0 100644 --- a/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames.js +++ b/deps/v8/test/webkit/fast/js/Object-getOwnPropertyNames.js @@ -60,36 +60,36 @@ var expectedPropertyNamesSet = { "argumentsObject(1,2,3)": "['0', '1', '2', 'callee', 'length']", "(function(){arguments.__proto__=[1,2,3];return arguments;})()": "['callee', 'length']", // Built-in ECMA functions - "parseInt": "['length', 'name']", - "parseFloat": "['length', 'name']", - "isNaN": "['length', 'name']", - "isFinite": "['length', 'name']", - "escape": "['length', 'name']", - "unescape": "['length', 'name']", - "decodeURI": "['length', 'name']", - "decodeURIComponent": "['length', 'name']", - "encodeURI": "['length', 'name']", - "encodeURIComponent": "['length', 'name']", + "parseInt": "['arguments', 'caller', 'length', 'name']", + "parseFloat": "['arguments', 'caller', 'length', 'name']", + "isNaN": "['arguments', 'caller', 'length', 'name']", + "isFinite": "['arguments', 'caller', 'length', 'name']", + "escape": "['arguments', 'caller', 'length', 'name']", + "unescape": "['arguments', 'caller', 'length', 'name']", + "decodeURI": "['arguments', 'caller', 'length', 'name']", + "decodeURIComponent": "['arguments', 'caller', 'length', 'name']", + "encodeURI": "['arguments', 'caller', 'length', 'name']", + "encodeURIComponent": "['arguments', 'caller', 'length', 'name']", // Built-in ECMA objects - "Object": "['create', 'defineProperties', 'defineProperty', 'freeze', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf']", + "Object": "['arguments', 'caller', 'create', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve']", "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']", - "Function": "['length', 'name', 'prototype']", - "Function.prototype": "['apply', 'bind', 'call', 'constructor', 'length', 'name', 'toString']", - "Array": "['isArray', 'length', 'name', 'prototype']", - "Array.prototype": "['concat', 'constructor', 'every', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']", - "String": "['fromCharCode', 'length', 'name', 'prototype']", + "Function": "['arguments', 'caller', 'length', 'name', 'prototype']", + "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller', 'constructor', 'length', 'name', 'toString']", + "Array": "['arguments', 'caller', 'isArray', 'length', 'name', 'observe', 'prototype', 'unobserve']", + "Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift', 'values']", + "String": "['arguments', 'caller', 'fromCharCode', 'length', 'name', 'prototype']", "String.prototype": "['anchor', 'big', 'blink', 'bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'fontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare', 'match', 'normalize', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'substr', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf']", - "Boolean": "['length', 'name', 'prototype']", + "Boolean": "['arguments', 'caller', 'length', 'name', 'prototype']", "Boolean.prototype": "['constructor', 'toString', 'valueOf']", - "Number": "['MAX_VALUE', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_INFINITY', 'length', 'name', 'prototype']", + "Number": "['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_VALUE', 'MIN_SAFE_INTEGER', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_INFINITY', 'arguments', 'caller', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger', 'length', 'name', 'parseFloat', 'parseInt', 'prototype']", "Number.prototype": "['constructor', 'toExponential', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf']", - "Date": "['UTC', 'length', 'name', 'now', 'parse', 'prototype']", + "Date": "['UTC', 'arguments', 'caller', 'length', 'name', 'now', 'parse', 'prototype']", "Date.prototype": "['constructor', 'getDate', 'getDay', 'getFullYear', 'getHours', 'getMilliseconds', 'getMinutes', 'getMonth', 'getSeconds', 'getTime', 'getTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds', 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateString', 'toLocaleString', 'toLocaleTimeString', 'toString', 'toTimeString', 'toUTCString', 'valueOf']", - "RegExp": "['$&', \"$'\", '$*', '$+', '$1', '$2', '$3', '$4', '$5', '$6', '$7', '$8', '$9', '$_', '$`', 'input', 'lastMatch', 'lastParen', 'leftContext', 'length', 'multiline', 'name', 'prototype', 'rightContext']", + "RegExp": "['$&', \"$'\", '$*', '$+', '$1', '$2', '$3', '$4', '$5', '$6', '$7', '$8', '$9', '$_', '$`', 'arguments', 'caller', 'input', 'lastMatch', 'lastParen', 'leftContext', 'length', 'multiline', 'name', 'prototype', 'rightContext']", "RegExp.prototype": "['compile', 'constructor', 'exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toString']", - "Error": "['length', 'name', 'prototype']", + "Error": "['arguments', 'caller', 'captureStackTrace', 'length', 'name', 'prototype', 'stackTraceLimit']", "Error.prototype": "['constructor', 'message', 'name', 'toString']", - "Math": "['E', 'LN10', 'LN2', 'LOG10E', 'LOG2E', 'PI', 'SQRT1_2', 'SQRT2', 'abs', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'exp', 'floor', 'log', 'max', 'min', 'pow', 'random', 'round', 'sin', 'sqrt', 'tan']", + "Math": "['E', 'LN10', 'LN2', 'LOG10E', 'LOG2E', 'PI', 'SQRT1_2', 'SQRT2', 'abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'cbrt', 'ceil', 'clz32', 'cos', 'cosh', 'exp', 'expm1', 'floor', 'fround', 'hypot', 'imul', 'log', 'log10', 'log1p', 'log2', 'max', 'min', 'pow', 'random', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc']", "JSON": "['parse', 'stringify']" }; diff --git a/deps/v8/test/webkit/fast/js/primitive-property-access-edge-cases-expected.txt b/deps/v8/test/webkit/fast/js/primitive-property-access-edge-cases-expected.txt index f07d273f3..cc273dfba 100644 --- a/deps/v8/test/webkit/fast/js/primitive-property-access-edge-cases-expected.txt +++ b/deps/v8/test/webkit/fast/js/primitive-property-access-edge-cases-expected.txt @@ -29,15 +29,15 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE PASS checkGet(1, Number) is true PASS checkGet('hello', String) is true PASS checkGet(true, Boolean) is true -FAIL checkSet(1, Number) should be true. Was false. -FAIL checkSet('hello', String) should be true. Was false. -FAIL checkSet(true, Boolean) should be true. Was false. +PASS checkSet(1, Number) is true +PASS checkSet('hello', String) is true +PASS checkSet(true, Boolean) is true PASS checkGetStrict(1, Number) is true PASS checkGetStrict('hello', String) is true PASS checkGetStrict(true, Boolean) is true -FAIL checkSetStrict(1, Number) should be true. Was false. -FAIL checkSetStrict('hello', String) should be true. Was false. -FAIL checkSetStrict(true, Boolean) should be true. Was false. +PASS checkSetStrict(1, Number) is true +PASS checkSetStrict('hello', String) is true +PASS checkSetStrict(true, Boolean) is true PASS checkRead(1, Number) is true PASS checkRead('hello', String) is true PASS checkRead(true, Boolean) is true @@ -47,9 +47,9 @@ PASS checkWrite(true, Boolean) is true PASS checkReadStrict(1, Number) is true PASS checkReadStrict('hello', String) is true PASS checkReadStrict(true, Boolean) is true -FAIL checkWriteStrict(1, Number) should throw an exception. Was true. -FAIL checkWriteStrict('hello', String) should throw an exception. Was true. -FAIL checkWriteStrict(true, Boolean) should throw an exception. Was true. +PASS checkWriteStrict(1, Number) threw exception TypeError: Cannot assign to read only property 'foo' of 1. +PASS checkWriteStrict('hello', String) threw exception TypeError: Cannot assign to read only property 'foo' of hello. +PASS checkWriteStrict(true, Boolean) threw exception TypeError: Cannot assign to read only property 'foo' of true. PASS checkNumericGet(1, Number) is true PASS checkNumericGet('hello', String) is true PASS checkNumericGet(true, Boolean) is true diff --git a/deps/v8/test/webkit/fast/js/read-modify-eval-expected.txt b/deps/v8/test/webkit/fast/js/read-modify-eval-expected.txt index 4a16d0a7a..b375b3780 100644 --- a/deps/v8/test/webkit/fast/js/read-modify-eval-expected.txt +++ b/deps/v8/test/webkit/fast/js/read-modify-eval-expected.txt @@ -42,7 +42,7 @@ PASS preDecTest(); is true PASS postIncTest(); is true PASS postDecTest(); is true PASS primitiveThisTest.call(1); is true -FAIL strictThisTest.call(1); should throw an exception. Was true. +PASS strictThisTest.call(1); threw exception TypeError: Cannot assign to read only property 'value' of 1. PASS successfullyParsed is true TEST COMPLETE diff --git a/deps/v8/test/webkit/fast/js/string-anchor-expected.txt b/deps/v8/test/webkit/fast/js/string-anchor-expected.txt index 3a50054f1..91a833803 100644 --- a/deps/v8/test/webkit/fast/js/string-anchor-expected.txt +++ b/deps/v8/test/webkit/fast/js/string-anchor-expected.txt @@ -32,8 +32,8 @@ PASS '_'.anchor(0x2A) is "<a name=\"42\">_</a>" PASS '_'.anchor('"') is "<a name=\""\">_</a>" PASS '_'.anchor('" href="http://www.evil.com') is "<a name=\"" href="http://www.evil.com\">_</a>" PASS String.prototype.anchor.call(0x2A, 0x2A) is "<a name=\"42\">42</a>" -FAIL String.prototype.anchor.call(undefined) should throw TypeError: Type error. Was <a name="undefined">undefined</a>. -FAIL String.prototype.anchor.call(null) should throw TypeError: Type error. Was <a name="undefined">null</a>. +FAIL String.prototype.anchor.call(undefined) should throw TypeError: Type error. Threw exception TypeError: String.prototype.anchor called on null or undefined. +FAIL String.prototype.anchor.call(null) should throw TypeError: Type error. Threw exception TypeError: String.prototype.anchor called on null or undefined. PASS String.prototype.anchor.length is 1 PASS successfullyParsed is true diff --git a/deps/v8/test/webkit/fast/js/string-fontcolor-expected.txt b/deps/v8/test/webkit/fast/js/string-fontcolor-expected.txt index af2c707f3..2ffda69a6 100644 --- a/deps/v8/test/webkit/fast/js/string-fontcolor-expected.txt +++ b/deps/v8/test/webkit/fast/js/string-fontcolor-expected.txt @@ -32,8 +32,8 @@ PASS '_'.fontcolor(0x2A) is "<font color=\"42\">_</font>" PASS '_'.fontcolor('"') is "<font color=\""\">_</font>" PASS '_'.fontcolor('" size="2px') is "<font color=\"" size="2px\">_</font>" PASS String.prototype.fontcolor.call(0x2A, 0x2A) is "<font color=\"42\">42</font>" -FAIL String.prototype.fontcolor.call(undefined) should throw TypeError: Type error. Was <font color="undefined">undefined</font>. -FAIL String.prototype.fontcolor.call(null) should throw TypeError: Type error. Was <font color="undefined">null</font>. +FAIL String.prototype.fontcolor.call(undefined) should throw TypeError: Type error. Threw exception TypeError: String.prototype.fontcolor called on null or undefined. +FAIL String.prototype.fontcolor.call(null) should throw TypeError: Type error. Threw exception TypeError: String.prototype.fontcolor called on null or undefined. PASS String.prototype.fontcolor.length is 1 PASS successfullyParsed is true diff --git a/deps/v8/test/webkit/fast/js/string-fontsize-expected.txt b/deps/v8/test/webkit/fast/js/string-fontsize-expected.txt index c114f74b1..656f7fa7f 100644 --- a/deps/v8/test/webkit/fast/js/string-fontsize-expected.txt +++ b/deps/v8/test/webkit/fast/js/string-fontsize-expected.txt @@ -33,8 +33,8 @@ PASS '_'.fontsize(0x2A) is "<font size=\"42\">_</font>" PASS '_'.fontsize('"') is "<font size=\""\">_</font>" PASS '_'.fontsize('" color="b') is "<font size=\"" color="b\">_</font>" PASS String.prototype.fontsize.call(0x2A, 0x2A) is "<font size=\"42\">42</font>" -FAIL String.prototype.fontsize.call(undefined) should throw TypeError: Type error. Was <font size="undefined">undefined</font>. -FAIL String.prototype.fontsize.call(null) should throw TypeError: Type error. Was <font size="undefined">null</font>. +FAIL String.prototype.fontsize.call(undefined) should throw TypeError: Type error. Threw exception TypeError: String.prototype.fontsize called on null or undefined. +FAIL String.prototype.fontsize.call(null) should throw TypeError: Type error. Threw exception TypeError: String.prototype.fontsize called on null or undefined. PASS String.prototype.fontsize.length is 1 PASS successfullyParsed is true diff --git a/deps/v8/test/webkit/fast/js/string-link-expected.txt b/deps/v8/test/webkit/fast/js/string-link-expected.txt index afacbe6bb..2443bd4bc 100644 --- a/deps/v8/test/webkit/fast/js/string-link-expected.txt +++ b/deps/v8/test/webkit/fast/js/string-link-expected.txt @@ -33,8 +33,8 @@ PASS '_'.link(0x2A) is "<a href=\"42\">_</a>" PASS '_'.link('"') is "<a href=\""\">_</a>" PASS '_'.link('" target="_blank') is "<a href=\"" target="_blank\">_</a>" PASS String.prototype.link.call(0x2A, 0x2A) is "<a href=\"42\">42</a>" -FAIL String.prototype.link.call(undefined) should throw TypeError: Type error. Was <a href="undefined">undefined</a>. -FAIL String.prototype.link.call(null) should throw TypeError: Type error. Was <a href="undefined">null</a>. +FAIL String.prototype.link.call(undefined) should throw TypeError: Type error. Threw exception TypeError: String.prototype.link called on null or undefined. +FAIL String.prototype.link.call(null) should throw TypeError: Type error. Threw exception TypeError: String.prototype.link called on null or undefined. PASS String.prototype.link.length is 1 PASS successfullyParsed is true diff --git a/deps/v8/test/webkit/for-in-cached-expected.txt b/deps/v8/test/webkit/for-in-cached-expected.txt index 0d0c337cf..e5538fe3b 100644 --- a/deps/v8/test/webkit/for-in-cached-expected.txt +++ b/deps/v8/test/webkit/for-in-cached-expected.txt @@ -34,8 +34,8 @@ PASS forIn3({ __proto__: { __proto__: { y3 : 2 } } }) is ['x', 'y3'] PASS forIn4(objectWithArrayAsProto) is [] PASS forIn4(objectWithArrayAsProto) is ['0'] PASS forIn5({get foo() { return 'called getter'} }) is ['foo', 'called getter'] -PASS forIn5({set foo() { } }) is ['foo', undefined] -PASS forIn5({get foo() { return 'called getter'}, set foo() { }}) is ['foo', 'called getter'] +PASS forIn5({set foo(v) { } }) is ['foo', undefined] +PASS forIn5({get foo() { return 'called getter'}, set foo(v) { }}) is ['foo', 'called getter'] PASS successfullyParsed is true TEST COMPLETE diff --git a/deps/v8/test/webkit/for-in-cached.js b/deps/v8/test/webkit/for-in-cached.js index 1842d6129..760a5b458 100644 --- a/deps/v8/test/webkit/for-in-cached.js +++ b/deps/v8/test/webkit/for-in-cached.js @@ -84,8 +84,8 @@ function forIn5(o) { } shouldBe("forIn5({get foo() { return 'called getter'} })", "['foo', 'called getter']"); -shouldBe("forIn5({set foo() { } })", "['foo', undefined]"); -shouldBe("forIn5({get foo() { return 'called getter'}, set foo() { }})", "['foo', 'called getter']"); +shouldBe("forIn5({set foo(v) { } })", "['foo', undefined]"); +shouldBe("forIn5({get foo() { return 'called getter'}, set foo(v) { }})", "['foo', 'called getter']"); function cacheClearing() { for(var j=0; j < 10; j++){ diff --git a/deps/v8/test/webkit/object-literal-direct-put-expected.txt b/deps/v8/test/webkit/object-literal-direct-put-expected.txt index 46793d20d..3a19f0a0d 100644 --- a/deps/v8/test/webkit/object-literal-direct-put-expected.txt +++ b/deps/v8/test/webkit/object-literal-direct-put-expected.txt @@ -28,11 +28,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE PASS ({a:true}).a is true PASS ({__proto__: {a:false}, a:true}).a is true -PASS ({__proto__: {set a() {throw 'Should not call setter'; }}, a:true}).a is true +PASS ({__proto__: {set a(v) {throw 'Should not call setter'; }}, a:true}).a is true PASS ({__proto__: {get a() {throw 'Should not reach getter'; }}, a:true}).a is true PASS ({__proto__: {get a() {throw 'Should not reach getter'; }, b:true}, a:true}).b is true PASS ({__proto__: {__proto__: {a:false}}, a:true}).a is true -PASS ({__proto__: {__proto__: {set a() {throw 'Should not call setter'; }}}, a:true}).a is true +PASS ({__proto__: {__proto__: {set a(v) {throw 'Should not call setter'; }}}, a:true}).a is true PASS ({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }}}, a:true}).a is true PASS ({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }, b:true}}, a:true}).b is true PASS successfullyParsed is true diff --git a/deps/v8/test/webkit/object-literal-direct-put.js b/deps/v8/test/webkit/object-literal-direct-put.js index 69c085f06..99f0a60c0 100644 --- a/deps/v8/test/webkit/object-literal-direct-put.js +++ b/deps/v8/test/webkit/object-literal-direct-put.js @@ -25,11 +25,11 @@ description("This test ensures that properties on an object literal are put dire shouldBeTrue("({a:true}).a"); shouldBeTrue("({__proto__: {a:false}, a:true}).a"); -shouldBeTrue("({__proto__: {set a() {throw 'Should not call setter'; }}, a:true}).a"); +shouldBeTrue("({__proto__: {set a(v) {throw 'Should not call setter'; }}, a:true}).a"); shouldBeTrue("({__proto__: {get a() {throw 'Should not reach getter'; }}, a:true}).a"); shouldBeTrue("({__proto__: {get a() {throw 'Should not reach getter'; }, b:true}, a:true}).b"); shouldBeTrue("({__proto__: {__proto__: {a:false}}, a:true}).a"); -shouldBeTrue("({__proto__: {__proto__: {set a() {throw 'Should not call setter'; }}}, a:true}).a"); +shouldBeTrue("({__proto__: {__proto__: {set a(v) {throw 'Should not call setter'; }}}, a:true}).a"); shouldBeTrue("({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }}}, a:true}).a"); shouldBeTrue("({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }, b:true}}, a:true}).b"); diff --git a/deps/v8/test/webkit/object-literal-syntax-expected.txt b/deps/v8/test/webkit/object-literal-syntax-expected.txt index 13b3499ce..f9764454c 100644 --- a/deps/v8/test/webkit/object-literal-syntax-expected.txt +++ b/deps/v8/test/webkit/object-literal-syntax-expected.txt @@ -27,25 +27,25 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE PASS ({a:1, get a(){}}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. -PASS ({a:1, set a(){}}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. +PASS ({a:1, set a(v){}}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. PASS ({get a(){}, a:1}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. -PASS ({set a(){}, a:1}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. +PASS ({set a(v){}, a:1}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. PASS ({get a(){}, get a(){}}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. -PASS ({set a(){}, set a(){}}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. -PASS ({set a(){}, get a(){}, set a(){}}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. +PASS ({set a(v){}, set a(v){}}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. +PASS ({set a(v){}, get a(){}, set a(v){}}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. PASS (function(){({a:1, get a(){}})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. -PASS (function(){({a:1, set a(){}})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. +PASS (function(){({a:1, set a(v){}})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. PASS (function(){({get a(){}, a:1})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. -PASS (function(){({set a(){}, a:1})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. +PASS (function(){({set a(v){}, a:1})}) threw exception SyntaxError: Object literal may not have data and accessor property with the same name. PASS (function(){({get a(){}, get a(){}})}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. -PASS (function(){({set a(){}, set a(){}})}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. -PASS (function(){({set a(){}, get a(){}, set a(){}})}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. +PASS (function(){({set a(v){}, set a(v){}})}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. +PASS (function(){({set a(v){}, get a(){}, set a(v){}})}) threw exception SyntaxError: Object literal may not have multiple get/set accessors with the same name. PASS ({a:1, a:1, a:1}), true is true -PASS ({get a(){}, set a(){}}), true is true -PASS ({set a(){}, get a(){}}), true is true +PASS ({get a(){}, set a(v){}}), true is true +PASS ({set a(v){}, get a(){}}), true is true PASS (function(){({a:1, a:1, a:1})}), true is true -PASS (function(){({get a(){}, set a(){}})}), true is true -PASS (function(){({set a(){}, get a(){}})}), true is true +PASS (function(){({get a(){}, set a(v){}})}), true is true +PASS (function(){({set a(v){}, get a(){}})}), true is true PASS successfullyParsed is true TEST COMPLETE diff --git a/deps/v8/test/webkit/object-literal-syntax.js b/deps/v8/test/webkit/object-literal-syntax.js index 6884bec40..e9cc2dd8c 100644 --- a/deps/v8/test/webkit/object-literal-syntax.js +++ b/deps/v8/test/webkit/object-literal-syntax.js @@ -24,22 +24,22 @@ description("Make sure that we correctly identify parse errors in object literals"); shouldThrow("({a:1, get a(){}})"); -shouldThrow("({a:1, set a(){}})"); +shouldThrow("({a:1, set a(v){}})"); shouldThrow("({get a(){}, a:1})"); -shouldThrow("({set a(){}, a:1})"); +shouldThrow("({set a(v){}, a:1})"); shouldThrow("({get a(){}, get a(){}})"); -shouldThrow("({set a(){}, set a(){}})"); -shouldThrow("({set a(){}, get a(){}, set a(){}})"); +shouldThrow("({set a(v){}, set a(v){}})"); +shouldThrow("({set a(v){}, get a(){}, set a(v){}})"); shouldThrow("(function(){({a:1, get a(){}})})"); -shouldThrow("(function(){({a:1, set a(){}})})"); +shouldThrow("(function(){({a:1, set a(v){}})})"); shouldThrow("(function(){({get a(){}, a:1})})"); -shouldThrow("(function(){({set a(){}, a:1})})"); +shouldThrow("(function(){({set a(v){}, a:1})})"); shouldThrow("(function(){({get a(){}, get a(){}})})"); -shouldThrow("(function(){({set a(){}, set a(){}})})"); -shouldThrow("(function(){({set a(){}, get a(){}, set a(){}})})"); +shouldThrow("(function(){({set a(v){}, set a(v){}})})"); +shouldThrow("(function(){({set a(v){}, get a(){}, set a(v){}})})"); shouldBeTrue("({a:1, a:1, a:1}), true"); -shouldBeTrue("({get a(){}, set a(){}}), true"); -shouldBeTrue("({set a(){}, get a(){}}), true"); +shouldBeTrue("({get a(){}, set a(v){}}), true"); +shouldBeTrue("({set a(v){}, get a(){}}), true"); shouldBeTrue("(function(){({a:1, a:1, a:1})}), true"); -shouldBeTrue("(function(){({get a(){}, set a(){}})}), true"); -shouldBeTrue("(function(){({set a(){}, get a(){}})}), true"); +shouldBeTrue("(function(){({get a(){}, set a(v){}})}), true"); +shouldBeTrue("(function(){({set a(v){}, get a(){}})}), true"); diff --git a/deps/v8/test/webkit/string-replacement-outofmemory-expected.txt b/deps/v8/test/webkit/string-replacement-outofmemory-expected.txt index 68ac21796..946b248ed 100644 --- a/deps/v8/test/webkit/string-replacement-outofmemory-expected.txt +++ b/deps/v8/test/webkit/string-replacement-outofmemory-expected.txt @@ -21,3 +21,12 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +This tests that string replacement with a large replacement string causes an out-of-memory exception. See bug 102956 for more details. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS x.replace(/\d/g, y) threw exception RangeError: Invalid string length. +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/deps/v8/test/webkit/string-replacement-outofmemory.js b/deps/v8/test/webkit/string-replacement-outofmemory.js index 2b8e18a85..becfdc6a1 100644 --- a/deps/v8/test/webkit/string-replacement-outofmemory.js +++ b/deps/v8/test/webkit/string-replacement-outofmemory.js @@ -37,5 +37,5 @@ var y = "2"; x = createStringWithRepeatedChar(x, 1 << 12); y = createStringWithRepeatedChar(y, (1 << 20) + 1); -shouldThrow("x.replace(/\\d/g, y)", '"Error: Out of memory"'); +shouldThrow("x.replace(/\\d/g, y)", '"RangeError: Invalid string length"'); var successfullyParsed = true; diff --git a/deps/v8/test/webkit/webkit.status b/deps/v8/test/webkit/webkit.status index a6bf845d0..c14d5c13c 100644 --- a/deps/v8/test/webkit/webkit.status +++ b/deps/v8/test/webkit/webkit.status @@ -27,16 +27,18 @@ [ [ALWAYS, { - # BUG(237872). TODO(bmeurer): Investigate. - 'string-replacement-outofmemory': [FAIL], - - ############################################################################## # Flaky tests. # BUG(v8:2989). 'dfg-inline-arguments-become-double': [PASS, FAIL], 'dfg-inline-arguments-become-int32': [PASS, FAIL], 'dfg-inline-arguments-reset': [PASS, FAIL], 'dfg-inline-arguments-reset-changetype': [PASS, FAIL], + # TODO(turbofan): Sometimes the try-catch blacklist fails. + 'exception-with-handler-inside-eval-with-dynamic-scope': [PASS, NO_VARIANTS], + # TODO(turbofan): We run out of stack earlier on 64-bit for now. + 'fast/js/deep-recursion-test': [PASS, NO_VARIANTS], + # TODO(bmeurer,svenpanne): Investigate test failure. + 'fast/js/toString-number': [SKIP], }], # ALWAYS ['mode == debug', { # Too slow in debug mode. @@ -51,4 +53,13 @@ ['arch == arm64 and simulator_run == True', { 'dfg-int-overflow-in-loop': [SKIP], }], # 'arch == arm64 and simulator_run == True' + + +############################################################################## +['gc_stress == True', { + # Tests taking too long + 'fast/js/excessive-comma-usage': [SKIP] +}], # 'gc_stress == True' + +############################################################################## ] |