- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / dromaeo / tests / dromaeo-core-eval.html
1 <html>
2 <head>
3 <script src="../htmlrunner.js"></script>
4 <script>
5 window.onload = function(){ startTest("dromaeo-core-eval", 'efec1da2');
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>