loading_test.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>script.aculo.us Unit test file</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <script src="../../lib/prototype.js" type="text/javascript"></script>
  8. <script src="../../src/scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>
  9. <script src="../../src/unittest.js" type="text/javascript"></script>
  10. <link rel="stylesheet" href="../test.css" type="text/css" />
  11. </head>
  12. <body>
  13. <h1>script.aculo.us Unit test file</h1>
  14. <p>
  15. Test dynamic loading in scriptaculous.js
  16. </p>
  17. <!-- Log output -->
  18. <div id="testlog"> </div>
  19. <!-- Tests follow -->
  20. <script type="text/javascript" language="javascript" charset="utf-8">
  21. // <![CDATA[
  22. new Test.Unit.Runner({
  23. testDynamicLoading: function() { with(this) {
  24. // not loaded: controls
  25. assertNull(Ajax.Autocompleter || null);
  26. assertNull(Form.Element.DelayedObserver || null);
  27. // we loading dragdrop
  28. assertNotNull(Draggable || null);
  29. }}
  30. }, "testlog");
  31. // ]]>
  32. </script>
  33. </body>
  34. </html>