function assertDeviceMatches(expectedProperties, device) {
  Object.keys(expectedProperties).forEach(function(key) {
    chrome.test.assertEq(expectedProperties[key], device[key],
        'Property ' + key + ' of device ' + device.id);
  });
}
/**
 * Asserts that device property values match properties in |expectedProperties|.
 * The method will *not* assert that the device contains *only* properties
 * specified in expected properties.
 * @param {Object} expectedProperties Expected device properties.
 * @param {Object} device Device object to test.
 */
Asserts that device property values match properties in |expectedProperties|.
The method will *not* assert that the device contains *only* properties
specified in expected properties.
@param {Object} expectedProperties Expected device properties.
@param {Object} device Device object to test.
Asserts that device property values match properties in |expectedProperties| . The method will * not * assert that the device contains * only * properties specified in expected properties . @param { Object } expectedProperties Expected device properties . @param { Object } device Device object to test .
function assertDeviceMatches(expectedProperties, device) {
  Object.keys(expectedProperties).forEach(function(key) {
    chrome.test.assertEq(expectedProperties[key], device[key],
        'Property ' + key + ' of device ' + device.id);
  });
}
function assertDeviceMatches ( expectedProperties , device ) { Object . keys ( expectedProperties ) . forEach ( function ( key ) { chrome . test . assertEq ( expectedProperties [ key ] , device [ key ] , 'Property ' + key + ' of device ' + device . id ) ; } ) ; }
Asserts that device property values match properties in |expectedProperties|.
Asserts that device property values match properties in |expectedProperties| .