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

Side by Side Diff: chrome/test/data/dromaeo/tests/dromaeo-core-eval.html

Issue 269054: Importing dromaeo performance tests to src/chrome/test/data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 <html>
2 <head>
3 <script src="../htmlrunner.js"></script>
4 <script>
5 window.onload = function(){ startTest("dromaeo-core-eval", '');
6
7 // Try to force real results
8 var ret, tmp;
9
10 // The commands that we'll be evaling
11 var cmd = 'var str="";for(var i=0;i<1000;i++){str += "a";}ret = str;';
12
13 // TESTS: eval()
14 var num = 4;
15
16 prep(function(){
17 tmp = cmd;
18
19 for ( var n = 0; n < num; n++ )
20 tmp += tmp;
21 });
22
23 test( "Normal eval", function(){
24 eval(tmp);
25 });
26
27 test( "new Function", function(){
28 (new Function(tmp))();
29 });
30
31 endTest(); };
32 </script>
33 </head>
34 <body></body>
35 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/dromaeo/tests/dromaeo-3d-cube.html ('k') | chrome/test/data/dromaeo/tests/dromaeo-object-array.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698