From: Michael Wood Date: Fri, 10 Jun 2016 15:44:15 +0000 (+0100) Subject: toaster: js tests Twitter typeahead library object is now ttTypeahead X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d382b2afb2939ae1b69a80ad083fb4c47303f8d0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: js tests Twitter typeahead library object is now ttTypeahead Get the ttTypeahead object on the input to see if it's been initialised correctly. Signed-off-by: Michael Wood --- diff --git a/lib/toaster/toastergui/static/js/tests/test.js b/lib/toaster/toastergui/static/js/tests/test.js index 44b752277ce..f8d566b3e3f 100644 --- a/lib/toaster/toastergui/static/js/tests/test.js +++ b/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')); });