upgrading to YUI 2.6
data tables are going to need some work yet, but the other stuff seems to be working 100%
This commit is contained in:
parent
a041e93da8
commit
20f8df1291
2106 changed files with 993560 additions and 237 deletions
108
www/extras/yui/tests/base.html
Normal file
108
www/extras/yui/tests/base.html
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Test Page</title>
|
||||
<link type="text/css" rel="stylesheet" href="/assets/dpSyntaxHighlighter.css">
|
||||
<link type="text/css" rel="stylesheet" href="../build/logger/assets/logger.css">
|
||||
<link type="text/css" rel="stylesheet" href="../build/yuitest/assets/testlogger.css">
|
||||
<link type="text/css" rel="stylesheet" href="../build/paginator/assets/skins/sam/paginator.css">
|
||||
<style type="text/css" class="highlight-ignore">
|
||||
h1 {
|
||||
font: normal 125%/1.4 Arial, sans-serif;
|
||||
}
|
||||
.yui-log {
|
||||
display: inline;
|
||||
float: right;
|
||||
position: relative;
|
||||
}
|
||||
.yui-log-container {
|
||||
width: 300px;
|
||||
}
|
||||
.yui-log .yui-log-bd {
|
||||
height: 525px;
|
||||
}
|
||||
.yui-log .yui-log-ft {
|
||||
position: static;
|
||||
}
|
||||
.highlight-example {
|
||||
display: inline;
|
||||
float: left;
|
||||
width: 650px;
|
||||
}
|
||||
.highlight-example h2 {
|
||||
display: none;
|
||||
}
|
||||
.yui-log-bd h3 {
|
||||
border-bottom: 1px solid #ccc;
|
||||
color: #900;
|
||||
margin: 0;
|
||||
padding: 1em 0 0 1ex;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="yui-skin-sam">
|
||||
<h1>Tests</h1>
|
||||
<div id="testbed"></div>
|
||||
|
||||
<script type="text/javascript" src="../build/yahoo-dom-event/yahoo-dom-event.js"></script>
|
||||
<script type="text/javascript" src="../build/logger/logger-min.js"></script>
|
||||
<script type="text/javascript" src="../build/yuitest/yuitest-min.js"></script>
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
|
||||
var t = YAHOO.tool,
|
||||
u = YAHOO.util,
|
||||
w = YAHOO.widget,
|
||||
TestSuite = t.TestSuite,
|
||||
TestCase = t.TestCase,
|
||||
TestLogger = t.TestLogger,
|
||||
TestRunner = t.TestRunner,
|
||||
Event = u.Event,
|
||||
Dom = u.Dom,
|
||||
Assert = u.Assert,
|
||||
AAssert = u.ArrayAssert,
|
||||
OAssert = u.ObjectAssert,
|
||||
testbed = Dom.get('testbed'),
|
||||
suite;
|
||||
|
||||
suite = new TestSuite("Tests");
|
||||
|
||||
suite.add(new TestCase({
|
||||
name : "Test Case",
|
||||
|
||||
setUp : function () {
|
||||
},
|
||||
tearDown : function () {
|
||||
},
|
||||
|
||||
testFoo : function () {
|
||||
}
|
||||
}));
|
||||
|
||||
Event.onDOMReady(function () {
|
||||
|
||||
var logger = new TestLogger("log");
|
||||
logger.hideCategory('info');
|
||||
logger.formatMsg = function (e) {
|
||||
if (e.category === 'section') {
|
||||
return "<h3>"+e.msg+"</h3>";
|
||||
} else if (e.category === "break") {
|
||||
return "<br>";
|
||||
} else {
|
||||
return TestLogger.prototype.formatMsg.call(this,e);
|
||||
}
|
||||
};
|
||||
|
||||
YAHOO.log("Tests","section","TestRunner");
|
||||
|
||||
TestRunner.add(suite);
|
||||
|
||||
TestRunner.run();
|
||||
});
|
||||
|
||||
})();
|
||||
</script>
|
||||
<script type="text/javascript" src="/assets/dpSyntaxHighlighter.js"></script>
|
||||
<script type="text/javascript" src="/assets/dpSyntaxHighlightExample.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue