From 6f9df7ac43fd38d92a8bc52d4a45a5dfacbb7ec9 Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Wed, 24 May 2017 16:05:34 +0200 Subject: [PATCH] Add tests for addWidget --- types/gridstack/gridstack-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/gridstack/gridstack-tests.ts b/types/gridstack/gridstack-tests.ts index 9330d2019e..0ef4a7691b 100644 --- a/types/gridstack/gridstack-tests.ts +++ b/types/gridstack/gridstack-tests.ts @@ -17,6 +17,8 @@ var gsFromElement: GridStack = element.data("gridstack"); if (gridstack !== gsFromElement) throw Error('These should match!'); gridstack.addWidget("test", 1, 2, 3, 4, true); +gridstack.addWidget(document.createElement('div'), 1, 2, 3, 4, true); +gridstack.addWidget($(document.createElement('div')), 1, 2, 3, 4, true); gridstack.batchUpdate(); gridstack.cellHeight();; gridstack.cellHeight(2);