-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize observable for image first, load images then apply styles
- Loading branch information
Showing
2 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/masonry.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
define([ | ||
'Magento_Ui/js/grid/masonry', | ||
'jquery' | ||
], function (Masonry, $) { | ||
'use strict'; | ||
|
||
describe('Magento_Ui/js/grid/masonry', function () { | ||
var model; | ||
|
||
beforeEach(function () { | ||
$(document.body).append( | ||
$('<div id="masonry_grid"><div class="masonry-image-column"></div></div>') | ||
); | ||
model = new Masonry({ | ||
defaults: { | ||
containerId: '#masonry_grid' | ||
} | ||
}); | ||
}); | ||
|
||
afterEach(function () { | ||
$('#masonry_grid').remove(); | ||
}); | ||
|
||
describe('check initComponent', function () { | ||
it('verify setLayoutstyles called and grid iniztilized', function () { | ||
|
||
}); | ||
it('verify events triggered', function () { | ||
|
||
}); | ||
}); | ||
}); | ||
}); |