~michael.nelson/ubuntu-webcatalog/1267731-import-sca-apps-error

« back to all changes in this revision

Viewing changes to src/webcatalog/static/yui/3.10.3/build/autocomplete-list-keys/autocomplete-list-keys-coverage.js

  • Committer: Tarmac
  • Author(s): Stephen Stewart
  • Date: 2013-06-26 09:19:32 UTC
  • mfrom: (184.1.4 ubuntu-global-nav)
  • Revision ID: tarmac-20130626091932-8urtuli368k8p7ds
[r=beuno,jonas-drange] add ubuntu global nav to apps.ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.10.3 (build 2fb5187)
 
3
Copyright 2013 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
 
 
8
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
 
9
if (!__coverage__['build/autocomplete-list-keys/autocomplete-list-keys.js']) {
 
10
   __coverage__['build/autocomplete-list-keys/autocomplete-list-keys.js'] = {"path":"build/autocomplete-list-keys/autocomplete-list-keys.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":53}}},"2":{"name":"ListKeys","line":18,"loc":{"start":{"line":18,"column":0},"end":{"line":18,"column":20}}},"3":{"name":"(anonymous_3)","line":33,"loc":{"start":{"line":33,"column":15},"end":{"line":33,"column":27}}},"4":{"name":"(anonymous_4)","line":51,"loc":{"start":{"line":51,"column":16},"end":{"line":51,"column":28}}},"5":{"name":"(anonymous_5)","line":61,"loc":{"start":{"line":61,"column":15},"end":{"line":61,"column":27}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":71,"column":17},"end":{"line":71,"column":29}}},"7":{"name":"(anonymous_7)","line":84,"loc":{"start":{"line":84,"column":14},"end":{"line":84,"column":26}}},"8":{"name":"(anonymous_8)","line":98,"loc":{"start":{"line":98,"column":15},"end":{"line":98,"column":28}}},"9":{"name":"(anonymous_9)","line":115,"loc":{"start":{"line":115,"column":13},"end":{"line":115,"column":25}}},"10":{"name":"(anonymous_10)","line":125,"loc":{"start":{"line":125,"column":13},"end":{"line":125,"column":26}}},"11":{"name":"(anonymous_11)","line":146,"loc":{"start":{"line":146,"column":12},"end":{"line":146,"column":24}}},"12":{"name":"(anonymous_12)","line":159,"loc":{"start":{"line":159,"column":17},"end":{"line":159,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":186,"column":64}},"2":{"start":{"line":12,"column":0},"end":{"line":16,"column":19}},"3":{"start":{"line":18,"column":0},"end":{"line":21,"column":1}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":45}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":21}},"6":{"start":{"line":23,"column":0},"end":{"line":181,"column":2}},"7":{"start":{"line":34,"column":8},"end":{"line":35,"column":29}},"8":{"start":{"line":40,"column":8},"end":{"line":40,"column":39}},"9":{"start":{"line":42,"column":8},"end":{"line":42,"column":48}},"10":{"start":{"line":43,"column":8},"end":{"line":43,"column":46}},"11":{"start":{"line":44,"column":8},"end":{"line":44,"column":46}},"12":{"start":{"line":45,"column":8},"end":{"line":45,"column":45}},"13":{"start":{"line":47,"column":8},"end":{"line":47,"column":33}},"14":{"start":{"line":48,"column":8},"end":{"line":48,"column":40}},"15":{"start":{"line":52,"column":8},"end":{"line":52,"column":27}},"16":{"start":{"line":62,"column":8},"end":{"line":62,"column":80}},"17":{"start":{"line":72,"column":8},"end":{"line":72,"column":52}},"18":{"start":{"line":73,"column":8},"end":{"line":73,"column":31}},"19":{"start":{"line":85,"column":8},"end":{"line":89,"column":9}},"20":{"start":{"line":86,"column":12},"end":{"line":86,"column":37}},"21":{"start":{"line":88,"column":12},"end":{"line":88,"column":24}},"22":{"start":{"line":99,"column":8},"end":{"line":99,"column":42}},"23":{"start":{"line":101,"column":8},"end":{"line":106,"column":9}},"24":{"start":{"line":102,"column":12},"end":{"line":102,"column":37}},"25":{"start":{"line":105,"column":12},"end":{"line":105,"column":25}},"26":{"start":{"line":116,"column":8},"end":{"line":116,"column":20}},"27":{"start":{"line":126,"column":8},"end":{"line":126,"column":17}},"28":{"start":{"line":128,"column":8},"end":{"line":135,"column":9}},"29":{"start":{"line":129,"column":12},"end":{"line":129,"column":42}},"30":{"start":{"line":131,"column":12},"end":{"line":134,"column":13}},"31":{"start":{"line":132,"column":16},"end":{"line":132,"column":41}},"32":{"start":{"line":133,"column":16},"end":{"line":133,"column":28}},"33":{"start":{"line":137,"column":8},"end":{"line":137,"column":21}},"34":{"start":{"line":147,"column":8},"end":{"line":147,"column":33}},"35":{"start":{"line":160,"column":8},"end":{"line":161,"column":32}},"36":{"start":{"line":163,"column":8},"end":{"line":163,"column":37}},"37":{"start":{"line":165,"column":8},"end":{"line":179,"column":9}},"38":{"start":{"line":166,"column":12},"end":{"line":166,"column":42}},"39":{"start":{"line":168,"column":12},"end":{"line":170,"column":13}},"40":{"start":{"line":169,"column":16},"end":{"line":169,"column":53}},"41":{"start":{"line":172,"column":12},"end":{"line":178,"column":13}},"42":{"start":{"line":175,"column":16},"end":{"line":177,"column":17}},"43":{"start":{"line":176,"column":20},"end":{"line":176,"column":39}},"44":{"start":{"line":183,"column":0},"end":{"line":183,"column":43}}},"branchMap":{"1":{"line":72,"type":"binary-expr","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":23}},{"start":{"line":72,"column":27},"end":{"line":72,"column":51}}]},"2":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":85,"column":8}},{"start":{"line":85,"column":8},"end":{"line":85,"column":8}}]},"3":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":8},"end":{"line":101,"column":8}},{"start":{"line":101,"column":8},"end":{"line":101,"column":8}}]},"4":{"line":128,"type":"if","locations":[{"start":{"line":128,"column":8},"end":{"line":128,"column":8}},{"start":{"line":128,"column":8},"end":{"line":128,"column":8}}]},"5":{"line":131,"type":"if","locations":[{"start":{"line":131,"column":12},"end":{"line":131,"column":12}},{"start":{"line":131,"column":12},"end":{"line":131,"column":12}}]},"6":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":8},"end":{"line":165,"column":8}},{"start":{"line":165,"column":8},"end":{"line":165,"column":8}}]},"7":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":12},"end":{"line":168,"column":12}},{"start":{"line":168,"column":12},"end":{"line":168,"column":12}}]},"8":{"line":168,"type":"binary-expr","locations":[{"start":{"line":168,"column":16},"end":{"line":168,"column":24}},{"start":{"line":168,"column":28},"end":{"line":168,"column":47}}]},"9":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"10":{"line":175,"type":"if","locations":[{"start":{"line":175,"column":16},"end":{"line":175,"column":16}},{"start":{"line":175,"column":16},"end":{"line":175,"column":16}}]}},"code":["(function () { YUI.add('autocomplete-list-keys', function (Y, NAME) {","","/**","Mixes keyboard support into AutoCompleteList. By default, this module is not","loaded for iOS and Android devices.","","@module autocomplete","@submodule autocomplete-list-keys","**/",""," // keyCode constants.","var KEY_DOWN  = 40,","    KEY_ENTER = 13,","    KEY_ESC   = 27,","    KEY_TAB   = 9,","    KEY_UP    = 38;","","function ListKeys() {","    Y.before(this._bindKeys, this, 'bindUI');","    this._initKeys();","}","","ListKeys.prototype = {","    // -- Lifecycle Methods ----------------------------------------------------","","    /**","    Initializes keyboard command mappings.","","    @method _initKeys","    @protected","    @for AutoCompleteList","    **/","    _initKeys: function () {","        var keys        = {},","            keysVisible = {};","","        // Register keyboard command handlers. _keys contains handlers that will","        // always be called; _keysVisible contains handlers that will only be","        // called when the list is visible.","        keys[KEY_DOWN] = this._keyDown;","","        keysVisible[KEY_ENTER] = this._keyEnter;","        keysVisible[KEY_ESC]   = this._keyEsc;","        keysVisible[KEY_TAB]   = this._keyTab;","        keysVisible[KEY_UP]    = this._keyUp;","","        this._keys        = keys;","        this._keysVisible = keysVisible;","    },","","    destructor: function () {","        this._unbindKeys();","    },","","    /**","    Binds keyboard events.","","    @method _bindKeys","    @protected","    **/","    _bindKeys: function () {","        this._keyEvents = this._inputNode.on('keydown', this._onInputKey, this);","    },","","    /**","    Unbinds keyboard events.","","    @method _unbindKeys","    @protected","    **/","    _unbindKeys: function () {","        this._keyEvents && this._keyEvents.detach();","        this._keyEvents = null;","    },","","    // -- Protected Methods ----------------------------------------------------","","    /**","    Called when the down arrow key is pressed.","","    @method _keyDown","    @protected","    **/","    _keyDown: function () {","        if (this.get('visible')) {","            this._activateNextItem();","        } else {","            this.show();","        }","    },","","    /**","    Called when the enter key is pressed.","","    @method _keyEnter","    @protected","    **/","    _keyEnter: function (e) {","        var item = this.get('activeItem');","","        if (item) {","            this.selectItem(item, e);","        } else {","            // Don't prevent form submission when there's no active item.","            return false;","        }","    },","","    /**","    Called when the escape key is pressed.","","    @method _keyEsc","    @protected","    **/","    _keyEsc: function () {","        this.hide();","    },","","    /**","    Called when the tab key is pressed.","","    @method _keyTab","    @protected","    **/","    _keyTab: function (e) {","        var item;","","        if (this.get('tabSelect')) {","            item = this.get('activeItem');","","            if (item) {","                this.selectItem(item, e);","                return true;","            }","        }","","        return false;","    },","","    /**","    Called when the up arrow key is pressed.","","    @method _keyUp","    @protected","    **/","    _keyUp: function () {","        this._activatePrevItem();","    },","","    // -- Protected Event Handlers ---------------------------------------------","","    /**","    Handles `inputNode` key events.","","    @method _onInputKey","    @param {EventTarget} e","    @protected","    **/","    _onInputKey: function (e) {","        var handler,","            keyCode = e.keyCode;","","        this._lastInputKey = keyCode;","","        if (this.get('results').length) {","            handler = this._keys[keyCode];","","            if (!handler && this.get('visible')) {","                handler = this._keysVisible[keyCode];","            }","","            if (handler) {","                // A handler may return false to indicate that it doesn't wish","                // to prevent the default key behavior.","                if (handler.call(this, e) !== false) {","                    e.preventDefault();","                }","            }","        }","    }","};","","Y.Base.mix(Y.AutoCompleteList, [ListKeys]);","","","}, '3.10.3', {\"requires\": [\"autocomplete-list\", \"base-build\"]});","","}());"]};
 
