Sha256: 3dc8df024451f1299e615de7840fff881a0a8f4d518f9140593c40c39cebece4
Contents?: true
Size: 1.1 KB
Versions: 27
Compression:
Stored size: 1.1 KB
Contents
module("SC.ScrollView integration"); test("should work with SC.TemplateView", function() { var pane = SC.MainPane.create({ childViews: ['scrollView'], scrollView: SC.ScrollView.design({ layout: { width: 400, height: 600 }, contentView: SC.TemplateView.create({ template: SC.Handlebars.compile("foo bar baz") }) }) }); pane.append(); var exceptionThrown = false; try { SC.RunLoop.begin().end(); } catch (e) { exceptionThrown = true; } ok(!exceptionThrown, "Does not throw an exception at the end of the run loop."); pane.remove(); }); test("should work with views that have static layout applied", function() { var pane; try { pane = SC.MainPane.create({ childViews: ['scrollView'], scrollView: SC.ScrollView.design({ layout: { width: 400, height: 600 }, contentView: SC.View.design({ useStaticLayout: YES }) }) }); pane.append(); SC.RunLoop.begin().end(); ok(true, "displays scroll view without throwing an exception"); } finally { if (pane) { pane.remove(); } } });
Version data entries
27 entries across 25 versions & 1 rubygems