~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/javascript/tests/test_distroseries.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-08 19:26:35 UTC
  • mfrom: (13314.12.13 yui-test-cleanup-807294)
  • Revision ID: launchpad@pqm.canonical.com-20110708192635-acgqrciig42izbsh
[r=jtv][bug=807294] Consolidate duplicate code copied throughout the
        lp yui tests into a common module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (c) 2011, Canonical Ltd. All rights reserved. */
2
2
 
3
 
YUI({
4
 
    base: '../../../../canonical/launchpad/icing/yui/',
5
 
    filter: 'raw', combine: false, fetchCSS: false
6
 
    }).use(
7
 
        'test', 'console', 'node-event-simulate',
 
3
YUI().use(
 
4
        'lp.testing.runner', 'test', 'console', 'node-event-simulate',
8
5
        'lp.registry.distroseries.initseries',
9
6
        function(Y) {
10
7
 
1104
1101
            this.wait(function() {
1105
1102
                Assert.isFalse(
1106
1103
                    this.container.contains(this.form));
1107
 
            }, 30);
 
1104
            }, 90);
1108
1105
        },
1109
1106
 
1110
1107
        testSubmit: function() {
1241
1238
 
1242
1239
    suite.add(new Y.Test.Case(testDeriveDistroSeriesSetup));
1243
1240
 
1244
 
    // Lock, stock, and two smoking barrels.
1245
 
    var handle_complete = function(data) {
1246
 
        window.status = '::::' + JSON.stringify(data);
1247
 
        };
1248
 
    Y.Test.Runner.on('complete', handle_complete);
1249
 
    Y.Test.Runner.add(suite);
1250
 
 
1251
 
    var console = new Y.Console({newestOnTop: false});
1252
 
    console.render('#log');
1253
 
 
1254
 
    Y.on('domready', function() {
1255
 
        Y.Test.Runner.run();
1256
 
        });
 
1241
    Y.lp.testing.Runner.run(suite);
 
1242
 
1257
1243
});