~gary/juju-gui/fixsavetext

« back to all changes in this revision

Viewing changes to test/test_service_module.js

  • Committer: Matthew Scott
  • Date: 2013-09-03 13:32:00 UTC
  • mfrom: (995.1.3 center-on-load)
  • Revision ID: matthew.scott@canonical.com-20130903133200-4grcj42fjj5deqzy
Zoom to center on dimensions set

The dimensions of the canvas default to 800x600px, and so on smaller screens, centering the services in the environment centered them beneath the charm store.  This centers them *after* the sizes are calculated, which centers them in the center of the screen itself.

R=rharding
CC=
https://codereview.appspot.com/13334046

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
    var eventHandle = Y.on('initiateDeploy', function(charm, ghostAttributes) {
394
394
      eventHandle.detach();
395
395
      // After the translation and calculations the above x and y coords should
396
 
      // place the element at 305, 157
 
396
      // place the element at 320, 392
397
397
      assert.deepEqual(ghostAttributes, {
398
 
        coordinates: [305, 157],
 
398
        coordinates: [320, 392],
399
399
        icon: src
400
400
      });
401
401
      // Make sure that the drag and drop was properly prevented.