From c6da2ed11b8eb5a905703a705f2e2a6fbd863c7f Mon Sep 17 00:00:00 2001 From: vitalets Date: Sun, 25 Nov 2012 16:05:43 +0400 Subject: [PATCH] fix test for simple array --- test/unit/select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/select.js b/test/unit/select.js index dc67931..fec4a8e 100644 --- a/test/unit/select.js +++ b/test/unit/select.js @@ -81,7 +81,7 @@ $(function () { test("load options from simple array", function () { var arr = ['q', 'w', 'x'], - e = $('customer').appendTo('#qunit-fixture').editable({ + e = $('customer').appendTo('#qunit-fixture').editable({ pk: 1, autotext: true, source: arr @@ -92,7 +92,7 @@ $(function () { ok(p.is(':visible'), 'popover visible') ok(p.find('select').length, 'select exists') equal(p.find('select').find('option').length, arr.length, 'options loaded') - equal(p.find('select').val(), 2, 'selected value correct') + equal(p.find('select').val(), 'x', 'selected value correct') p.find('button[type=button]').click(); ok(!p.is(':visible'), 'popover was removed'); })