Sha256: 5882353ba6442310e752cc2819b5f48366a5dc81ea7190a10880d594d6ae9b87
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
<html> <head> <script type="text/javascript" src="../../../dojo.js" djConfig="parseOnLoad: false, isDebug: true"></script> </head> <body> <h1>Testcase for #8976</h1> <p>Test case for <a href="http://bugs.dojotoolkit.org/ticket/8976">#8976</a>, an async load issue with Firefox even though the loading should be synchronous. Click the button then check console log for output of test. If "count = 1, worked" shows up instead of an error, then the test is successful. </p> <script> var count = 0; function wait(count){ console.log("count = "+count+", calling addOnLoad"); dojo.addOnLoad(function(){ try{ console.log("count = "+count+", testing"); var i = dijit.layout.TabController.constructor; console.log("count = "+count+", worked"); }catch(e){ alert("failed: " + e) } }); console.log("count = "+count+", addOnLoad returned"); } function load(count){ console.log("count = "+count+", calling require"); dojo.require("dijit.dijit"); dojo.require("dijit.dijit-all"); console.log("count = "+count+", require returned"); } </script> <input type=button onmousedown="load(count++);return true" onmouseup="wait(count++);return true" value="click this button to load and wait"> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dojo_rails-0.0.2 | vendor/assets/javascripts/dojo/tests/_base/loader/8976.html |
dojo_rails-0.0.1 | vendor/assets/javascripts/dojo/tests/_base/loader/8976.html |