Add very simple loading test for non-SFI NaCl.
[chromium-blink-merge.git] / chrome / test / data / dromaeo / tests / dromaeo-core-eval.html
blob5b6cd2cee9a67477ede50e9ede3af93fde034dc9
1 <html>
2 <head>
3 <script src="../htmlrunner.js"></script>
4 <script>
5 window.onload = function(){ startTest("dromaeo-core-eval", 'efec1da2');
7 // Try to force real results
8 var ret, tmp;
10 // The commands that we'll be evaling
11 var cmd = 'var str="";for(var i=0;i<1000;i++){str += "a";}ret = str;';
13 // TESTS: eval()
14 var num = 4;
16 prep(function(){
17 tmp = cmd;
19 for ( var n = 0; n < num; n++ )
20 tmp += tmp;
21 });
23 test( "Normal eval", function(){
24 eval(tmp);
25 });
27 test( "new Function", function(){
28 (new Function(tmp))();
29 });
31 endTest(); };
32 </script>
33 </head>
34 <body></body>
35 </html>