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

Side by Side Diff: test/mjsunit/regress/regress-crbug-3867.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years 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
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 this.c2 = "D"; 49 this.c2 = "D";
50 } 50 }
51 51
52 assertArrayEquals(["a1", "a2", "a3"], props(new A())); 52 assertArrayEquals(["a1", "a2", "a3"], props(new A()));
53 assertArrayEquals(["b3", "b2", "b1"], props(new B())); 53 assertArrayEquals(["b3", "b2", "b1"], props(new B()));
54 assertArrayEquals(["c3", "c1", "c2"], props(new C())); 54 assertArrayEquals(["c3", "c1", "c2"], props(new C()));
55 assertArrayEquals(["s1", "s2", "s3"], props({s1: 0, s2: 0, s3: 0})); 55 assertArrayEquals(["s1", "s2", "s3"], props({s1: 0, s2: 0, s3: 0}));
56 assertArrayEquals(["s3", "s2", "s1"], props({s3: 0, s2: 0, s1: 0})); 56 assertArrayEquals(["s3", "s2", "s1"], props({s3: 0, s2: 0, s1: 0}));
57 assertArrayEquals(["s3", "s1", "s2"], props({s3: 0, s1: 0, s2: 0})); 57 assertArrayEquals(["s3", "s1", "s2"], props({s3: 0, s1: 0, s2: 0}));
58 58
59 var a = new A() 59 var a = new A();
60 a.a0 = 0; 60 a.a0 = 0;
61 a.a4 = 0; 61 a.a4 = 0;
62 assertArrayEquals(["a1", "a2", "a3", "a0", "a4"], props(a)); 62 assertArrayEquals(["a1", "a2", "a3", "a0", "a4"], props(a));
63 63
64 var b = new B() 64 var b = new B();
65 b.b4 = 0; 65 b.b4 = 0;
66 b.b0 = 0; 66 b.b0 = 0;
67 assertArrayEquals(["b3", "b2", "b1", "b4", "b0"], props(b)); 67 assertArrayEquals(["b3", "b2", "b1", "b4", "b0"], props(b));
68 68
69 var o1 = {s1: 0, s2: 0, s3: 0} 69 var o1 = {s1: 0, s2: 0, s3: 0};
70 o1.s0 = 0; 70 o1.s0 = 0;
71 o1.s4 = 0; 71 o1.s4 = 0;
72 assertArrayEquals(["s1", "s2", "s3", "s0", "s4"], props(o1)); 72 assertArrayEquals(["s1", "s2", "s3", "s0", "s4"], props(o1));
73 73
74 var o2 = {s3: 0, s2: 0, s1: 0} 74 var o2 = {s3: 0, s2: 0, s1: 0};
75 o2.s4 = 0; 75 o2.s4 = 0;
76 o2.s0 = 0; 76 o2.s0 = 0;
77 assertArrayEquals(["s3", "s2", "s1", "s4", "s0"], props(o2)); 77 assertArrayEquals(["s3", "s2", "s1", "s4", "s0"], props(o2));
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-crbug-37853.js ('k') | test/mjsunit/regress/regress-crbug-39160.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698