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

Side by Side Diff: mozilla-tests/js1_5/extensions/regress-342960.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 try 59 try
60 { 60 {
61 function v() 61 function v()
62 { 62 {
63 var meg=""; 63 var meg="";
64 var r=""; 64 var r="";
65 var i; 65 var i;
66 print("don't interrupt the script. let it go."); 66 print("don't interrupt the script. let it go.");
67 for(i=0;i<1024*1024;i++) meg += "v"; 67 for(i=0;i<1024*1024;i++) meg += "v";
68 for(i=0;i<1024/4;i++) r += meg; 68 for(i=0;i<1024/8;i++) r += meg;
69 var o={f1: r, f2: r, f3: r,f4: r,f5: r, f6: r, f7: r, f8: r,f9: r}; 69 var o={f1: r, f2: r, f3: r,f4: r,f5: r, f6: r, f7: r, f8: r,f9: r};
70 print('done obj'); 70 print('done obj');
71 var rr=r.toSource(); 71 var rr=r.toSource();
72 print('done toSource()'); 72 print('done toSource()');
73 } 73 }
74 74
75 v(); 75 v();
76 } 76 }
77 catch(ex) 77 catch(ex)
78 { 78 {
79 expect = 'InternalError: script stack space quota is exhausted'; 79 expect = 'InternalError: script stack space quota is exhausted';
80 actual = ex + ''; 80 actual = ex + '';
81 print(actual); 81 print(actual);
82 } 82 }
83 83
84 reportCompare(expect, actual, summary); 84 reportCompare(expect, actual, summary);
85 85
86 exitFunc ('test'); 86 exitFunc ('test');
87 } 87 }
OLDNEW
« no previous file with comments | « mozilla-tests/js1_5/extensions/regress-300079.js ('k') | mozilla-tests/js1_5/extensions/regress-359024.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698