From 2ea99f4d73aff31f150ee3be7114462051074fb5 Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Thu, 18 Aug 2016 16:57:40 -0700 Subject: [PATCH] update resize tests to allow for debounce time delay --- tests/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/index.html b/tests/index.html index fceb577..8f2880d 100644 --- a/tests/index.html +++ b/tests/index.html @@ -1044,10 +1044,15 @@ console.log(c2.__checkbox.getAttribute('checked')); gui.add({ x: 0 }, 'x'); } - ok($(gui.domElement).hasClass(GUI.CLASS_TOO_TALL), 'GUI has too tall class'); - notEqual($(gui.domElement).children('ul')[0].style.height, 'auto'); - gui.destroy(); + setTimeout(function() { + ok($(gui.domElement).hasClass(GUI.CLASS_TOO_TALL), 'GUI has too tall class'); + notEqual($(gui.domElement).children('ul')[0].style.height, 'auto'); + + gui.destroy(); + }, 0); + + });