| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 description("This checks that setTimeout() and setInterval() return unique resul
ts within their script execution context."); | 9 description("This checks that setTimeout() and setInterval() return unique resul
ts within their script execution context."); |
| 10 | 10 |
| 11 function checkTimeoutIDs(tID1, tID2, tID3) | 11 function checkTimeoutIDs(tID1, tID2, tID3) |
| 12 { | 12 { |
| 13 debug("Checking the results of setTimeout:"); | 13 debug("Checking the results of setTimeout:"); |
| 14 shouldBeTrue("tID1 > 0"); | 14 shouldBeTrue("tID1 > 0"); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 44 var iID2 = setInterval('echo("interval 2")', 0); | 44 var iID2 = setInterval('echo("interval 2")', 0); |
| 45 var tID3 = setTimeout('echo("timeout 3")', 0); | 45 var tID3 = setTimeout('echo("timeout 3")', 0); |
| 46 var iID3 = setInterval('echo("interval 3")', 0); | 46 var iID3 = setInterval('echo("interval 3")', 0); |
| 47 | 47 |
| 48 checkTimeoutIDs(tID1, tID2, tID3); | 48 checkTimeoutIDs(tID1, tID2, tID3); |
| 49 checkIntervalIDs(iID1, iID2, iID3); | 49 checkIntervalIDs(iID1, iID2, iID3); |
| 50 | 50 |
| 51 </script> | 51 </script> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |