$this->
submitForm($edit, 'Save'
);
$this->
drupalGet('admin/config/media/responsive-image-style/style_one'
);
// Check the mapping for multipliers 1x and 2x for the mobile breakpoint.
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.mobile][1x][image_style]', 'thumbnail'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.mobile][1x][image_mapping_type]', 'image_style'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.mobile][2x][image_mapping_type]', '_none'
);
// Check the mapping for multipliers 1x and 2x for the narrow breakpoint.
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.narrow][1x][image_mapping_type]', 'sizes'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.narrow][1x][sizes]', '(min-resolution: 192dpi) and (min-width: 170px) 386px, (min-width: 170px) 193px, (min-width: 768px) 18vw, (min-width: 480px) 30vw, 48vw'
);
$this->
assertSession()->
checkboxChecked('edit-keyed-styles-responsive-image-test-modulenarrow-1x-sizes-image-styles-large'
);
$this->
assertSession()->
checkboxChecked('edit-keyed-styles-responsive-image-test-modulenarrow-1x-sizes-image-styles-medium'
);
$this->
assertSession()->
checkboxNotChecked('edit-keyed-styles-responsive-image-test-modulenarrow-1x-sizes-image-styles-thumbnail'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.narrow][2x][image_mapping_type]', '_none'
);
// Check the mapping for multipliers 1x and 2x for the wide breakpoint.
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.wide][1x][image_style]', 'large'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.wide][1x][image_mapping_type]', 'image_style'
);
$this->
assertSession()->
fieldValueEquals('keyed_styles[responsive_image_test_module.wide][2x][image_mapping_type]', '_none'
);
// Delete the style.
$this->
drupalGet('admin/config/media/responsive-image-style/style_one/delete'
);