~jonas-drange/online-services-common-js/navbar-autocomplete

« back to all changes in this revision

Viewing changes to src/uploader/tests/unit/uploader-tests.html

  • Committer: Stephen Stewart
  • Date: 2014-03-08 00:49:54 UTC
  • mfrom: (23.1.4 mocha-testing-framework)
  • Revision ID: stephen.stewart@canonical.com-20140308004954-h8tm1zrfc333c329
mergeĀ lp:~stephen-stewart/online-services-common-js/mocha-testing-framework

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!doctype html>
2
 
<html>
3
 
<head>
4
 
<meta charset="utf-8">
5
 
<title>Uploader tests</title>
6
 
<script>
7
 
 
8
 
// Yeti needs absolute urls or file paths.
9
 
// these constants are in the build YUI_config so we need to provide them
10
 
var COMBO_URL = '',
11
 
    MEDIA_URL = '../../../../build/',
12
 
    USE_COMBO = 0,
13
 
    USE_MIN = 1;
14
 
 
15
 
</script>
16
 
</head>
17
 
 
18
 
<body class="yui3-skin-sam">
19
 
 
20
 
<div id="log"></div>
21
 
<div id="test"></div>
22
 
 
23
 
<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script>
24
 
<script src="../../../../build/config.js"></script>
25
 
 
26
 
<div class="uploader"></div>
27
 
 
28
 
<script>
29
 
 
30
 
YUI({
31
 
  // use RAW js, overriding whatever is in YUI_config (cf devsettings.py)
32
 
  combine:false,
33
 
  base: '../../../../bower_components/yui3/build/',
34
 
  //fetchCSS: false,
35
 
  modules: {
36
 
    // define a custom module for our tests
37
 
    'uploader-test': {
38
 
      fullpath: './assets/uploader-test.js',
39
 
      requires: ['uploader', 'test']
40
 
    }
41
 
  },
42
 
  groups: {
43
 
    'os': {
44
 
      base: '../../../../build/'
45
 
    }
46
 
  },
47
 
  useBrowserConsole: true
48
 
}).use('uploader-test', 'test-console', function (Y) {
49
 
 
50
 
  new Y.Test.Console().render('#log');
51
 
  Y.Test.Runner.run();
52
 
 
53
 
});
54
 
 
55
 
</script>
56
 
 
57
 
</body>
58
 
</html>
59