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

« back to all changes in this revision

Viewing changes to src/imageloader/tests/unit/assets/one-imageloader-test.js

  • Committer: Stephen Stewart
  • Date: 2014-02-22 23:57:25 UTC
  • mfrom: (18.1.2 trunk)
  • Revision ID: stephen.stewart@canonical.com-20140222235725-iw6f15t9umws19xd
mergeĀ lp:~stephen-stewart/online-services-common-js/remove-u1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
YUI.add('one-imageloader-test', function (Y) {
2
 
 
3
 
var Assert = Y.Assert,
4
 
    suite;
5
 
 
6
 
suite = new Y.Test.Suite({
7
 
    name: 'one-imageloader',
8
 
 
9
 
    // called before the first test in the first test case is executed
10
 
    // before the test's setup() method
11
 
    setUp : function () {
12
 
        //test-suite-level setup
13
 
    },
14
 
 
15
 
    // executes after all tests in all test cases/suites have been executed
16
 
    // after the test's teardown()
17
 
    tearDown: function () {
18
 
        //test-suite-level teardown 
19
 
    },
20
 
});
21
 
 
22
 
suite.add(new Y.Test.Case({
23
 
 
24
 
    name: "Lifecycle",
25
 
 
26
 
    "test default construction": function() {
27
 
        Y.Assert.isInstanceOf( Y.U1.ImgLoadGroup, new Y.U1.ImgLoadGroup() );
28
 
        Y.Assert.isInstanceOf( Y.U1.ImgLoadImgObj, new Y.U1.ImgLoadImgObj() );
29
 
    }
30
 
 
31
 
}));
32
 
 
33
 
/**
34
 
suite.add(new Y.Test.Case({
35
 
 
36
 
    name: ""
37
 
 
38
 
    " ": function() {
39
 
 
40
 
    }
41
 
 
42
 
}));
43
 
**/
44
 
 
45
 
Y.Test.Runner.add(suite);
46
 
 
47
 
}, '@VERSION@', {
48
 
        requires: ['one-imageloader', 'test']
49
 
});