B2G/gecko/content/smil/test/db_smilMappedAttrList.js
// into a list of TestcaseBundles for the corresponding mapped attributes.
into a list of TestcaseBundles for the corresponding mapped attributes.
into a list of TestcaseBundles for the corresponding mapped attributes .
function convertCSSBundlesToMappedAttr(bundleList) {
  var propertyNameToMappedAttr = {};
  for (attributeLabel in gMappedAttrList) {
    var propName = gMappedAttrList[attributeLabel].attrName;
    propertyNameToMappedAttr[propName] = gMappedAttrList[attributeLabel];
  }
  var convertedBundles = [];
  for (var bundleIdx in bundleList) {
    var origBundle = bundleList[bundleIdx];
    var propName = origBundle.animatedAttribute.attrName;
    if (propertyNameToMappedAttr[propName]) {
      is(origBundle.animatedAttribute.attrType, "CSS",
         "expecting to be converting from CSS to XML");
      convertedBundles.push(
        new TestcaseBundle(propertyNameToMappedAttr[propName],
                           origBundle.testcaseList,
                           origBundle.skipReason));
    }
  }
  return convertedBundles;
}
function convertCSSBundlesToMappedAttr ( bundleList ) { var propertyNameToMappedAttr = { } ; for ( attributeLabel in gMappedAttrList ) { var propName = gMappedAttrList [ attributeLabel ] . attrName ; propertyNameToMappedAttr [ propName ] = gMappedAttrList [ attributeLabel ] ; } var convertedBundles = [ ] ; for ( var bundleIdx in bundleList ) { var origBundle = bundleList [ bundleIdx ] ; var propName = origBundle . animatedAttribute . attrName ; if ( propertyNameToMappedAttr [ propName ] ) { is ( origBundle . animatedAttribute . attrType , "CSS" , "expecting to be converting from CSS to XML" ) ; convertedBundles . push ( new TestcaseBundle ( propertyNameToMappedAttr [ propName ] , origBundle . testcaseList , origBundle . skipReason ) ) ; } } return convertedBundles ; }
into a list of TestcaseBundles for the corresponding mapped attributes.
into a list of TestcaseBundles for the corresponding mapped attributes .
// Create mapping of property names to the corresponding // mapped-attribute object in gMappedAttrList. // There's a mapped attribute by this name! Duplicate the TestcaseBundle, // using the Mapped Attribute instead of the CSS Property.