Sha256: 15be425cd9abcba5cc53c5daa483bb6314b404b629b0762bb7dde8b4dd6938a3
Contents?: true
Size: 1.07 KB
Versions: 14
Compression:
Stored size: 1.07 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.objectForPropertyPath Tests // ======================================================================== /*globals module test ok same equals expects */ // An ObjectController will make a content object or an array of content objects module("SC.objectForPropertyPath") ; test("should be able to resolve an object on the window", function() { var myLocal = (window.myGlobal = { test: 'this '}) ; same(myLocal, { test: 'this '}) ; same(window.myGlobal, { test: 'this '}) ; // verify we can resolve our binding path same(SC.objectForPropertyPath('myGlobal'), { test: 'this '}) ; window.myGlobal =null ; });
Version data entries
14 entries across 14 versions & 1 rubygems