~smagoun/whoopsie/whoopsie-lp1017637

« back to all changes in this revision

Viewing changes to backend/stats/static/js/yui/tests/yui/tests/index-loader.html

  • Committer: Evan Dandrea
  • Date: 2012-05-09 05:53:45 UTC
  • Revision ID: evan.dandrea@canonical.com-20120509055345-z2j41tmcbf4as5uf
The backend now lives in lp:daisy and the website (errors.ubuntu.com) now lives in lp:errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
 
<html>
3
 
<head>
4
 
<title>YUI Seed Tests</title>
5
 
</head>
6
 
<body class="yui3-skin-sam">
7
 
 
8
 
<div id="log"></div>
9
 
 
10
 
<!-- This is the loader test file, notice it's using the `yui-base` seed file & including loader so it is NOT fetched. -->
11
 
<script type="text/javascript" src="../../../build/yui-base/yui-base.js"></script>
12
 
<script type="text/javascript" src="../../../build/loader/loader.js"></script>
13
 
<script type="text/javascript">
14
 
 
15
 
YUI.GlobalConfig = {
16
 
    modules: {
17
 
        'global-mod': {
18
 
            fullpath: './assets/globalmod.js'
19
 
        }
20
 
    }
21
 
};
22
 
 
23
 
var YUI_config = {
24
 
    loaderPath: 'loader/loader.js',
25
 
    gconfig: true,
26
 
    gfilter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
27
 
};
28
 
 
29
 
 
30
 
YUI({
31
 
    allowRollup: false,
32
 
    logExclude: {Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true },    
33
 
    filter: YUI_config.gfilter,
34
 
    modules: {
35
 
        'seed-tests': {
36
 
            fullpath: './seed-tests.js',
37
 
            requires: [ 'test']
38
 
        },
39
 
        'core-tests': {
40
 
            fullpath: './core-tests.js',
41
 
            requires: [ 'classnamemanager']
42
 
        },
43
 
 
44
 
        'config-test': {
45
 
            fullpath: 'config-test.js'
46
 
        },
47
 
 
48
 
        'later-test': {
49
 
            fullpath: 'later-test.js'
50
 
        },
51
 
 
52
 
        'namespace-test': {
53
 
            fullpath: 'namespace-test.js'
54
 
        }
55
 
        
56
 
    }
57
 
}).use('seed-tests', 'core-tests', 'config-test', 'later-test', 'namespace-test', 'test-console', 'test', function(Y) {
58
 
    new Y.Test.Console().render('#log');
59
 
 
60
 
    //This is a YUITest hack to rename this test for reporting
61
 
    Y.Test.Runner.setName('YUI Seed Static Loader Test Suite');
62
 
    Y.Test.Runner.run();
63
 
});
64
 
 
65
 
</script>
66
 
</body>
67
 
</html>