1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/test/test_settimeout_extra_arguments.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +<!DOCTYPE html> 1.5 +<meta charset=utf-8> 1.6 +<title>Test for setTimeout with a string argument and more than 2 arguments</title> 1.7 +<script src="/resources/testharness.js"></script> 1.8 +<script src="/resources/testharnessreport.js"></script> 1.9 +<div id="log"></div> 1.10 +<script> 1.11 + t1 = async_test("setTimeout with more than 2 arguments, first argument a string, should work"); 1.12 + t2 = async_test("setInterval with more than 2 arguments, first argument a string, should work"); 1.13 + setTimeout("t1.done()", 0, {}); 1.14 + var interval = setInterval("clearInterval(interval); t2.done()", 0, {}); 1.15 +</script>