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

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial