OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <div id="description"></div> | 4 <div id="description"></div> |
5 <div id="console"></div> | 5 <div id="console"></div> |
6 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../../../resources/js-test.js"></script> |
7 <script src="../../../../PerformanceTests/resources/runner.js"></script> | 7 <script src="../../../../PerformanceTests/resources/runner.js"></script> |
8 <script type="text/javascript"> | 8 <script type="text/javascript"> |
9 | 9 |
10 description("This test verifies PerfTestRunner.runPerSecond() calls runFunction
as many times as expected."); | 10 description("This test verifies PerfTestRunner.runPerSecond() calls runFunction
as many times as expected."); |
11 | 11 |
12 var iteration = 0; | 12 var iteration = 0; |
13 var currentTime = 100; | 13 var currentTime = 100; |
14 var callsInIterations = []; | 14 var callsInIterations = []; |
15 var timesInIterations = [0, 10, 30, 60, 200, 200, 200, 200, 750]; | 15 var timesInIterations = [0, 10, 30, 60, 200, 200, 200, 200, 750]; |
16 var logLines = []; | 16 var logLines = []; |
(...skipping 29 matching lines...) Expand all Loading... |
46 shouldBe("callsInIterations[6]", "callsInIterations[7]"); | 46 shouldBe("callsInIterations[6]", "callsInIterations[7]"); |
47 shouldBe("callsInIterations[7]", "callsInIterations[8]"); | 47 shouldBe("callsInIterations[7]", "callsInIterations[8]"); |
48 shouldBeUndefined("callsInIterations[9]"); | 48 shouldBeUndefined("callsInIterations[9]"); |
49 }}); | 49 }}); |
50 | 50 |
51 var jsTestIsAsync = true; | 51 var jsTestIsAsync = true; |
52 | 52 |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |