~bac/juju-gui/trunkcopy

« back to all changes in this revision

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