Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E49B3E00D89; Fri, 10 Jun 2016 08:46:17 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.181 listed in list.dnswl.org] Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C7F1BE00CE6 for ; Fri, 10 Jun 2016 08:46:14 -0700 (PDT) Received: by mail-pf0-f181.google.com with SMTP id t190so24681045pfb.3 for ; Fri, 10 Jun 2016 08:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=a7CaG6xU8sZY5+m3BgzjAW+TmfQgDY0fYSe+IW8jKnM=; b=HHUVXS97iYXESpJgOUSkd/FkzeQAqh2udukVzYCvCLlBYA037QAECxbVPekEdaCyy3 rvaMtBWMsNhvVMET70xoZQ7JCpdn3NYcwbAfk0KgiDfUKL3UBaItloI+ki7mPXJv80KI N9EvP/Rd6fJSuSGSB0akkjpyJDNh1Oh4bFc/sg2ahIhUxsSMIle9oSXq01H8PRkXkxJ6 zloInsQsrF9DqSYNWZo+VD4HPE5JqEKCN3Z6MoY+4uIwGgcdqmvNuRjG1n7CCYhC+kcC B/QRtQXOWrbmsgYpbw4bxN0h1rxbVh08B8tkZ7alSbuJaNOA08oE88HojSUtkLBQc0B5 LIVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a7CaG6xU8sZY5+m3BgzjAW+TmfQgDY0fYSe+IW8jKnM=; b=QESbfHcEY7FxWZu968U5uiVWsEjVs1oH3D/ctuAGMNPgenMbiJvCFYsltPsbtUK6uA TIrssvfxzJJKjrU4yg0V8XlljRv7GhEksQGVGbWqHBSRXCW6ePWS3T7Q4ozHNBXz3UrB 0mQSpVXO+8ti1P+9NRg2lwz1QBGAWaA6LYwRTo7+sbSBbINBWP/EFTHlw2C2Z262dLNW SPE3/82czxwiNlCsAE/o5loE2TGDY+aruKzx+V8fZXvrHcnDph0B56e6qDkeK1dwRG8y zS/TlaoUTZYe2rGC2VdvneYc9Alxfomj3gWpTjw1mgBqs1Arh7D3SK3oqi6o2kv9MEOq ZSSw== X-Gm-Message-State: ALyK8tLgCtznC1qiu/TSQWvpE+rNik0pFNU0OufQUZ5rNFkVlOpVGWoqtI218Gqh2IUaHmUl X-Received: by 10.98.6.193 with SMTP id 184mr2981910pfg.109.1465573573890; Fri, 10 Jun 2016 08:46:13 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id c15sm18597345pfj.65.2016.06.10.08.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 08:46:13 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 10 Jun 2016 16:46:08 +0100 Message-Id: <1465573568-10232-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: js tests Twitter typeahead library object is now ttTypeahead X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 15:46:17 -0000 Get the ttTypeahead object on the input to see if it's been initialised correctly. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/tests/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/tests/test.js b/bitbake/lib/toaster/toastergui/static/js/tests/test.js index 44b7522..f8d566b 100644 --- a/bitbake/lib/toaster/toastergui/static/js/tests/test.js +++ b/bitbake/lib/toaster/toastergui/static/js/tests/test.js @@ -134,10 +134,10 @@ QUnit.test("Make typeaheads", function(assert){ libtoaster.makeTypeahead(recipesT, libtoaster.ctx.recipesTypeAheadUrl, {}, function(){}); - assert.ok(recipesT.data('typeahead')); - assert.ok(layersT.data('typeahead')); - assert.ok(projectsT.data('typeahead')); - assert.ok(recipesT.data('typeahead')); + assert.ok(recipesT.data('ttTypeahead')); + assert.ok(layersT.data('ttTypeahead')); + assert.ok(projectsT.data('ttTypeahead')); + assert.ok(recipesT.data('ttTypeahead')); }); -- 2.7.4