11
}
 
12
var __cov_hI0pknaud$aGbB98sIPkww = __coverage__['build/autocomplete-list-keys/autocomplete-list-keys.js'];
 
13
__cov_hI0pknaud$aGbB98sIPkww.s['1']++;YUI.add('autocomplete-list-keys',function(Y,NAME){__cov_hI0pknaud$aGbB98sIPkww.f['1']++;__cov_hI0pknaud$aGbB98sIPkww.s['2']++;var KEY_DOWN=40,KEY_ENTER=13,KEY_ESC=27,KEY_TAB=9,KEY_UP=38;__cov_hI0pknaud$aGbB98sIPkww.s['3']++;function ListKeys(){__cov_hI0pknaud$aGbB98sIPkww.f['2']++;__cov_hI0pknaud$aGbB98sIPkww.s['4']++;Y.before(this._bindKeys,this,'bindUI');__cov_hI0pknaud$aGbB98sIPkww.s['5']++;this._initKeys();}__cov_hI0pknaud$aGbB98sIPkww.s['6']++;ListKeys.prototype={_initKeys:function(){__cov_hI0pknaud$aGbB98sIPkww.f['3']++;__cov_hI0pknaud$aGbB98sIPkww.s['7']++;var keys={},keysVisible={};__cov_hI0pknaud$aGbB98sIPkww.s['8']++;keys[KEY_DOWN]=this._keyDown;__cov_hI0pknaud$aGbB98sIPkww.s['9']++;keysVisible[KEY_ENTER]=this._keyEnter;__cov_hI0pknaud$aGbB98sIPkww.s['10']++;keysVisible[KEY_ESC]=this._keyEsc;__cov_hI0pknaud$aGbB98sIPkww.s['11']++;keysVisible[KEY_TAB]=this._keyTab;__cov_hI0pknaud$aGbB98sIPkww.s['12']++;keysVisible[KEY_UP]=this._keyUp;__cov_hI0pknaud$aGbB98sIPkww.s['13']++;this._keys=keys;__cov_hI0pknaud$aGbB98sIPkww.s['14']++;this._keysVisible=keysVisible;},destructor:function(){__cov_hI0pknaud$aGbB98sIPkww.f['4']++;__cov_hI0pknaud$aGbB98sIPkww.s['15']++;this._unbindKeys();},_bindKeys:function(){__cov_hI0pknaud$aGbB98sIPkww.f['5']++;__cov_hI0pknaud$aGbB98sIPkww.s['16']++;this._keyEvents=this._inputNode.on('keydown',this._onInputKey,this);},_unbindKeys:function(){__cov_hI0pknaud$aGbB98sIPkww.f['6']++;__cov_hI0pknaud$aGbB98sIPkww.s['17']++;(__cov_hI0pknaud$aGbB98sIPkww.b['1'][0]++,this._keyEvents)&&(__cov_hI0pknaud$aGbB98sIPkww.b['1'][1]++,this._keyEvents.detach());__cov_hI0pknaud$aGbB98sIPkww.s['18']++;this._keyEvents=null;},_keyDown:function(){__cov_hI0pknaud$aGbB98sIPkww.f['7']++;__cov_hI0pknaud$aGbB98sIPkww.s['19']++;if(this.get('visible')){__cov_hI0pknaud$aGbB98sIPkww.b['2'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['20']++;this._activateNextItem();}else{__cov_hI0pknaud$aGbB98sIPkww.b['2'][1]++;__cov_hI0pknaud$aGbB98sIPkww.s['21']++;this.show();}},_keyEnter:function(e){__cov_hI0pknaud$aGbB98sIPkww.f['8']++;__cov_hI0pknaud$aGbB98sIPkww.s['22']++;var item=this.get('activeItem');__cov_hI0pknaud$aGbB98sIPkww.s['23']++;if(item){__cov_hI0pknaud$aGbB98sIPkww.b['3'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['24']++;this.selectItem(item,e);}else{__cov_hI0pknaud$aGbB98sIPkww.b['3'][1]++;__cov_hI0pknaud$aGbB98sIPkww.s['25']++;return false;}},_keyEsc:function(){__cov_hI0pknaud$aGbB98sIPkww.f['9']++;__cov_hI0pknaud$aGbB98sIPkww.s['26']++;this.hide();},_keyTab:function(e){__cov_hI0pknaud$aGbB98sIPkww.f['10']++;__cov_hI0pknaud$aGbB98sIPkww.s['27']++;var item;__cov_hI0pknaud$aGbB98sIPkww.s['28']++;if(this.get('tabSelect')){__cov_hI0pknaud$aGbB98sIPkww.b['4'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['29']++;item=this.get('activeItem');__cov_hI0pknaud$aGbB98sIPkww.s['30']++;if(item){__cov_hI0pknaud$aGbB98sIPkww.b['5'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['31']++;this.selectItem(item,e);__cov_hI0pknaud$aGbB98sIPkww.s['32']++;return true;}else{__cov_hI0pknaud$aGbB98sIPkww.b['5'][1]++;}}else{__cov_hI0pknaud$aGbB98sIPkww.b['4'][1]++;}__cov_hI0pknaud$aGbB98sIPkww.s['33']++;return false;},_keyUp:function(){__cov_hI0pknaud$aGbB98sIPkww.f['11']++;__cov_hI0pknaud$aGbB98sIPkww.s['34']++;this._activatePrevItem();},_onInputKey:function(e){__cov_hI0pknaud$aGbB98sIPkww.f['12']++;__cov_hI0pknaud$aGbB98sIPkww.s['35']++;var handler,keyCode=e.keyCode;__cov_hI0pknaud$aGbB98sIPkww.s['36']++;this._lastInputKey=keyCode;__cov_hI0pknaud$aGbB98sIPkww.s['37']++;if(this.get('results').length){__cov_hI0pknaud$aGbB98sIPkww.b['6'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['38']++;handler=this._keys[keyCode];__cov_hI0pknaud$aGbB98sIPkww.s['39']++;if((__cov_hI0pknaud$aGbB98sIPkww.b['8'][0]++,!handler)&&(__cov_hI0pknaud$aGbB98sIPkww.b['8'][1]++,this.get('visible'))){__cov_hI0pknaud$aGbB98sIPkww.b['7'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['40']++;handler=this._keysVisible[keyCode];}else{__cov_hI0pknaud$aGbB98sIPkww.b['7'][1]++;}__cov_hI0pknaud$aGbB98sIPkww.s['41']++;if(handler){__cov_hI0pknaud$aGbB98sIPkww.b['9'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['42']++;if(handler.call(this,e)!==false){__cov_hI0pknaud$aGbB98sIPkww.b['10'][0]++;__cov_hI0pknaud$aGbB98sIPkww.s['43']++;e.preventDefault();}else{__cov_hI0pknaud$aGbB98sIPkww.b['10'][1]++;}}else{__cov_hI0pknaud$aGbB98sIPkww.b['9'][1]++;}}else{__cov_hI0pknaud$aGbB98sIPkww.b['6'][1]++;}}};__cov_hI0pknaud$aGbB98sIPkww.s['44']++;Y.Base.mix(Y.AutoCompleteList,[ListKeys]);},'3.10.3',{'requires':['autocomplete-list','base-build']});