~smoser/ubuntu/wily/maas/lp1474417

« back to all changes in this revision

Viewing changes to src/maasserver/static/js/testing/testrunner.js

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez, Dave Walker, Andres Rodriguez
  • Date: 2012-03-07 12:46:17 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120307124617-319lac0nc230srs9
Tags: 0.1+bzr232+dfsg-0ubuntu1
* New upstream snapshot.

[ Dave Walker ]
* debian/control:
  - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
    - LP: #937982 

[ Andres Rodriguez ]
* debian/maas.install: Install maas-import-isos and related files.
* Integrate squid3 as proxy solution:
  - debian/extras/squid.conf: Added
  - debian/control: Depend on squid3.
  - debian/maas.{postinst,postrm}: Handle installation/removal of custom
    squid config file.
* Split into different binary packages (maas,python-django-maas).
  - debian/maas.postinst: Handle the apache2 configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
            Y.use(suite_name, "test", function(y) {
23
23
                var module = y, parts = suite_name.split(".");
24
24
                while (parts.length > 0) { module = module[parts.shift()]; }
25
 
                y.Test.Runner.add(module.suite);
26
 
                y.Test.Runner.run();
27
 
            });
 
25
                var Runner = y.Test.Runner;
 
26
                Runner.add(module.suite);
 
27
 
 
28
                var testsFinished = function(){
 
29
                    var results = y.Test.Runner.getResults(y.Test.Format.JSON);
 
30
                    // Publish the results in a new node.
 
31
                    var result_node = Y.Node.create('<div />')
 
32
                        .set('id', 'test_results')
 
33
                        .set('text', results);
 
34
                    Y.one('body').append(result_node);
 
35
                    // Set the suite_node content to 'done'.
 
36
                    suite_node.set('text', 'done');
 
37
                };
 
38
                Runner.subscribe(Runner.COMPLETE_EVENT, testsFinished);
 
39
 
 
40
                Runner.run();
 
41
           });
28
42
        }
29
43
    });
30
44
});