diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-02-27 22:25:05 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-02-27 22:25:05 +0100 |
commit | 3e7e49884efa7af2e34742b50338aabf0df116d4 (patch) | |
tree | c9ec3e13bdf5881bf253b4e08ac0343cdcd48384 /core/js/tests/specs | |
parent | 019574014702657fa34acac4a631f78e27c20db8 (diff) | |
download | nextcloud-server-3e7e49884efa7af2e34742b50338aabf0df116d4.tar.gz nextcloud-server-3e7e49884efa7af2e34742b50338aabf0df116d4.zip |
Replace deprecated $.tipsy(...) by $.tooltip(...)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/tests/specs')
-rw-r--r-- | core/js/tests/specs/shareSpec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/js/tests/specs/shareSpec.js b/core/js/tests/specs/shareSpec.js index 5c76ea600b8..fbf6eecc8df 100644 --- a/core/js/tests/specs/shareSpec.js +++ b/core/js/tests/specs/shareSpec.js @@ -23,10 +23,10 @@ describe('OC.Share tests', function() { describe('markFileAsShared', function() { var $file; - var tipsyStub; + var tooltipStub; beforeEach(function() { - tipsyStub = sinon.stub($.fn, 'tipsy'); + tooltipStub = sinon.stub($.fn, 'tooltip'); $file = $('<tr><td class="filename"><div class="thumbnail"></div><span class="name">File name</span></td></tr>'); $file.find('.filename').append( '<span class="fileactions">' + @@ -38,7 +38,7 @@ describe('OC.Share tests', function() { }); afterEach(function() { $file = null; - tipsyStub.restore(); + tooltipStub.restore(); }); describe('displaying the share owner', function() { function checkOwner(input, output, title) { @@ -54,8 +54,8 @@ describe('OC.Share tests', function() { } else { expect($action.find('.remoteAddress').attr('title')).not.toBeDefined(); } - expect(tipsyStub.calledOnce).toEqual(true); - tipsyStub.reset(); + expect(tooltipStub.calledOnce).toEqual(true); + tooltipStub.reset(); } it('displays the local share owner as is', function() { @@ -172,8 +172,8 @@ describe('OC.Share tests', function() { } else { expect($action.find('.remoteAddress').attr('title')).not.toBeDefined(); } - expect(tipsyStub.calledOnce).toEqual(true); - tipsyStub.reset(); + expect(tooltipStub.calledOnce).toEqual(true); + tooltipStub.reset(); } it('displays the local share owner as is', function() { |