Changeset 184871 in webkit for trunk/Source/JavaScriptCore/tests
- Timestamp:
- May 26, 2015, 2:17:22 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore/tests/stress
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/tests/stress/array-copywithin.js
r184863 r184871 35 35 shouldBe(Array.prototype.hasOwnProperty('copyWithin'), true); 36 36 shouldBe(JSON.stringify(Object.getOwnPropertyDescriptor(Array.prototype, 'copyWithin')), '{"writable":true,"enumerable":false,"configurable":true}'); 37 38 // 0 arguments. (it is equivalent to copyWithin(0)) 39 shouldBeArray([1, 2, 3, 4, 5].copyWithin(), [1, 2, 3, 4, 5]); 40 shouldBeArray([].copyWithin(), []); 37 41 38 42 // 1 arguments. … … 235 239 shouldThrow(function () { 236 240 Array.prototype.copyWithin.call(undefined); 237 }, 'TypeError: Array.copyWithin requires that |this| be notnull or undefined');241 }, 'TypeError: Array.copyWithin requires that |this| not be null or undefined'); 238 242 239 243 shouldThrow(function () { 240 244 Array.prototype.copyWithin.call(null); 241 }, 'TypeError: Array.copyWithin requires that |this| be notnull or undefined');245 }, 'TypeError: Array.copyWithin requires that |this| not be null or undefined'); 242 246 243 247 -
trunk/Source/JavaScriptCore/tests/stress/string-iterators.js
r182118 r184871 183 183 var message = 'TypeError: %StringIteratorPrototype%.next requires that |this| be a String Iterator instance'; 184 184 if (primitive == null) 185 message = 'TypeError: %StringIteratorPrototype%.next requires that |this| be notnull or undefined'185 message = 'TypeError: %StringIteratorPrototype%.next requires that |this| not be null or undefined' 186 186 if (String(didThrow) !== message) 187 187 throw "Error: bad error thrown: " + didThrow;
Note:
See TracChangeset
for help on using the changeset viewer.