B2G/gecko/accessible/tests/mochitest/attributes.js
/**
 * Return used font from the given computed style.
 */
Return used font from the given computed style.
Return used font from the given computed style .
function fontFamily(aComputedStyle)
{
  var name = aComputedStyle.fontFamily;
  switch (name) {
    case "monospace":
      return kMonospaceFontFamily;
    case "sans-serif":
      return kSansSerifFontFamily;
    case "serif":
      return kSerifFontFamily;
    default:
      return name;
  }
}
function fontFamily ( aComputedStyle ) { var name = aComputedStyle . fontFamily ; switch ( name ) { case "monospace" : return kMonospaceFontFamily ; case "sans-serif" : return kSansSerifFontFamily ; case "serif" : return kSerifFontFamily ; default : return name ; } }
Return used font from the given computed style.
Return used font from the given computed style .