Permalink
Browse files

Adding StyleSheet yuitest suite and 3 more datatable tests.

Re-adding the artificial <div class="yui-skin-sam"> liner in host file.
  • Loading branch information...
1 parent ecd47b8 commit 783ddc9f36e7b4dd75c3865e6afa722d8d7f6510 @lsmith lsmith committed Sep 16, 2009
View
@@ -558,6 +558,14 @@
<arg value="${build}/datatable_test.vo.js" />
</exec>
</target>
+ <target name="stylesheet_test" depends="init">
+ <exec dir="." executable="${caja.cajoler}" >
+ <arg value="-i" />
+ <arg value="${yuitest}/stylesheet.html" />
+ <arg value="-o" />
+ <arg value="${build}/stylesheet_test.vo.js" />
+ </exec>
+ </target>
<target name="example_data" depends="init">
<exec dir="." executable="${caja.cajoler}" >
@@ -876,6 +884,30 @@
<arg value="${build}/datatable1_example.vo.js" />
</exec>
</target>
+ <target name="datatable2_ex" depends="init">
+ <exec dir="." executable="${caja.cajoler}" >
+ <arg value="-i" />
+ <arg value="${example}/dt_clientpagination_clean.html" />
+ <arg value="-o" />
+ <arg value="${build}/datatable2_example.vo.js" />
+ </exec>
+ </target>
+ <target name="datatable3_ex" depends="init">
+ <exec dir="." executable="${caja.cajoler}" >
+ <arg value="-i" />
+ <arg value="${example}/dt_cellediting_clean.html" />
+ <arg value="-o" />
+ <arg value="${build}/datatable3_example.vo.js" />
+ </exec>
+ </target>
+ <target name="datatable4_ex" depends="init">
+ <exec dir="." executable="${caja.cajoler}" >
+ <arg value="-i" />
+ <arg value="${example}/dt_enhanced_clean.html" />
+ <arg value="-o" />
+ <arg value="${build}/datatable4_example.vo.js" />
+ </exec>
+ </target>
<target name="all"
depends="init, yui, yui_css, gadgets, yuitests, examples" />
@@ -914,6 +946,6 @@
depends="init, core, layout1_ex, layout2_ex, layout3_ex, layout4_ex" />
<target name="datatable_examples"
- depends="init, core, datatable1_ex" />
+ depends="init, core, datatable1_ex, datatable2_ex, datatable3_ex, datatable4_ex" />
</project>

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -18,14 +18,14 @@
}
</style>
-<link rel="stylesheet" type="text/css" href="../../yui2/build/fonts/fonts-min.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/calendar/assets/skins/sam/calendar.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/datatable/assets/skins/sam/datatable.css" />
-<!--script type="text/javascript" src="../../build/yahoo-dom-event/yahoo-dom-event.js"></script-->
-<!--script type="text/javascript" src="../../build/calendar/calendar-min.js"></script-->
-<!--script type="text/javascript" src="../../build/element/element-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datasource/datasource-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datatable/datatable-min.js"></script-->
+<link rel="stylesheet" type="text/css" href="yui/fonts/fonts-min.css" />
+<link rel="stylesheet" type="text/css" href="yui/calendar/assets/skins/sam/calendar.css" />
+<link rel="stylesheet" type="text/css" href="yui/datatable/assets/skins/sam/datatable.css" />
+<script type="text/javascript" src="yui/yahoo-dom-event/yahoo-dom-event.js"></script>
+<script type="text/javascript" src="yui/calendar/calendar-min.js"></script>
+<script type="text/javascript" src="yui/element/element-min.js"></script>
+<script type="text/javascript" src="yui/datasource/datasource-min.js"></script>
+<script type="text/javascript" src="yui/datatable/datatable-min.js"></script>
<!--begin custom header content for this example-->
@@ -53,7 +53,7 @@
<div id="cellediting"></div>
-<!--script type="text/javascript" src="assets/js/data.js"></script-->
+<script type="text/javascript" src="assets/datatable/js/data.js"></script>
<script type="text/javascript">
YAHOO.util.Event.addListener(window, "load", function() {
YAHOO.example.InlineCellEditing = function() {
@@ -99,9 +99,5 @@
}();
});
</script>
-
-<!--END SOURCE CODE FOR EXAMPLE =============================== -->
-
</body>
</html>
-<!-- presentbright.corp.yahoo.com uncompressed/chunked Thu Feb 19 10:53:12 PST 2009 -->
@@ -18,16 +18,16 @@
}
</style>
-<link rel="stylesheet" type="text/css" href="../../yui2/build/fonts/fonts-min.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/paginator/assets/skins/sam/paginator.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/datatable/assets/skins/sam/datatable.css" />
-<!--script type="text/javascript" src="../../build/yahoo-dom-event/yahoo-dom-event.js"></script-->
-<!--script type="text/javascript" src="../../build/connection/connection-min.js"></script-->
-<!--script type="text/javascript" src="../../build/json/json-min.js"></script-->
-<!--script type="text/javascript" src="../../build/element/element-min.js"></script-->
-<!--script type="text/javascript" src="../../build/paginator/paginator-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datasource/datasource-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datatable/datatable-min.js"></script-->
+<link rel="stylesheet" type="text/css" href="yui/fonts/fonts-min.css" />
+<link rel="stylesheet" type="text/css" href="yui/paginator/assets/skins/sam/paginator.css" />
+<link rel="stylesheet" type="text/css" href="yui/datatable/assets/skins/sam/datatable.css" />
+<script src="yui/yahoo-dom-event/yahoo-dom-event.js"></script>
+<script src="yui/connection/connection-min.js"></script>
+<script src="yui/json/json-min.js"></script>
+<script src="yui/element/element-min.js"></script>
+<script src="yui/paginator/paginator-min.js"></script>
+<script src="yui/datasource/datasource-min.js"></script>
+<script src="yui/datatable/datatable-min.js"></script>
<!--begin custom header content for this example-->
@@ -72,7 +72,7 @@
{key:"number", label:"Number"}
];
- var myDataSource = new YAHOO.util.DataSource("assets/php/json_proxy.php?");
+ var myDataSource = new YAHOO.util.DataSource("examples/assets/datatable/php/json_proxy.php?");
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema = {
resultsList: "records",
@@ -97,9 +97,3 @@
</script>
</body>
</html>
-
-<!--END SOURCE CODE FOR EXAMPLE =============================== -->
-
-</body>
-</html>
-<!-- presentbright.corp.yahoo.com uncompressed/chunked Thu Feb 19 10:53:12 PST 2009 -->
@@ -18,12 +18,12 @@
}
</style>
-<link rel="stylesheet" type="text/css" href="../../yui2/build/fonts/fonts-min.css" />
-<link rel="stylesheet" type="text/css" href="../../yui2/build/datatable/assets/skins/sam/datatable.css" />
-<!--script type="text/javascript" src="../../build/yahoo-dom-event/yahoo-dom-event.js"></script-->
-<!--script type="text/javascript" src="../../build/element/element-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datasource/datasource-min.js"></script-->
-<!--script type="text/javascript" src="../../build/datatable/datatable-min.js"></script-->
+<link rel="stylesheet" type="text/css" href="yui/fonts/fonts-min.css" />
+<link rel="stylesheet" type="text/css" href="yui/datatable/assets/skins/sam/datatable.css" />
+<script type="text/javascript" src="yui/yahoo-dom-event/yahoo-dom-event.js"></script>
+<script type="text/javascript" src="yui/element/element-min.js"></script>
+<script type="text/javascript" src="yui/datasource/datasource-min.js"></script>
+<script type="text/javascript" src="yui/datatable/datatable-min.js"></script>
<!--there is no custom header content for this example-->
@@ -143,9 +143,5 @@
}();
});
</script>
-
-<!--END SOURCE CODE FOR EXAMPLE =============================== -->
-
</body>
</html>
-<!-- presentbright.corp.yahoo.com uncompressed/chunked Thu Feb 19 10:53:11 PST 2009 -->
View
@@ -6,6 +6,7 @@
$scripts = array();
$css = array();
$test = $bodyClass = '';
+ $bodyClass = ' class="yui-skin-sam"';
if (isset($_GET['caja_base'])) {
$caja_base = $_GET['caja_base'];
View
@@ -75,6 +75,9 @@ YAHOO.namespace('caja').examples = {
'[[suffix=gadget&test=treeview]Simple test]'
],
datatable: [
- '[[suffix=example&test=datatable1]Basic example]'
+ '[[suffix=example&test=datatable1]Sorting and resizable columns]',
+ '[[suffix=example&test=datatable2]Client side pagination]',
+ '[[suffix=example&test=datatable3]Cell editing]',
+ '[[suffix=example&test=datatable4]Progressive enhancement]'
]
};
@@ -2,9 +2,8 @@
<html>
<head>
<title>Test Page</title>
- <link type="text/css" rel="stylesheet" href="/assets/dpSyntaxHighlighter.css">
- <link type="text/css" id="locallink" rel="stylesheet" href="../../../build/logger/assets/logger.css">
- <link type="text/css" rel="stylesheet" href="../../../build/yuitest/assets/testlogger.css">
+ <link type="text/css" id="locallink" rel="stylesheet" href="yui/logger/assets/logger.css">
+ <link type="text/css" rel="stylesheet" href="yui/yuitest/assets/testlogger.css">
<style type="text/css" id="styleblock" class="highlight-ignore">
h1 {
font: normal 125%/1.4 Arial, sans-serif;
@@ -43,13 +42,13 @@
<h1>Tests</h1>
<div id="testbed"></div>
-<script type="text/javascript" src="../../../build/yahoo/yahoo.js"></script>
-<script type="text/javascript" src="../../../build/dom/dom.js"></script>
-<script type="text/javascript" src="../../../build/event/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" src="../../../build/stylesheet/stylesheet-debug.js"></script>
-<script type="text/javascript">
+<script src="yui/yahoo/yahoo.js"></script>
+<script src="yui/dom/dom.js"></script>
+<script src="yui/event/event.js"></script>
+<script src="yui/logger/logger-min.js"></script>
+<script src="yui/yuitest/yuitest-min.js"></script>
+<script src="yui/stylesheet/stylesheet-debug.js"></script>
+<script>
(function () {
var d = document,
@@ -624,7 +623,5 @@
})();
</script>
-<script type="text/javascript" src="/assets/dpSyntaxHighlighter.js"></script>
-<script type="text/javascript" src="/assets/dpSyntaxHighlightExample.js"></script>
</body>
</html>

0 comments on commit 783ddc9

Please sign in to comment.