Sha256: 2a88e59abff90c160e9ad002b18fc85ae83139af975c34196b8df639cc456337

Contents?: true

Size: 931 Bytes

Versions: 17

Compression:

Stored size: 931 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            Portions ©2008-2009 Apple Inc. All rights reserved.
// License:   Licened 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

17 entries across 17 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js