dom/tests/mochitest/ajax/scriptaculous/test/unit/loading_test.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/ajax/scriptaculous/test/unit/loading_test.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     1.5 +        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     1.7 +<head>
     1.8 +  <title>script.aculo.us Unit test file</title>
     1.9 +  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    1.10 +  <script src="../../lib/prototype.js" type="text/javascript"></script>
    1.11 +  <script src="../../src/scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>
    1.12 +  <script src="../../src/unittest.js" type="text/javascript"></script>
    1.13 +  <link rel="stylesheet" href="../test.css" type="text/css" />
    1.14 +</head>
    1.15 +<body>
    1.16 +<h1>script.aculo.us Unit test file</h1>
    1.17 +<p>
    1.18 +  Test dynamic loading in scriptaculous.js
    1.19 +</p>
    1.20 +
    1.21 +<!-- Log output -->
    1.22 +<div id="testlog"> </div>
    1.23 +
    1.24 +<!-- Tests follow -->
    1.25 +<script type="text/javascript" language="javascript" charset="utf-8">
    1.26 +// <![CDATA[
    1.27 +
    1.28 +  new Test.Unit.Runner({
    1.29 +    
    1.30 +    testDynamicLoading: function() { with(this) {
    1.31 +      
    1.32 +      // not loaded: controls
    1.33 +      assertNull(Ajax.Autocompleter || null);
    1.34 +      assertNull(Form.Element.DelayedObserver || null);
    1.35 +      
    1.36 +      // we loading dragdrop
    1.37 +      assertNotNull(Draggable || null);
    1.38 +    }}
    1.39 +    
    1.40 +  }, "testlog");
    1.41 +// ]]>
    1.42 +</script>
    1.43 +</body>
    1.44 +</html>
    1.45 \ No newline at end of file

mercurial