Sha256: 591288ecdbee043e0c96bdb4dfbb2a26fddcd9d0ad460403500ccfa56280a4b9
Contents?: true
Size: 955 Bytes
Versions: 24
Compression:
Stored size: 955 Bytes
Contents
module("PopupButtonView -- Menu Setup"); test("Setting up menu without background task queue", function() { SC.RunLoop.begin(); var popup = SC.PopupButtonView.create({ menu: SC.MenuPane.extend({ items: "1 2 3 4 5".w() }) }); SC.RunLoop.end(); equals(popup.get('menu').isClass, YES, "Menu not yet instantiated"); SC.RunLoop.begin(); popup.setupMenu(); SC.RunLoop.end(); equals(popup.get('menu').isClass, undefined, "Menu now instantiated"); }); test("Setting up in background task queue", function() { SC.RunLoop.begin(); var popup = SC.PopupButtonView.create({ shouldLoadInBackground: YES, menu: SC.MenuPane.extend({ items: "1 2 3 4 5".w() }) }); SC.RunLoop.end(); equals(popup.get('menu').isClass, YES, "Menu not yet instantiated"); SC.RunLoop.begin(); SC.backgroundTaskQueue.run(); SC.RunLoop.end(); equals(popup.get('menu').isClass, undefined, "Menu now instantiated"); });
Version data entries
24 entries across 24 versions & 1 rubygems