B2G/gecko/toolkit/components/places/tests/queries/test_415716.js
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
This Source Code Form is subject to the terms of the Mozilla Public
License, v.
This Source Code Form is subject to the terms of the Mozilla Public License v .
function modHistoryTypes(val){
  switch(val % 8) {
    case 0:
    case 1:
      return TRANSITION_LINK;
    case 2:
      return TRANSITION_TYPED;
    case 3:
      return TRANSITION_BOOKMARK;
    case 4:
      return TRANSITION_EMBED;
    case 5:
      return TRANSITION_REDIRECT_PERMANENT;
    case 6:
      return TRANSITION_REDIRECT_TEMPORARY;
    case 7:
      return TRANSITION_DOWNLOAD;
    case 8:
      return TRANSITION_FRAMED_LINK;
  }
  return TRANSITION_TYPED;
}
function modHistoryTypes ( val ) { switch ( val % 8 ) { case 0 : case 1 : return TRANSITION_LINK ; case 2 : return TRANSITION_TYPED ; case 3 : return TRANSITION_BOOKMARK ; case 4 : return TRANSITION_EMBED ; case 5 : return TRANSITION_REDIRECT_PERMANENT ; case 6 : return TRANSITION_REDIRECT_TEMPORARY ; case 7 : return TRANSITION_DOWNLOAD ; case 8 : return TRANSITION_FRAMED_LINK ; } return TRANSITION_TYPED ; }
This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0.
This Source Code Form is subject to the terms of the Mozilla Public License v . 2 . 0 .