json.html revision 998276643802ff9fb197fe220cbd9552da00a624
0N/A<!doctype html>
0N/A<html>
0N/A<head>
0N/A <title>Test Page</title>
0N/A <link type="text/css" rel="stylesheet" href="assets/test.css">
0N/A</head>
0N/A<body class="yui3-skin-sam">
0N/A
0N/A<div id="log"></div>
0N/A<script src="/build/yui/yui.js"></script>
0N/A<script src="json-tests.js"></script>
0N/A<!--script src="json-parse-tests.js"></script>
0N/A<script src="json-stringify-tests.js"></script-->
0N/A<script>
0N/AYUI({
0N/A filter: 'raw',
0N/A useBrowserConsole: false
0N/A}).use('console-filters', 'json-tests', function (Y) {
0N/A
0N/A new Y.Console({
0N/A style: 'block',
0N/A entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
0N/A '<pre class="{entry_content_class}">{message}</pre>'+
0N/A '</div>',
0N/A on: {
0N/A entry: function (e) {
0N/A var m = e.message,
0N/A node;
0N/A
0N/A if (m.category === 'info' &&
0N/A /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
0N/A m.category = 'status';
0N/A } else if (m.category === 'fail') {
0N/A this.printBuffer();
0N/A m.category = 'error';
0N/A }
0N/A }
0N/A },
0N/A after: {
0N/A render: function () {
0N/A this.get('contentBox').insertBefore( this._foot, this._body );
0N/A }
0N/A }
0N/A }).plug(Y.Plugin.ConsoleFilters, {
0N/A category: {
0N/A pass: false,
0N/A status: false
0N/A }
0N/A })
0N/A .render( "#log" );
0N/A
0N/A Y.Test.Runner.run();
0N/A});
0N/A</script>
0N/A</body>
0N/A</html>
0N/A