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

Side by Side Diff: test/webkit/fast/js/kde/Array-expected.txt

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « test/webkit/fast/js/kde/Array.js ('k') | test/webkit/fast/js/kde/Boolean.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # 2. Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the
11 # documentation and/or other materials provided with the distribution.
12 #
13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24 KDE JS Test
25
26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
27
28
29 PASS Array().length is 0
30 PASS (new Array()).length is 0
31 PASS (new Array(3)).length is 3
32 PASS (new Array(11, 22)).length is 2
33 PASS (new Array(11, 22))[0] is 11
34 PASS Array(11, 22)[1] is 22
35 PASS (new Array(11, 22))[3] is undefined.
36 PASS String(new Array(11, 22)) is '11,22'
37 PASS var a = []; a[0] = 33; a[0] is 33
38 PASS var a = []; a[0] = 33; a.length is 1
39 PASS var a = [11, 22]; a.length = 1; String(a); is '11'
40 PASS var a = [11, 22]; a.length = 1; a.length; is 1
41 PASS caught; is true
42 PASS ename is 'RangeError'
43 PASS caught; is true
44 PASS ename is 'RangeError'
45 PASS var a = [11, 22]; a.length = 1; a[1]; is undefined.
46 PASS Array().toString() is ''
47 PASS Array(3).toString() is ',,'
48 PASS Array(11, 22).toString() is '11,22'
49 PASS String(Array(11, 22).concat(33)) is '11,22,33'
50 PASS String(Array(2).concat(33, 44)) is ',,33,44'
51 PASS String(Array(2).concat(Array(2))) is ',,,'
52 PASS String(Array(11,22).concat(Array(33,44))) is '11,22,33,44'
53 PASS String(Array(1,2).concat(3,Array(4,5))) is '1,2,3,4,5'
54 PASS var a = new Array(1,2,3); delete a[1]; String(a.concat(4)) is '1,,3,4'
55 PASS [1,2,3,4].slice(1, 3).toString() is '2,3'
56 PASS [1,2,3,4].slice(-3, -1).toString() is '2,3'
57 PASS [1,2].slice(-9, 0).length is 0
58 PASS [1,2].slice(1).toString() is '2'
59 PASS [1,2].slice().toString() is '1,2'
60 PASS (new Array('a')).length is 1
61 PASS (new Array('a'))[0] is 'a'
62 PASS (new Array('a'))[1] is undefined.
63 PASS Array('a').length is 1
64 PASS Array('a')[0] is 'a'
65 PASS String(Array()) is ''
66 PASS String(Array('a','b')) is 'a,b'
67 PASS [].length is 0
68 PASS ['a'].length is 1
69 PASS ['a'][0] is 'a'
70 PASS ['a',,'c'][2] is 'c'
71 PASS ['a',undefined,'c'][1] is undefined
72 PASS ['a',,'c'][1] is undefined
73 PASS 1 in ['a',,'c'] is false
74 PASS 1 in ['a',undefined,'c'] is true
75 PASS 1 in arrayWithDeletion is false
76 PASS forInSum([]) is ''
77 PASS forInSum(Array()) is ''
78 PASS forInSum(Array('a')) is 'a'
79 PASS forInSum([,undefined,'x','aa']) is 'undefinedxaa'
80 PASS forInSum(a0) is ''
81 PASS forInSum(a1) is 'a'
82 PASS String([].sort()) is ''
83 PASS String([3,1,'2'].sort()) is '1,2,3'
84 PASS String([,'x','aa'].sort()) is 'aa,x,'
85 PASS String([,undefined,'x','aa'].sort()) is 'aa,x,,'
86 PASS 2 in [,undefined,'x','aa'].sort() is true
87 PASS 3 in [,undefined,'x','aa'].sort() is false
88 PASS var a = ['aa', 'b', 'cccc', 'ddd']; String(a.sort(comp)) is 'b,aa,ddd,cccc'
89 PASS [0, Infinity].sort(function(a, b) { return a - b }).toString() is '0,Infini ty'
90 PASS [].unshift('a') is 1
91 PASS ['c'].unshift('a', 'b') is 3
92 PASS var a = []; a.unshift('a'); String(a) is 'a'
93 PASS var a = ['c']; a.unshift('a', 'b'); String(a) is 'a,b,c'
94 PASS String(['a', 'b', 'c'].splice(1, 2, 'x', 'y')) is 'b,c'
95 PASS arr.length is 40
96 PASS arr[maxint] is "test"
97 PASS arr.length is 40
98 PASS arr[maxint] is undefined
99 PASS arr.length is maxint
100 PASS arr[maxint-1] is "test2"
101 PASS arr.length is 40
102 PASS arr[55.5] is "test"
103 PASS arr[65.11111111111111111111111111111] is "test"
104 PASS arr.length is 40
105 PASS arr[55.5] is undefined
106 PASS arr[65.11111111111111111111111111111] is undefined
107 PASS propnames.length is 3
108 PASS propnames[0] is '0'
109 PASS propnames[1] is '1'
110 PASS propnames[2] is '2'
111 PASS successfullyParsed is true
112
113 TEST COMPLETE
114
OLDNEW
« no previous file with comments | « test/webkit/fast/js/kde/Array.js ('k') | test/webkit/fast/js/kde/Boolean.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698