1# This is a bit of a weird Screenshot test; this won't have any output, but is needed 2# to ensure that the renderer doesn't crash with a broken image. Robolectric 3# does _not_ fail in the same way "real" Android does on invalid (or missing) 4# resources, so we're having to use layouts tests to test this case instead. 5# 6# Note the box is required though; the images should fail to inflate, so if this 7# layout only contained the image, then the renderer would just emit null and 8# the test harness would fail the test. Putting the box in ensures that the 9# renderer inflates _something_ to keep the rest of the harness happy. 10box { 11 contents { 12 image { 13 resource_id { 14 value: "broken_image" 15 } 16 width { 17 linear_dimension { 18 value: 16 19 } 20 } 21 height { 22 linear_dimension { 23 value: 16 24 } 25 } 26 } 27 } 28 29 contents { 30 image { 31 resource_id { 32 value: "missing_image" 33 } 34 width { 35 linear_dimension { 36 value: 16 37 } 38 } 39 height { 40 linear_dimension { 41 value: 16 42 } 43 } 44 } 45 } 46} 47