Browse Source

fix getSegmentSize test, remove cells-by-row

pull/1127/head
David DeSandro 9 years ago
parent
commit
2210e40f9a
  1. 12
      test/get-segment-size.js
  2. 2
      test/index.html

12
test/get-segment-size.js

@ -1,8 +1,12 @@
( function() {
test( 'LayoutMode.getSegmentSize', function() {
'use strict';
test( 'LayoutMode.getSegmentSize', function() {
var CellsByRow = Isotope.LayoutMode.create('cellsByRow');
CellsByRow.prototype._resetLayout = function() {
this.getColumnWidth();
this.getRowHeight();
};
var iso = new Isotope( '#get-segment-size', {
layoutMode: 'cellsByRow',
@ -34,5 +38,3 @@ test( 'LayoutMode.getSegmentSize', function() {
equal( cellsByRow.rowHeight, 30, 'first item rowHeight' );
});
})();

2
test/index.html

@ -27,8 +27,6 @@
<script src="../js/layout-modes/fit-rows.js"></script>
<script src="../js/layout-modes/masonry.js"></script>
<script src="../bower_components/isotope-cells-by-row/cells-by-row.js"></script>
<script src="helpers.js"></script>
<script src="sorting.js"></script>
<script src="sort-data.js"></script>

Loading…
Cancel
Save