root/public/javascripts/scriptaculous/test/unit/loading_test.html

Revision 1, 1.2 kB (checked in by falcon, 17 years ago)

Version one -> initial work from the laptop.

Line 
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
18<!-- Log output -->
19<div id="testlog"> </div>
20
21<!-- Tests follow -->
22<script type="text/javascript" language="javascript" charset="utf-8">
23// <![CDATA[
24
25  new Test.Unit.Runner({
26   
27    testDynamicLoading: function() { with(this) {
28     
29      // not loaded: controls
30      assertNull(Ajax.Autocompleter || null);
31      assertNull(Form.Element.DelayedObserver || null);
32     
33      // we loading dragdrop
34      assertNotNull(Draggable || null);
35    }}
36   
37  }, "testlog");
38// ]]>
39</script>
40</body>
41</html>
Note: See TracBrowser for help on using the browser.