src/cm/media/js/lib/yui/yui3.0.0/tests/dump/tests/dump.html
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 0 40c8f766c9b8
permissions -rw-r--r--
add link to "privacy policy" in the header test

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YUI dump Tests</title>
</head>

<body class="yui-skin-sam">
<h1>dump Tests</h1>
<p><input type="button" value="Run Tests" id="btnRun" disabled="true" /></p>

<script type="text/javascript" src="../../../build/yui/yui.js"></script>
<script type="text/javascript">

(function() {
    YUI({
        base: "../../../build/",
        filter: "debug",
        useConsole: true,
        // logInclude: ['event', 'test']
        //logExclude: ['Dom', 'Selector', 'Node', 'attribute']
        logExclude: {Dom:true, 
        Selector:true, Node:true, attribute:true, event:true, base:true}
    }).use("dump", "test", "console", "event-custom", function(Y) {

        var button = Y.get('#btnRun'),
            Assert = Y.Assert,
            ObjectAssert = Y.ObjectAssert;

        // Set up the page
        button.set("disabled", false);
        Y.on("click", function() {
            Y.Test.Runner.run();
        }, button);

        // var myConsole = new Y.Console().render();
 
        var testdump= new Y.Test.Case({
            name: "dump tests",
        
            test_dump: function() {
                Assert.areEqual("0", Y.Lang.dump(0));
                Assert.areEqual("null", Y.Lang.dump(null));
                Assert.areEqual("false", Y.Lang.dump(false));
                // Other types tested in substitute
            }

        });
            

        Y.Test.Runner.add(testdump);
        Y.Test.Runner.run();
    });
})();
</script>
</body>
</html>