Sha256: 89b821dc72e356fe05378ed2ea74fd6536cd589b4eaaaec0177b1f17b4aec1cc

Contents?: true

Size: 1002 Bytes

Versions: 17

Compression:

Stored size: 1002 Bytes

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.Event Tests
// ========================================================================
(function () {
  module("SC.Event");

  // WebKit browsers have equal values for keyCode and charCode on keypress event
  test("commandCodes() : should handle equal keyCode and charCode on keypress", function () {
    // 115 is also keyCode for F4 button
    var codes = new SC.Event({ type: 'keypress', keyCode: 115, charCode: 115 }).commandCodes();
    equals(codes[0], null, 'command');
    equals(codes[1], 's', 'char');
  });  
})();

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/event.js