~bcsaller/juju-gui/charmFind

« back to all changes in this revision

Viewing changes to lib/yui/tests/dial/tests/dial.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
 
<script src="../../../build/yui/yui.js"></script>
11
 
<script>
12
 
YUI({
13
 
    filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
14
 
    modules: {
15
 
        'dial-test': {
16
 
            fullpath: 'testsuite.js',
17
 
            requires: ['dial','test','node-event-simulate','event-move']
18
 
        }
19
 
    },
20
 
    useBrowserConsole: false
21
 
}).use('console-filters', 'dial-test', function (Y) {
22
 
 
23
 
    new Y.Console({
24
 
        style: 'block',
25
 
        //width: 'inherit',
26
 
        entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
27
 
            '<pre class="{entry_content_class}">{message}</pre>'+
28
 
        '</div>',
29
 
        on: {
30
 
            entry: function (e) {
31
 
                var m = e.message,
32
 
                    node;
33
 
 
34
 
                if (m.category === 'info' &&
35
 
                    /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
36
 
                        m.category = 'status';
37
 
                } else if (m.category === 'fail') {
38
 
                    this.printBuffer();
39
 
                    m.category = 'error';
40
 
                }
41
 
            }
42
 
        },
43
 
        after: {
44
 
            render: function () {
45
 
                this.get('contentBox').insertBefore( this._foot, this._body );
46
 
            }
47
 
        }
48
 
    }).plug(Y.Plugin.ConsoleFilters, {
49
 
        category: {
50
 
            pass: false,
51
 
            status: false
52
 
        }
53
 
      })
54
 
      .render( "#log" );
55
 
 
56
 
    Y.Test.Runner.run();
57
 
});
58
 
</script>
59
 
</body>
60
 
</html>