Sha256: 41cb21e60141b45175e7f89c0a98da09f5a60a908e2fbb9ddecd9633092d414f

Contents?: true

Size: 932 Bytes

Versions: 11

Compression:

Stored size: 932 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
//            Portions ©2008-2010 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/*global module test equals context */

var context = null;

module("SC.RenderContext#join", {
  setup: function() {
    context = SC.RenderContext().push("line1", "line2") ;
  },
  
  teardown: function() {
    context = null;
  }
});

test("it should return joined lines with no separator string by default", function() {
  equals(context.join(), '<div>line1line2</div>');
});

test("it should return joined lines with separator string if passed", function() {
  equals(context.join(","), "<div>,line1,line2,</div>") ;
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.4.4-java lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.4 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.3 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.2 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.1 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.4.0 lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js