classnamemanager.html revision f0356c78ab4c064aefae40965cbaf2b9b92efe99
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>YUI ClassNameManager Node Plugin Tests</title>
</head>
<body class="yui-skin-sam">
<script src="/yui3/build/yui/yui.js" type="text/javascript"></script>
<script type="text/javascript">
YUI({base:"/build/", timeout: 10000}).use("test", "console", function(Y) {
Y.on("domready", function () {
var myConsole = new Y.Console().render();
var testClassNameManager = new Y.Test.Case({
name: "ClassNameManager Tests",
testCoreFunctionality: function() {
Y.Assert.areEqual(Y.ClassNameManager.getClassName("menuitem"), "yui-menuitem");
Y.Assert.areEqual(Y.ClassNameManager.getClassName("menu item"), "yui-menuitem");
Y.Assert.areEqual(Y.ClassNameManager.getClassName("menuitem", "active"), "yui-menuitem-active");
}
});
Y.Test.Runner.add(testClassNameManager);
Y.Test.Runner.run();
}, "#list-2");
});
</script>
</body>
</html>