~matsubara/juju-gui/tarmac-test-2

« back to all changes in this revision

Viewing changes to test/test_startup.js.bottom

  • Committer: Nicola Larosa
  • Date: 2013-06-20 12:03:19 UTC
  • mfrom: (743.2.4 test-interdep-cleanup)
  • Revision ID: nicola.larosa@canonical.com-20130620120319-g0w8r6kyrgmwq6qp
Further improve test independence.

Remove many test interdependencies by giving local window.flags variables
to modules that need it.

Use loadFixture everywhere instead of duplicating code, including in the
jujuTests.utils object itself.

Mark the remaining test interdependencies and defects, to be fixed later.

Remove a meaningless test at the bottom of test_startup.js.bottom .

Add removal of generated test_startup.js file to Makefile "clean" entry.

R=gary.poster, bac
CC=
https://codereview.appspot.com/10383047

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
      assert.equal(loadingStyle.display, 'block');
76
76
    });
77
77
 
78
 
    it('sets the window.flags data', function() {
79
 
      // By default we just get an empty object, but the fact that there's
80
 
      // an object means our code was hit and processed checks for flags.
81
 
      // The actual flag tests verify it all processes correctly. This is
82
 
      // only testing that we run it in index.html.
83
 
      assert.deepEqual(window.flags, {});
84
 
    });
85
 
 
86
78
  });
 
79
 
87
80
}) ();