1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/test/test_consoleEmptyStack.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <meta charset="UTF-8"> 1.8 + <title>Test for empty stack in console</title> 1.9 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.10 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.11 +</head> 1.12 +<body> 1.13 +<script type="application/javascript"> 1.14 +SimpleTest.waitForExplicitFinish(); 1.15 + 1.16 +window.setTimeout(console.log.bind(console), 0, "xyz"); 1.17 + 1.18 +window.addEventListener("fake", console.log.bind(console, "xyz")); 1.19 + 1.20 +window.addEventListener("fake", function() { 1.21 + ok(true, "Still alive"); 1.22 + SimpleTest.finish(); 1.23 +}); 1.24 + 1.25 +window.dispatchEvent(new Event("fake")); 1.26 +</script> 1.27 +</pre> 1.28 +</body> 1.29 +</html> 1.30 +