Sha256: a9db3306bf77ca64b6ba5f514db2fe447b642eebcb697e1e2be5a328848a05d8

Contents?: true

Size: 1.05 KB

Versions: 39

Compression:

Stored size: 1.05 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
// ========================================================================
// SC.isEqual Tests
// ========================================================================
/*globals module test */

(function() {
  module("isArray");

  test("Simple tests", function() {
    ok(!SC.isArray(undefined), "undefined is not an array");
    ok(!SC.isArray(null), "null is not an array");
    ok(SC.isArray([]), "Array is an array");
    ok(!SC.isArray({}), "Object is not an array");
    ok(!SC.isArray(12), "Number is not an array");
  });

  test("SC.Array", function() {
    var myArray = SC.Object.create(SC.Array);
    ok(SC.isArray(myArray), "SC.Array is considered an array");
  });
})();

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js