Sha256: c93db7d8d403753a2ae5e18b50246bf8a88b4d6b03bdbefec8878a311bd9615f

Contents?: true

Size: 770 Bytes

Versions: 11

Compression:

Stored size: 770 Bytes

Contents

// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2012 Michael Krotscheck and contributors. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================

/**
 * Test for correct cordova detection.
 */
test("SC.platform.cordova", function() {
  
  ok(typeof SC.platform.cordova == 'boolean', "Cordova check must have been executed.");
  
  // Is there a chance we're in a cordova runtime?
  var isCordova = typeof window.cordova !== "undefined";
  equals(isCordova, SC.platform.cordova, "Cordova detection must match what we've been able to determine for ourselves");
  
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js