~bcsaller/juju-gui/charmFind

« back to all changes in this revision

Viewing changes to lib/yui/tests/jsonp/tests/jsonp.html

  • Committer: kapil.foss at gmail
  • Date: 2012-07-13 18:45:59 UTC
  • Revision ID: kapil.foss@gmail.com-20120713184559-2xl7be17egsrz0c9
reshape

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!doctype html>
2
 
<html>
3
 
<head>
4
 
    <title>Test Page</title>
5
 
    <link type="text/css" rel="stylesheet" href="assets/test.css">
6
 
</head>
7
 
<body class="yui3-skin-sam">
8
 
 
9
 
<div id="log"></div>
10
 
 
11
 
<script src="../../../build/yui/yui.js"></script>
12
 
<script src="jsonp-tests.js"></script>
13
 
<script>
14
 
YUI({
15
 
    filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
16
 
    allowRollup: false,
17
 
    useBrowserConsole: false
18
 
}).use('console-filters', 'jsonp-tests', function (Y) {
19
 
 
20
 
    new Y.Console({
21
 
        style: 'block',
22
 
        //width: 'inherit',
23
 
        entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
24
 
            '<pre class="{entry_content_class}">{message}</pre>'+
25
 
        '</div>',
26
 
        on: {
27
 
            entry: function (e) {
28
 
                var m = e.message,
29
 
                    node;
30
 
 
31
 
                if (m.category === 'info' &&
32
 
                    /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
33
 
                        m.category = 'status';
34
 
                } else if (m.category === 'fail') {
35
 
                    this.printBuffer();
36
 
                    m.category = 'error';
37
 
                }
38
 
            }
39
 
        },
40
 
        after: {
41
 
            render: function () {
42
 
                this.get('contentBox').insertBefore( this._foot, this._body );
43
 
            }
44
 
        }
45
 
    }).plug(Y.Plugin.ConsoleFilters, {
46
 
        category: {
47
 
            pass: false,
48
 
            status: false
49
 
        }
50
 
    })
51
 
    .render("#log");
52
 
 
53
 
    Y.Test.Runner.run();
54
 
});
55
 
</script>
56
 
</body>
57
 
</html>