Sha256: 56eae17386859b8ff510c272e39e1662114727fa3d4581c631e4df89bc4e0d28
Contents?: true
Size: 550 Bytes
Versions: 20
Compression:
Stored size: 550 Bytes
Contents
module("Menus -- Automatic Resizing"); function createMenu(items) { return SC.MenuPane.create({ items: items }); } test("Different widths for different sets of items", function() { SC.RunLoop.begin(); var menu1 = createMenu("A B C D E F G".w()); menu1.popup(); var menu2 = createMenu("HelloY'allVeryLongThing World".w()); menu2.popup(); SC.RunLoop.end(); var w1 = menu1.get('layout').width; var w2 = menu2.get('layout').width; ok(w2 > w1, "Menu 2 should be wider than Menu 1"); menu1.remove(); menu2.remove(); });
Version data entries
20 entries across 20 versions & 1 rubygems