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

Side by Side Diff: mozilla-tests/js1_5/extensions/regress-434837-01.js

Issue 2865028: Update the mozilla tests to new version (as of 2010-06-29). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 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
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 4 *
5 * The contents of this file are subject to the Mozilla Public License Version 5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with 6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at 7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 8 * http://www.mozilla.org/MPL/
9 * 9 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 10 * Software distributed under the License is distributed on an "AS IS" basis,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 expect = true; 112 expect = true;
113 actual = null; 113 actual = null;
114 x.test3; 114 x.test3;
115 } 115 }
116 catch(ex) 116 catch(ex)
117 { 117 {
118 actual = ex + ''; 118 actual = ex + '';
119 } 119 }
120 reportCompare(expect, actual, summary + ': x.test3 (2)'); 120 reportCompare(expect, actual, summary + ': x.test3 (2)');
121 121
122 try
123 {
124 var y = ['a', 'b', 'c', 'd'];
125 expect = 4;
126 actual = y.__count__;
127 }
128 catch(ex)
129 {
130 actual = ex + '';
131 }
132 reportCompare(expect, actual, summary + ': y.__count__');
133
134 try
135 {
136 expect = 0;
137 actual = [].__count__;
138 }
139 catch(ex)
140 {
141 actual = ex + '';
142 }
143 reportCompare(expect, actual, summary + ': [].__count__');
144
145 try
146 {
147 expect = 1;
148 actual = [1].__count__;
149 }
150 catch(ex)
151 {
152 actual = ex + '';
153 }
154 reportCompare(expect, actual, summary + ': [1].__count__');
155
156 try
157 {
158 expect = 9;
159 actual = [1,2,3,4,5,6,7,8,9].__count__;
160 }
161 catch(ex)
162 {
163 actual = ex + '';
164 }
165 reportCompare(expect, actual, summary + ': [1].__count__');
166
167 exitFunc ('test'); 122 exitFunc ('test');
168 } 123 }
OLDNEW
« no previous file with comments | « mozilla-tests/js1_5/extensions/regress-432075.js ('k') | mozilla-tests/js1_5/extensions/regress-435497-01.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698