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

Side by Side Diff: LayoutTests/fast/js/function-apply-expected.txt

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 Tests to ensure that Function.apply works correctly for Arrays, arguments and ar ray-like objects.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS argumentsApply1(1, 2, 3) is 1
7 PASS argumentsApply2(1, 2, 3) is 2
8 PASS argumentsApply3(1, 2, 3) is 3
9 PASS argumentsApplyLength(1, 2, 3) is 3
10 PASS argumentsApplyExcessArguments(1, 2, 3) is 3
11 PASS executedAdditionalArgument is true
12 PASS arrayApply1([1, 2, 3]) is 1
13 PASS arrayApply2([1, 2, 3]) is 2
14 PASS arrayApply3([1, 2, 3]) is 3
15 PASS arrayApplyLength([1, 2, 3]) is 3
16 PASS argumentsApplyDelete1(1, 2, 3) is 1
17 PASS argumentsApplyDelete2(1, 2, 3) is undefined
18 PASS argumentsApplyDelete3(1, 2, 3) is 3
19 PASS argumentsApplyDeleteLength(1, 2, 3) is 3
20 PASS arrayApplyDelete1([1, 2, 3]) is 1
21 PASS arrayApplyDelete2([1, 2, 3]) is undefined
22 PASS arrayApplyDelete3([1, 2, 3]) is 3
23 PASS arrayApplyDeleteLength([1, 2, 3]) is 3
24 PASS argumentsApplyChangeLength1(1) is 2
25 PASS argumentsApplyChangeLength2(1) is 2
26 PASS argumentsApplyChangeLength3(1) is 2
27 PASS argumentsApplyChangeLength4(1) is 0
28 PASS argumentsApplyChangeLength5(1) is 0
29 PASS arrayApplyChangeLength1() is 2
30 PASS arrayApplyChangeLength2() is 2
31 PASS arrayApplyChangeLength3() is 2
32 PASS arrayApplyChangeLength4() is 0
33 PASS var a = []; a.length = 0xFFFE; [].constructor.apply('', a).length is 0xFFFE
34 PASS var a = []; a.length = 0xFFFF; [].constructor.apply('', a).length is 0xFFFF
35 PASS var a = []; a.length = 0x10000; [].constructor.apply('', a).length is 0x100 00
36 FAIL var a = []; a.length = 0x10001; [].constructor.apply('', a).length should t hrow an exception. Was 65537.
37 PASS var a = []; a.length = 0xFFFFFFFE; [].constructor.apply('', a).length threw exception RangeError: Maximum call stack size exceeded.
38 PASS var a = []; a.length = 0xFFFFFFFF; [].constructor.apply('', a).length threw exception RangeError: Maximum call stack size exceeded.
39 PASS (function(a,b,c,d){ return d ? -1 : (a+b+c); }).apply(undefined, {length:3, 0:100, 1:20, 2:3}) is 123
40 PASS successfullyParsed is true
41
42 TEST COMPLETE
43
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/function-apply.html ('k') | LayoutTests/fast/js/function-constructor-error.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698