!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/pyshared/nevow/js/Nevow/Test/   drwxr-xr-x
Free 129.91 GB of 142.11 GB (91.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     TestInit.js (2.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// -*- test-case-name: nevow.test.test_javascript.JSUnitTests.test_init -*-

// import Divmod.UnitTest
// import Nevow.Athena
// import Nevow.Test.Util

Nevow.Test.TestInit.InitTests = Divmod.UnitTest.TestCase.subclass(
    'Nevow.Test.TestInit.InitTests');
Nevow.Test.TestInit.InitTests.methods(
    /**
     * Set up a faker so that this test can fake global variables.
     */
    function setUp(self) {
        self.faker = Nevow.Test.Util.Faker();
    },
    /**
     * Restore global state to what it was before this test's faker was put
     * into effect.
     */
    function tearDown(self) {
        self.faker.stop();
    },

    /**
     * Bootstrapping the Nevow.Athena module should create a page widget
     * object of the requested class and assign it to Nevow.Athena.page, then
     * notify the page to bind its events to the global window.
     */
    function test_bootstrap(self) {
        var notAthena = {};
        var myWind = self.faker.fake('window', {});
        var SOME_ID = 'asdfjkl;';
        notAthena.bootstrap = Nevow.Athena.bootstrap;
        notAthena.bootstrap('Nevow.Athena.PageWidget', SOME_ID);
        self.assert(notAthena.page instanceof Nevow.Athena.PageWidget);
        self.assertIdentical(notAthena.page.livepageID, SOME_ID);

        var keyPressed = 0;
        notAthena.page.onkeypress = function () {
            keyPressed++;
        };
        myWind.onkeypress();
        self.assertIdentical(keyPressed, 1);
        myWind.onkeypress();
        self.assertIdentical(keyPressed, 2);

        var channelStarted = false;
        var beforeUnloaded = false;

        var notDeliveryChannel = {
            'start': function start() {
                channelStarted = true;
            }};

        notAthena.page.deliveryChannel = notDeliveryChannel;
        notAthena.page.onbeforeunload = function () {
            beforeUnloaded = true;
        };

        Divmod.Runtime.theRuntime.loadEvents[0]();
        self.assert(channelStarted);
        myWind.onbeforeunload();
        self.assert(beforeUnloaded);
    });

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0175 ]--