From 2210e40f9a6820e2653b850c0b70517a30b3fae7 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 16 Mar 2016 09:15:28 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20fix=20getSegmentSize=20test,=20remo?= =?UTF-8?q?ve=20cells-by-row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/get-segment-size.js | 12 +++++++----- test/index.html | 2 -- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/get-segment-size.js b/test/get-segment-size.js index a6ed450..b5326b5 100644 --- a/test/get-segment-size.js +++ b/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' ); }); - -})(); diff --git a/test/index.html b/test/index.html index 5b56997..ac0f3c9 100644 --- a/test/index.html +++ b/test/index.html @@ -27,8 +27,6 @@ - -