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