h - contentRect.width)/2);
        expect(contentRect.top).to.be.equal(0 - contentRect.height - tooltip.offset);
      });

      test('tooltip is positioned correctly (right)', function() {
        var f = fixture('basic');
        var target = f.querySelector('#target');
        var tooltip = f.querySelector('paper-tooltip');
        tooltip.position = 'right';

        var actualTooltip = Polymer.dom(tooltip.root).querySelector('#tooltip');
        assert.isTrue(isHidden(actualTooltip));

        MockInt